Thank you for your reply, Noel. On Friday, December 23, 2016 at 7:19:08 AM UTC+1, Noel Grandin wrote: > > there seem to be some chunks missing from the stack trace which makes it a > little tricky to see why things are going wrong. > > Here is the whole thing:
2016-12-23 00:46:03 jdbc[3]: /**/PreparedStatement prep8 = conn3.prepareStatement("select aufgabenliste_seq.nextval"); 2016-12-23 00:46:03 jdbc[3]: Plan : calculate cost for plan [SYSTEM_RANGE:0:org.h2.table.RangeTable@603d6c40] 2016-12-23 00:46:03 jdbc[3]: Plan : for table filter SYSTEM_RANGE:0:org.h2.table.RangeTable@603d6c40 2016-12-23 00:46:03 jdbc[3]: Table : potential plan item cost 1 index PUBLIC.RANGE_INDEX 2016-12-23 00:46:03 jdbc[3]: Plan : best plan item cost 1 index PUBLIC.RANGE_INDEX 2016-12-23 00:46:03 jdbc[3]: Plan : plan cost 2 2016-12-23 00:46:03 jdbc[3]: /**/ResultSet rs9 = prep8.executeQuery(); 2016-12-23 00:46:03 lock: 1 exclusive write lock requesting for SYS 2016-12-23 00:46:03 lock: 1 exclusive write lock added for SYS 2016-12-23 00:46:03 lock: 1 exclusive write lock unlock SYS 2016-12-23 00:46:03 lock: 1 exclusive write lock requesting for SYS 2016-12-23 00:46:03 lock: 1 exclusive write lock added for SYS 2016-12-23 00:46:03 jdbc[3]: exception org.h2.jdbc.JdbcSQLException: Allgemeiner Fehler: " java.lang.RuntimeException: Unexpected code path" General error: "java.lang.RuntimeException: Unexpected code path"; SQL statement: select aufgabenliste_seq.nextval [50000-193] at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) at org.h2.message.DbException.get(DbException.java:168) at org.h2.message.DbException.convert(DbException.java:295) at org.h2.command.Command.executeQuery(Command.java:213) at org.h2.jdbc.JdbcPreparedStatement.executeQuery( JdbcPreparedStatement.java:110) at org.apache.tomcat.dbcp.dbcp2.DelegatingPreparedStatement.executeQuery( DelegatingPreparedStatement.java:82) at org.apache.tomcat.dbcp.dbcp2.DelegatingPreparedStatement.executeQuery( DelegatingPreparedStatement.java:82) 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 de.nikem.nest.jdbc.PreparedStatementInvocationHandler.invoke( PreparedStatementInvocationHandler.java:47) at com.sun.proxy.$Proxy43.executeQuery(Unknown Source) at de.nikem.nest.jdbc.JdbcUtil$2.doWork(JdbcUtil.java:490) at de.nikem.nest.jdbc.JdbcUtil$2.doWork(JdbcUtil.java:482) at de.nikem.nest.jdbc.JdbcUtil.doWithoutTransaction(JdbcUtil.java:451) at de.nikem.nest.jdbc.JdbcUtil.executeNamedQuery(JdbcUtil.java:482) at de.nikem.nest.jdbc.JdbcUtil.lambda$getNextValue$2(JdbcUtil.java:392) at de.nikem.nest.jdbc.JdbcUtil$$Lambda$9/1477668869.doWork(Unknown Source) at de.nikem.nest.jdbc.JdbcUtil$TransactionWork.doWork(JdbcUtil.java:219) at de.nikem.nest.jdbc.JdbcUtil.doWithoutTransaction(JdbcUtil.java:451) at de.nikem.nest.jdbc.JdbcUtil.doInTransaction(JdbcUtil.java:423) at de.nikem.nest.jdbc.JdbcUtil.getNextValue(JdbcUtil.java:390) at shopfloor.db.dao.gen.GenAufgabenlisteDao.lambda$0( GenAufgabenlisteDao.java:28) at shopfloor.db.dao.gen.GenAufgabenlisteDao$$Lambda$8/103904531.doWork(Unknown Source) at de.nikem.nest.jdbc.JdbcUtil$TransactionWork.doWork(JdbcUtil.java:219) at de.nikem.nest.jdbc.JdbcUtil.doWithoutTransaction(JdbcUtil.java:451) at de.nikem.nest.jdbc.JdbcUtil.doInTransaction(JdbcUtil.java:423) at shopfloor.db.dao.gen.GenAufgabenlisteDao.insert( GenAufgabenlisteDao.java:25) at shopfloor.interactor.aufgabenliste.AufgabenlisteInteractor.saveAufgabenListe( AufgabenlisteInteractor.java:43) at shopfloor.presenter.aufgabenliste.SchichtberichtPresenter.saveSchichtbericht( SchichtberichtPresenter.java:72) at shopfloor.resource.aufgabenliste.AufgabenlisteResource.insertSchichtbericht( AufgabenlisteResource.java:73) 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.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke( ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run( AbstractJavaResourceMethodDispatcher.java:144) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke( AbstractJavaResourceMethodDispatcher.java:161) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ObjectOutInvoker.doDispatch( JavaResourceMethodDispatcherProvider.java:176) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch( AbstractJavaResourceMethodDispatcher.java:99) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke( ResourceMethodInvoker.java:389) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply( ResourceMethodInvoker.java:347) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply( ResourceMethodInvoker.java:102) at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:267) at org.glassfish.jersey.process.internal.RequestScope.runInScope( RequestScope.java:317) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) at org.glassfish.jersey.server.ApplicationHandler.handle( ApplicationHandler.java:1154) at org.glassfish.jersey.servlet.WebComponent.serviceImpl( WebComponent.java:473) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) at org.glassfish.jersey.servlet.ServletContainer.service( ServletContainer.java:388) at org.glassfish.jersey.servlet.ServletContainer.service( ServletContainer.java:341) at org.glassfish.jersey.servlet.ServletContainer.service( ServletContainer.java:228) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:165) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:192) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:165) at shopfloor.resource.AbteilungFilter.doFilter(AbteilungFilter.java:67) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:192) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:165) at de.nikem.nest.filter.NestFilter.doFilter(NestFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:192) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:165) at shopfloor.resource.MdcFilter.doFilter(MdcFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:192) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:165) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:108) at org.apache.catalina.authenticator.AuthenticatorBase.invoke( AuthenticatorBase.java:586) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke( AbstractAccessLogValve.java:620) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:349) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784 ) at org.apache.coyote.AbstractProcessorLight.process( AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process( AbstractProtocol.java:802) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun( NioEndpoint.java:1452) at org.apache.tomcat.util.net.SocketProcessorBase.run( SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run( TaskThread.java:61) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.RuntimeException: Unexpected code path at org.h2.message.DbException.throwInternalError(DbException.java:242) at org.h2.message.DbException.throwInternalError(DbException.java:255) at org.h2.engine.Session.addLock(Session.java:842) at org.h2.mvstore.db.MVTable.doLock2(MVTable.java:254) at org.h2.mvstore.db.MVTable.doLock1(MVTable.java:202) at org.h2.mvstore.db.MVTable.lock(MVTable.java:167) at org.h2.engine.Database.lockMeta(Database.java:909) at org.h2.engine.Database.removeSchemaObject(Database.java:1842) at org.h2.table.Table.removeChildrenAndResources(Table.java:530) at org.h2.table.TableView.removeChildrenAndResources(TableView.java:414) at org.h2.engine.Session.cleanTempTables(Session.java:948) at org.h2.engine.Session.commit(Session.java:643) at org.h2.schema.Sequence.flush(Sequence.java:302) at org.h2.schema.Sequence.getNext(Sequence.java:269) at org.h2.expression.SequenceValue.getValue(SequenceValue.java:30) at org.h2.command.dml.Select.queryFlat(Select.java:549) at org.h2.command.dml.Select.queryWithoutCache(Select.java:655) at org.h2.command.dml.Query.query(Query.java:341) at org.h2.command.dml.Query.query(Query.java:309) at org.h2.command.dml.Query.query(Query.java:36) at org.h2.command.CommandContainer.query(CommandContainer.java:110) at org.h2.command.Command.executeQuery(Command.java:201) ... 85 more -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To post to this group, send email to h2-database@googlegroups.com. Visit this group at https://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.