at org.jooq.tools.jdbc.DefaultStatement.getWarnings(DefaultStatement.java:182)
at org.jooq.impl.Utils.consumeWarnings(Utils.java:2151)
at org.jooq.impl.AbstractResultQuery.execute(AbstractResultQuery.java:270)
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
final BoneCPConfig config = new BoneCPConfig();
config.setConnectionTestStatement("SELECT @@VERSION");
config.setIdleMaxAge(4, TimeUnit.HOURS);
config.setJdbcUrl(buildMysqlJDBCUrl(server, database, port));
config.setConnectionTimeout(1, TimeUnit.MINUTES);
config.setPartitionCount(4);
config.setMinConnectionsPerPartition(1);
config.setMaxConnectionsPerPartition(5);
config.setPassword(pwd);
config.setUsername(uid);
config.setAcquireIncrement(2);
final Properties clientInfo = new Properties();
clientInfo.setProperty("APP-ID", Version.getVersion());
config.setClientInfo(clientInfo);
config.sanitize();
org.jooq.exception.DataAccessException: SQL [insert into `test`.`t_author` (`ID`, `FIRST_NAME`, `LAST_NAME`, `DATE_OF_BIRTH`, `YEAR_OF_BIRTH`, `ADDRESS`) values (?, ?, ?, ?, ?, ?)]; Column 'ID' cannot be nullat org.jooq.impl.Utils.translate(Utils.java:1550)at org.jooq.impl.DefaultExecuteContext.sqlException(DefaultExecuteContext.java:571)at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:348)at org.jooq.impl.TableRecordImpl.storeInsert0(TableRecordImpl.java:175)at org.jooq.impl.TableRecordImpl$1.operate(TableRecordImpl.java:141)at org.jooq.impl.RecordDelegate.operate(RecordDelegate.java:123)at org.jooq.impl.TableRecordImpl.storeInsert(TableRecordImpl.java:137)at org.jooq.impl.UpdatableRecordImpl.store0(UpdatableRecordImpl.java:185)at org.jooq.impl.UpdatableRecordImpl.access$4(UpdatableRecordImpl.java:153)at org.jooq.impl.UpdatableRecordImpl$1.operate(UpdatableRecordImpl.java:135)at org.jooq.impl.RecordDelegate.operate(RecordDelegate.java:123)at org.jooq.impl.UpdatableRecordImpl.store(UpdatableRecordImpl.java:131)at org.jooq.impl.UpdatableRecordImpl.store(UpdatableRecordImpl.java:123)at org.jooq.test.MySQLTest.testMySQLClosingStatements(MySQLTest.java:978)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:483)at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)at org.junit.runners.ParentRunner.run(ParentRunner.java:309)at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'ID' cannot be nullat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)at com.mysql.jdbc.Util.getInstance(Util.java:383)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1049)at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4208)at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4140)at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2597)at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2758)at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2826)at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2082)at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2334)at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2262)at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2246)at com.jolbox.bonecp.PreparedStatementHandle.executeUpdate(PreparedStatementHandle.java:205)at org.jooq.tools.jdbc.DefaultPreparedStatement.executeUpdate(DefaultPreparedStatement.java:88)at org.jooq.impl.AbstractStoreQuery.execute(AbstractStoreQuery.java:390)at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:334)... 38 more