Ree6-Applications / Ree6

All-in-one, open source and 100% free Discord Bot!
https://ree6.de
GNU General Public License v3.0
146 stars 39 forks source link

PersistenceException: Converting `org.hibernate.exception.JDBCConnectionException` to JPA `PersistenceException` : coul... #302

Closed sentry-io[bot] closed 1 year ago

sentry-io[bot] commented 1 year ago

Sentry Issue: REE6-JAVA-22

SocketException: Die Verbindung wurde vom Kommunikationspartner zurückgesetzt
    at sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:420)
    at sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440)
    at sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826)
    at java.net.Socket$SocketOutputStream.write(Socket.java:1035)
    at java.io.BufferedOutputStream.write(BufferedOutputStream.java:123)
...
(42 additional frame(s) were not displayed)

SQLNonTransientConnectionException: (conn=21787) Socket error
    at org.mariadb.jdbc.export.ExceptionFactory.createException(ExceptionFactory.java:293)
    at org.mariadb.jdbc.export.ExceptionFactory.create(ExceptionFactory.java:359)
    at org.mariadb.jdbc.client.impl.StandardClient.sendQuery(StandardClient.java:506)
    at org.mariadb.jdbc.client.impl.StandardClient.execute(StandardClient.java:635)
    at org.mariadb.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:95)
...
(33 additional frame(s) were not displayed)

JDBCConnectionException: could not execute statement
    at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:49)
    at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:56)
    at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:109)
    at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:95)
    at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:200)
...
(28 additional frame(s) were not displayed)

PersistenceException: Converting `org.hibernate.exception.JDBCConnectionException` to JPA `PersistenceException` : could not execute statement
    at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:165)
    at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:175)
    at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:182)
    at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1429)
    at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:477)
...
(16 additional frame(s) were not displayed)
DxsSucuk commented 1 year ago

Even thou this is a error. This relates to a connectivity Issue we should introduce a way for a automatic reconnection/resending like the old ORM.

DxsSucuk commented 1 year ago

Fixed in https://github.com/Ree6-Applications/Ree6-SQL/commit/8e9aee13c14bc66b44a050baaf6909a0658bf347