Open lixian1997 opened 2 years ago
org.springframework.dao.TransientDataAccessResourceException: ConnectionCallback; Invalid argument value: java.io.NotSerializableException; nested exception is java.sql.SQLException: Invalid argument value: java.io.NotSerializableException at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:110) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) at org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1443) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:336) at com.liaobaikai.ngoxdb.core.converter.DataWorker.importRows(DataWorker.java:284) at com.liaobaikai.ngoxdb.NgoxDbWorker.lambda$null$1(NgoxDbWorker.java:109) at com.liaobaikai.ngoxdb.NgoxDbWorker.delegate(NgoxDbWorker.java:174) at com.liaobaikai.ngoxdb.NgoxDbWorker.lambda$migrate$2(NgoxDbWorker.java:107) at com.liaobaikai.ngoxdb.core.converter.DataWorker$ExportRowsParallelCallback.exportRows(DataWorker.java:90) at com.liaobaikai.ngoxdb.core.converter.DataWorker$ExportRowsParallelCallback.callback(DataWorker.java:71) at com.liaobaikai.ngoxdb.ParallelMaster$ParallelRunner.run(ParallelMaster.java:65) 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: java.sql.SQLException: Invalid argument value: java.io.NotSerializableException at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:85) at com.mysql.cj.jdbc.ClientPreparedStatement.setObject(ClientPreparedStatement.java:1671) at com.alibaba.druid.pool.DruidPooledPreparedStatement.setObject(DruidPooledPreparedStatement.java:480) at com.liaobaikai.ngoxdb.core.converter.DataWorker.lambda$importRows$0(DataWorker.java:305) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:328) ... 10 more Caused by: com.mysql.cj.exceptions.WrongArgumentException: Invalid argument value: java.io.NotSerializableException at [java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native](http://java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native) Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62 at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45 at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490 at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) at com.mysql.cj.AbstractQueryBindings.setSerializableObject(AbstractQueryBindings.java:794) at com.mysql.cj.AbstractQueryBindings.setObject(AbstractQueryBindings.java:236) at com.mysql.cj.jdbc.ClientPreparedStatement.setObject(ClientPreparedStatement.java:1669) ... 13 more Caused by: java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1185 at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553 at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1510 at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433 at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179 at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553 at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1510 at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433 at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179 at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349 at com.mysql.cj.AbstractQueryBindings.setSerializableObject(AbstractQueryBindings.java:783)
很抱歉,这个项目很久没有时间去修改了或者增加新功能了。
org.springframework.dao.TransientDataAccessResourceException: ConnectionCallback; Invalid argument value: java.io.NotSerializableException; nested exception is java.sql.SQLException: Invalid argument value: java.io.NotSerializableException at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:110) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) at org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1443) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:336) at com.liaobaikai.ngoxdb.core.converter.DataWorker.importRows(DataWorker.java:284) at com.liaobaikai.ngoxdb.NgoxDbWorker.lambda$null$1(NgoxDbWorker.java:109) at com.liaobaikai.ngoxdb.NgoxDbWorker.delegate(NgoxDbWorker.java:174) at com.liaobaikai.ngoxdb.NgoxDbWorker.lambda$migrate$2(NgoxDbWorker.java:107) at com.liaobaikai.ngoxdb.core.converter.DataWorker$ExportRowsParallelCallback.exportRows(DataWorker.java:90) at com.liaobaikai.ngoxdb.core.converter.DataWorker$ExportRowsParallelCallback.callback(DataWorker.java:71) at com.liaobaikai.ngoxdb.ParallelMaster$ParallelRunner.run(ParallelMaster.java:65) 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: java.sql.SQLException: Invalid argument value: java.io.NotSerializableException at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:85) at com.mysql.cj.jdbc.ClientPreparedStatement.setObject(ClientPreparedStatement.java:1671) at com.alibaba.druid.pool.DruidPooledPreparedStatement.setObject(DruidPooledPreparedStatement.java:480) at com.liaobaikai.ngoxdb.core.converter.DataWorker.lambda$importRows$0(DataWorker.java:305) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:328) ... 10 more Caused by: com.mysql.cj.exceptions.WrongArgumentException: Invalid argument value: java.io.NotSerializableException at [java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native](http://java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native) Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62 at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45 at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490 at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) at com.mysql.cj.AbstractQueryBindings.setSerializableObject(AbstractQueryBindings.java:794) at com.mysql.cj.AbstractQueryBindings.setObject(AbstractQueryBindings.java:236) at com.mysql.cj.jdbc.ClientPreparedStatement.setObject(ClientPreparedStatement.java:1669) ... 13 more Caused by: java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1185 at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553 at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1510 at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433 at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179 at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553 at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1510 at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433 at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179 at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349 at com.mysql.cj.AbstractQueryBindings.setSerializableObject(AbstractQueryBindings.java:783)