#1 2019-07-18 11:01:41

hyjack
Member
Registered: 2019-07-18

MySQL connection issues

Hi,

I have the report server setup and connected to a MySQL datasource.
Have found when trying to run a report for the first time, i always get the below error message, when i do a refresh it works fine.

Its a bigger issue for any (unattended) scheduled reports, as it fails to connect everytime.

Any advice?


Have replaced sensitive with XXXX

Report: Candidate and Client Feedback Report By Last 7 Days Error message: net.datenwerke.rs.core.service.reportmanager.exceptions.ReportExecutorException: The report could not be executed: Could not open connection to: jdbc:mysql://localhost:3306/XXX with user: XXXXXX. java.sql.SQLNonTransientConnectionException: Could not send query: Software caused connection abort: socket write error
Recipient: XXX

Error-Details: net.datenwerke.scheduler.service.scheduler.exceptions.JobExecutionException: net.datenwerke.rs.core.service.reportmanager.exceptions.ReportExecutorException: The report could not be executed: Could not open connection to: jdbc:mysql://localhost:3306/XXXX with user: XXXX. java.sql.SQLNonTransientConnectionException: Could not send query: Software caused connection abort: socket write error
    at net.datenwerke.rs.scheduler.service.scheduler.jobs.report.ReportExecuteJob.doExecute(ReportExecuteJob.java:140)
    at net.datenwerke.scheduler.service.scheduler.entities.AbstractJob.execute(AbstractJob.java:184)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.executeJob(SchedulerTask.java:646)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.safeCall(SchedulerTask.java:208)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.call(SchedulerTask.java:103)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.call(SchedulerTask.java:1)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: net.datenwerke.rs.core.service.reportmanager.exceptions.ReportExecutorException: The report could not be executed: Could not open connection to: jdbc:mysql://localhost:3306/XXXX with user: XXX. java.sql.SQLNonTransientConnectionException: Could not send query: Software caused connection abort: socket write error
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:218)
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:119)
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:106)
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:101)
    at net.datenwerke.rs.scheduler.service.scheduler.jobs.report.ReportExecuteJob.doExecute(ReportExecuteJob.java:135)
    ... 9 more
Caused by: net.datenwerke.rs.core.service.reportmanager.exceptions.DatabaseConnectionException: Could not open connection to: jdbc:mysql://localhost:3306/XXX with user: XXXX. java.sql.SQLNonTransientConnectionException: Could not send query: Software caused connection abort: socket write error
    at net.datenwerke.rs.base.service.datasources.transformers.database.Database2TableTransformer.transform(Database2TableTransformer.java:57)
    at net.datenwerke.rs.base.service.datasources.transformers.database.Database2TableTransformer.transform(Database2TableTransformer.java:1)
    at net.datenwerke.rs.base.service.datasources.transformers.DatasourceTransformationServiceImpl.transform(DatasourceTransformationServiceImpl.java:29)
    at net.datenwerke.rs.core.service.reportmanager.engine.ReportEngine.transformDatasource(ReportEngine.java:242)
    at net.datenwerke.rs.base.service.reportengines.table.TableReportEngine.doExecuteNormal(TableReportEngine.java:172)
    at net.datenwerke.rs.base.service.reportengines.table.TableReportEngine.doExecuteNormal(TableReportEngine.java:151)
    at net.datenwerke.rs.base.service.reportengines.table.TableReportEngine.doExecute(TableReportEngine.java:88)
    at net.datenwerke.rs.core.service.reportmanager.engine.ReportEngine.execute(ReportEngine.java:150)
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:186)
    ... 13 more
Caused by: java.lang.RuntimeException: java.sql.SQLNonTransientConnectionException: Could not send query: Software caused connection abort: socket write error
    at net.datenwerke.dbpool.DbC3p0PoolServiceImpl$1.get(DbC3p0PoolServiceImpl.java:192)
    at net.datenwerke.dbpool.DbC3p0PoolServiceImpl$1.get(DbC3p0PoolServiceImpl.java:1)
    at net.datenwerke.rs.base.service.datasources.transformers.database.Database2TableTransformer.transform(Database2TableTransformer.java:54)
    ... 21 more
Caused by: java.sql.SQLNonTransientConnectionException: Could not send query: Software caused connection abort: socket write error
    at org.mariadb.jdbc.internal.util.ExceptionMapper.get(ExceptionMapper.java:123)
    at org.mariadb.jdbc.internal.util.ExceptionMapper.throwException(ExceptionMapper.java:69)
    at org.mariadb.jdbc.MariaDbConnection.setTransactionIsolation(MariaDbConnection.java:709)
    at com.mchange.v2.c3p0.impl.NewProxyConnection.setTransactionIsolation(NewProxyConnection.java:835)
    at net.datenwerke.dbpool.DbC3p0PoolServiceImpl.configureConnection(DbC3p0PoolServiceImpl.java:289)
    at net.datenwerke.dbpool.DbC3p0PoolServiceImpl$1.get(DbC3p0PoolServiceImpl.java:166)
    ... 23 more
Caused by: org.mariadb.jdbc.internal.util.dao.QueryException: Could not send query: Software caused connection abort: socket write error
    at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.sendQuery(AbstractQueryProtocol.java:394)
    at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:380)
    at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:337)
    at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:321)
    at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.setTransactionIsolation(AbstractQueryProtocol.java:749)
    at org.mariadb.jdbc.MariaDbConnection.setTransactionIsolation(MariaDbConnection.java:707)
    ... 26 more
Caused by: java.net.SocketException: Software caused connection abort: socket write error
    at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
    at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:138)
    at org.mariadb.jdbc.internal.stream.PacketOutputStream.internalFlush(PacketOutputStream.java:286)
    at org.mariadb.jdbc.internal.stream.PacketOutputStream.finishPacket(PacketOutputStream.java:193)
    at org.mariadb.jdbc.internal.packet.send.SendTextQueryPacket.send(SendTextQueryPacket.java:133)
    at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.sendQuery(AbstractQueryProtocol.java:387)
    ... 31 more

Offline

#2 2019-07-18 12:46:18

hyjack
Member
Registered: 2019-07-18

Re: MySQL connection issues

My issue is the same as this: https://forum.reportserver.net/viewtopic.php?id=941

i have it running on a windows server. does anyone know how to do the "config reload" as quoted in the above article?

Offline

#3 2019-07-29 07:34:07

eduardo
Administrator
Registered: 2016-11-01
Website

Re: MySQL connection issues

Hi hyjack,

for "config reload" you need to open your terminal (CTRL + ALT + T) https://reportserver.net/en/guides/admi … /Terminal/

You can alternatively just restart your tomcat.

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB