8 Replies Latest reply on Mar 5, 2012 5:47 PM by penner04

    problem about jbpm5.1 web console

    brianlh

      I have installed jbpm5.1 by "ant install.demo" and started it.

      When I access jbpm5.1.0 web console http://localhost:8080/jbpm-console/app.htm and review the process list,

      then an exception is thrown out.

      Who can give me some advice to solve the problem?

      Thanks in advance.

      =========================================

       

      URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions' Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction' Exception: 'class com.google.gwt.http.client.RequestException' HTTP 500: Etat HTTP 500 - type Rapport d'exception message description Le serveur a rencontr� une erreur interne () qui l'a emp�ch� de satisfaire la requ�te. exception org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: Failed to load: org.jbpm.integration.console.ManagementFactoryImpl org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      =========================================

        • 1. Re: problem about jbpm5.1 web console
          tsurdilovic

          Can you explain "and started it" in your >> I have installed jbpm5.1 by "ant install.demo" and started it <<

          Did you use "ant start.demo" task or just manually started the jboss AS instance? Have you checked any server logs to see if there are any prior exceptions? If you want your problems solved you should really try to provide more info on the issues as that should give a much faster turn-around

          • 2. Re: problem about jbpm5.1 web console
            brianlh

            Of course I use "ant start.demo" to start jbpm.

            After I change jdk from v1.5.0 to v1.6.0, such problem has disappeared.

            But I am not sure if the change of jdk is the reason for the exception.

            Thanks for your response

            • 3. Re: problem about jbpm5.1 web console
              hadik

              I am using jdk 1.6.0_26 and still i m getting the same error.

              I have also tried to change the path (-Djbpm.console.directory) in build.xml but it also not worked for me.

              Plz help...

              • 4. Re: problem about jbpm5.1 web console
                tsurdilovic

                Can you post (pastebin) your entire server log so we can take a look?

                 

                Thanks.

                • 5. Re: problem about jbpm5.1 web console
                  hadik

                  My Log is as below:

                  =============================================================================================

                  2011-09-19 19:10:17,406 WARN  [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (http-localhost%2F127.0.0.1-8080-16) Throwable while attempting to get a new connection: null

                  org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                  )

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)

                      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:622)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)

                      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

                      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)

                      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)

                      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)

                      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)

                      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)

                      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)

                      at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)

                      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)

                      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)

                      at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:131)

                      at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)

                      at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)

                      at org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)

                      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)

                      at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                   

                      at org.h2.engine.SessionRemote.done(SessionRemote.java:522)

                      at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:115)

                      at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:337)

                      at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:229)

                      at org.h2.engine.SessionRemote.createSession(SessionRemote.java:223)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)

                      at org.h2.Driver.connect(Driver.java:58)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:207)

                      ... 64 more

                  2011-09-19 19:10:17,406 WARN  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Could not obtain connection metadata

                  org.jboss.util.NestedSQLException: Unable to get managed connection for jdbc/testDS1; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for jdbc/testDS1)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)

                      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)

                      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)

                      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)

                      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)

                      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)

                      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)

                      at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)

                      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)

                      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)

                      at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:131)

                      at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)

                      at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)

                      at org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)

                      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)

                      at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: javax.resource.ResourceException: Unable to get managed connection for jdbc/testDS1

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:441)

                      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

                      ... 55 more

                  Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                  )

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)

                      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:622)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)

                      ... 59 more

                  Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                   

                      at org.h2.engine.SessionRemote.done(SessionRemote.java:522)

                      at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:115)

                      at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:337)

                      at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:229)

                      at org.h2.engine.SessionRemote.createSession(SessionRemote.java:223)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)

                      at org.h2.Driver.connect(Driver.java:58)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:207)

                      ... 64 more

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.dialect.Dialect] (http-localhost%2F127.0.0.1-8080-16) Using dialect: org.hibernate.dialect.H2Dialect

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.transaction.TransactionFactoryFactory] (http-localhost%2F127.0.0.1-8080-16) Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] (http-localhost%2F127.0.0.1-8080-16) instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] (http-localhost%2F127.0.0.1-8080-16) instantiated TransactionManagerLookup

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Automatic flush during beforeCompletion(): disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Automatic session close at end of transaction: disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Scrollable result sets: disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) JDBC3 getGeneratedKeys(): disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Connection release mode: auto

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Maximum outer join fetch depth: 3

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Default batch fetch size: 1

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Generate SQL with comments: disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Order SQL updates by primary key: disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Order SQL inserts for batching: disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.hql.ast.ASTQueryTranslatorFactory] (http-localhost%2F127.0.0.1-8080-16) Using ASTQueryTranslatorFactory

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Query language substitutions: {}

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) JPA-QL strict compliance: enabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Second-level cache: enabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Query cache: disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Optimize cache for minimal puts: disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Structured second-level cache entries: disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Statistics: disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Deleted entity synthetic identifier rollback: disabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Default entity-mode: pojo

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.cfg.SettingsFactory] (http-localhost%2F127.0.0.1-8080-16) Named query checking : enabled

                  2011-09-19 19:10:17,406 INFO  [org.hibernate.impl.SessionFactoryImpl] (http-localhost%2F127.0.0.1-8080-16) building session factory

                  2011-09-19 19:10:17,421 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] (http-localhost%2F127.0.0.1-8080-16) Not binding factory to JNDI, no JNDI name configured

                  2011-09-19 19:10:17,421 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (http-localhost%2F127.0.0.1-8080-16) Running hbm2ddl schema export

                  2011-09-19 19:10:17,421 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (http-localhost%2F127.0.0.1-8080-16) exporting generated schema to database

                  2011-09-19 19:10:17,484 WARN  [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (http-localhost%2F127.0.0.1-8080-16) Throwable while attempting to get a new connection: null

                  org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                  )

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)

                      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:622)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)

                      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

                      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)

                      at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)

                      at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:252)

                      at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:211)

                      at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:343)

                      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)

                      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)

                      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)

                      at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)

                      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)

                      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)

                      at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:131)

                      at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)

                      at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)

                      at org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)

                      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)

                      at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                   

                      at org.h2.engine.SessionRemote.done(SessionRemote.java:522)

                      at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:115)

                      at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:337)

                      at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:229)

                      at org.h2.engine.SessionRemote.createSession(SessionRemote.java:223)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)

                      at org.h2.Driver.connect(Driver.java:58)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:207)

                      ... 66 more

                  2011-09-19 19:10:17,484 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (http-localhost%2F127.0.0.1-8080-16) schema export unsuccessful

                  org.jboss.util.NestedSQLException: Unable to get managed connection for jdbc/testDS1; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for jdbc/testDS1)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)

                      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)

                      at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)

                      at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:252)

                      at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:211)

                      at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:343)

                      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)

                      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)

                      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)

                      at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)

                      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)

                      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)

                      at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:131)

                      at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)

                      at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)

                      at org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)

                      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)

                      at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: javax.resource.ResourceException: Unable to get managed connection for jdbc/testDS1

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:441)

                      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

                      ... 57 more

                  Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                  )

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)

                      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:622)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)

                      ... 61 more

                  Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                   

                      at org.h2.engine.SessionRemote.done(SessionRemote.java:522)

                      at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:115)

                      at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:337)

                      at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:229)

                      at org.h2.engine.SessionRemote.createSession(SessionRemote.java:223)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)

                      at org.h2.Driver.connect(Driver.java:58)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:207)

                      ... 66 more

                  2011-09-19 19:10:17,484 INFO  [org.hibernate.util.NamingHelper] (http-localhost%2F127.0.0.1-8080-16) JNDI InitialContext properties:{}

                  2011-09-19 19:10:17,609 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-16) Loading session data ...

                  2011-09-19 19:10:18,156 WARN  [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (http-localhost%2F127.0.0.1-8080-16) Throwable while attempting to get a new connection: null

                  org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                  )

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)

                      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:622)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)

                      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

                      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)

                      at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)

                      at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)

                      at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)

                      at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573)

                      at org.hibernate.loader.Loader.doQuery(Loader.java:696)

                      at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)

                      at org.hibernate.loader.Loader.loadEntity(Loader.java:1881)

                      at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:71)

                      at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:65)

                      at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3072)

                      at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:434)

                      at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:415)

                      at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:165)

                      at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223)

                      at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126)

                      at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905)

                      at org.hibernate.impl.SessionImpl.get(SessionImpl.java:842)

                      at org.hibernate.impl.SessionImpl.get(SessionImpl.java:835)

                      at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:182)

                      at org.drools.persistence.jpa.JpaPersistenceContext.findSessionInfo(JpaPersistenceContext.java:21)

                      at org.drools.persistence.SingleSessionCommandService.initKsession(SingleSessionCommandService.java:173)

                      at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:157)

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:88)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.loadStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:71)

                      at org.drools.persistence.jpa.JPAKnowledgeService.loadStatefulKnowledgeSession(JPAKnowledgeService.java:131)

                      at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:141)

                      at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)

                      at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)

                      at org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)

                      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)

                      at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                   

                      at org.h2.engine.SessionRemote.done(SessionRemote.java:522)

                      at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:115)

                      at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:337)

                      at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:229)

                      at org.h2.engine.SessionRemote.createSession(SessionRemote.java:223)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)

                      at org.h2.Driver.connect(Driver.java:58)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:207)

                      ... 85 more

                  2011-09-19 19:10:18,187 WARN  [org.hibernate.util.JDBCExceptionReporter] (http-localhost%2F127.0.0.1-8080-16) SQL Error: 0, SQLState: null

                  2011-09-19 19:10:18,187 ERROR [org.hibernate.util.JDBCExceptionReporter] (http-localhost%2F127.0.0.1-8080-16) Unable to get managed connection for jdbc/testDS1; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for jdbc/testDS1)

                  2011-09-19 19:10:18,187 INFO  [org.hibernate.event.def.DefaultLoadEventListener] (http-localhost%2F127.0.0.1-8080-16) Error performing load command

                  org.hibernate.exception.GenericJDBCException: Cannot open connection

                      at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)

                      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)

                      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)

                      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)

                      at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)

                      at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)

                      at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)

                      at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573)

                      at org.hibernate.loader.Loader.doQuery(Loader.java:696)

                      at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)

                      at org.hibernate.loader.Loader.loadEntity(Loader.java:1881)

                      at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:71)

                      at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:65)

                      at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3072)

                      at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:434)

                      at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:415)

                      at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:165)

                      at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223)

                      at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126)

                      at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905)

                      at org.hibernate.impl.SessionImpl.get(SessionImpl.java:842)

                      at org.hibernate.impl.SessionImpl.get(SessionImpl.java:835)

                      at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:182)

                      at org.drools.persistence.jpa.JpaPersistenceContext.findSessionInfo(JpaPersistenceContext.java:21)

                      at org.drools.persistence.SingleSessionCommandService.initKsession(SingleSessionCommandService.java:173)

                      at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:157)

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:88)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.loadStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:71)

                      at org.drools.persistence.jpa.JPAKnowledgeService.loadStatefulKnowledgeSession(JPAKnowledgeService.java:131)

                      at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:141)

                      at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)

                      at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)

                      at org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)

                      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)

                      at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: org.jboss.util.NestedSQLException: Unable to get managed connection for jdbc/testDS1; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for jdbc/testDS1)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)

                      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)

                      at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)

                      ... 74 more

                  Caused by: javax.resource.ResourceException: Unable to get managed connection for jdbc/testDS1

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:441)

                      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

                      ... 76 more

                  Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                  )

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)

                      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:622)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)

                      ... 80 more

                  Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                   

                      at org.h2.engine.SessionRemote.done(SessionRemote.java:522)

                      at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:115)

                      at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:337)

                      at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:229)

                      at org.h2.engine.SessionRemote.createSession(SessionRemote.java:223)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)

                      at org.h2.Driver.connect(Driver.java:58)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:207)

                      ... 85 more

                  2011-09-19 19:10:18,203 ERROR [org.hibernate.ejb.AbstractEntityManagerImpl] (http-localhost%2F127.0.0.1-8080-16) Unable to mark for rollback on PersistenceException:

                  java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.nosuchtx] [com.arjuna.ats.internal.jta.transaction.arjunacore.nosuchtx] No such transaction!

                      at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.setRollbackOnly(BaseTransaction.java:191)

                      at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.setRollbackOnly(BaseTransactionManagerDelegate.java:123)

                      at org.hibernate.ejb.AbstractEntityManagerImpl.markAsRollback(AbstractEntityManagerImpl.java:421)

                      at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:576)

                      at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)

                      at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:202)

                      at org.drools.persistence.jpa.JpaPersistenceContext.findSessionInfo(JpaPersistenceContext.java:21)

                      at org.drools.persistence.SingleSessionCommandService.initKsession(SingleSessionCommandService.java:173)

                      at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:157)

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:88)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.loadStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:71)

                      at org.drools.persistence.jpa.JPAKnowledgeService.loadStatefulKnowledgeSession(JPAKnowledgeService.java:131)

                      at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:141)

                      at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)

                      at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)

                      at org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)

                      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)

                      at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                      at java.lang.Thread.run(Thread.java:619)

                  2011-09-19 19:10:18,203 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-16) Error loading session data: java.lang.reflect.InvocationTargetException

                  2011-09-19 19:10:18,203 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-16) Creating new session data ...

                  2011-09-19 19:10:18,796 WARN  [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (http-localhost%2F127.0.0.1-8080-16) Throwable while attempting to get a new connection: null

                  org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                  )

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)

                      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:679)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)

                      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

                      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)

                      at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)

                      at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)

                      at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:116)

                      at org.hibernate.id.insert.AbstractSelectingDelegate.performInsert(AbstractSelectingDelegate.java:54)

                      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2186)

                      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2666)

                      at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)

                      at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)

                      at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:321)

                      at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)

                      at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)

                      at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:49)

                      at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)

                      at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)

                      at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61)

                      at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:645)

                      at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:619)

                      at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:623)

                      at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:220)

                      at org.drools.persistence.jpa.JpaPersistenceContext.persist(JpaPersistenceContext.java:17)

                      at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:125)

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:116)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)

                      at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)

                      at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:153)

                      at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)

                      at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)

                      at org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)

                      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)

                      at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                   

                      at org.h2.engine.SessionRemote.done(SessionRemote.java:522)

                      at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:115)

                      at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:337)

                      at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:229)

                      at org.h2.engine.SessionRemote.createSession(SessionRemote.java:223)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)

                      at org.h2.Driver.connect(Driver.java:58)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:207)

                      ... 84 more

                  2011-09-19 19:10:18,796 WARN  [org.hibernate.util.JDBCExceptionReporter] (http-localhost%2F127.0.0.1-8080-16) SQL Error: 0, SQLState: null

                  2011-09-19 19:10:18,796 ERROR [org.hibernate.util.JDBCExceptionReporter] (http-localhost%2F127.0.0.1-8080-16) Unable to get managed connection for jdbc/testDS1; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for jdbc/testDS1)

                  2011-09-19 19:10:18,828 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-16) 19:10:18,796 ERROR [SingleSessionCommandService] Could not commit session

                  javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection

                      at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)

                      at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:226)

                      at org.drools.persistence.jpa.JpaPersistenceContext.persist(JpaPersistenceContext.java:17)

                      at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:125)

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:116)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)

                      at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)

                      at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:153)

                      at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)

                      at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)

                      at org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)

                      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)

                      at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection

                      at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)

                      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)

                      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)

                      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)

                      at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)

                      at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)

                      at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:116)

                      at org.hibernate.id.insert.AbstractSelectingDelegate.performInsert(AbstractSelectingDelegate.java:54)

                      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2186)

                      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2666)

                      at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)

                      at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)

                      at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:321)

                      at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)

                      at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)

                      at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:49)

                      at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)

                      at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)

                      at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61)

                      at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:645)

                      at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:619)

                      at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:623)

                      at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:220)

                      ... 55 more

                  Caused by: org.jboss.util.NestedSQLException: Unable to get managed connection for jdbc/testDS1; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for jdbc/testDS1)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)

                      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)

                      at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)

                      ... 73 more

                  Caused by: javax.resource.ResourceExceptio

                  2011-09-19 19:10:18,828 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-16) n: Unable to get managed connection for jdbc/testDS1

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:441)

                      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

                      ... 75 more

                  Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                  )

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)

                      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:679)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)

                      ... 79 more

                  Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                   

                      at org.h2.engine.SessionRemote.done(SessionRemote.java:522)

                      at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:115)

                      at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:337)

                      at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:229)

                      at org.h2.engine.SessionRemote.createSession(SessionRemote.java:223)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)

                      at org.h2.Driver.connect(Driver.java:58)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:207)

                      ... 84 more

                  2011-09-19 19:10:18,859 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/gwt-console-server].[Resteasy]] (http-localhost%2F127.0.0.1-8080-16) Servlet.service() for servlet Resteasy threw exception

                  org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: java.lang.reflect.InvocationTargetException

                      at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)

                      at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)

                      at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)

                      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session: java.lang.reflect.InvocationTargetException

                      at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:185)

                      at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)

                      at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)

                      at org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)

                      at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)

                      at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)

                      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)

                      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)

                      at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

                      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

                      ... 28 more

                  Caused by: java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:130)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)

                      at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)

                      at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:153)

                      ... 45 more

                  Caused by: java.lang.reflect.InvocationTargetException

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                      at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:116)

                      ... 48 more

                  Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection

                      at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)

                      at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:226)

                      at org.drools.persistence.jpa.JpaPersistenceContext.persist(JpaPersistenceContext.java:17)

                      at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:125)

                      ... 53 more

                  Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection

                      at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)

                      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)

                      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)

                      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)

                      at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)

                      at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)

                      at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:116)

                      at org.hibernate.id.insert.AbstractSelectingDelegate.performInsert(AbstractSelectingDelegate.java:54)

                      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2186)

                      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2666)

                      at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)

                      at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)

                      at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:321)

                      at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)

                      at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)

                      at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:49)

                      at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)

                      at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)

                      at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61)

                      at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:645)

                      at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:619)

                      at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:623)

                      at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:220)

                      ... 55 more

                  Caused by: org.jboss.util.NestedSQLException: Unable to get managed connection for jdbc/testDS1; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for jdbc/testDS1)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)

                      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)

                      at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)

                      ... 73 more

                  Caused by: javax.resource.ResourceException: Unable to get managed connection for jdbc/testDS1

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:441)

                      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)

                      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

                      ... 75 more

                  Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                  )

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)

                      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:679)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)

                      ... 79 more

                  Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0" [50000-124]

                      at org.h2.message.Message.getSQLException(Message.java:111)

                      at org.h2.message.Message.convert(Message.java:288)

                      at org.h2.engine.Database.openDatabase(Database.java:261)

                      at org.h2.engine.Database.<init>(Database.java:221)

                      at org.h2.engine.Engine.openSession(Engine.java:58)

                      at org.h2.engine.Engine.openSession(Engine.java:142)

                      at org.h2.engine.Engine.getSession(Engine.java:122)

                      at org.h2.server.TcpServerThread.run(TcpServerThread.java:122)

                      at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.RuntimeException: page[10] data leaf table:0 entries:9 parent:12 keys:[459, 461, 463, 465, 467, 469, 471, 473, 475] offsets:[1937, 1479, 1392, 1262, 1151, 802, 731, 617, 506] parent 12 expected 0

                      at org.h2.message.Message.throwInternalError(Message.java:191)

                      at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:220)

                      at org.h2.index.PageDataIndex.<init>(PageDataIndex.java:74)

                      at org.h2.table.TableData.<init>(TableData.java:83)

                      at org.h2.store.PageStore.addMeta(PageStore.java:1304)

                      at org.h2.store.PageStore.redo(PageStore.java:1185)

                      at org.h2.store.PageLog.recover(PageLog.java:285)

                      at org.h2.store.PageStore.recover(PageStore.java:1051)

                      at org.h2.store.PageStore.openExisting(PageStore.java:310)

                      at org.h2.store.PageStore.open(PageStore.java:268)

                      at org.h2.engine.Database.getPageStore(Database.java:2305)

                      at org.h2.engine.Database.open(Database.java:624)

                      at org.h2.engine.Database.openDatabase(Database.java:227)

                      ... 6 more

                   

                      at org.h2.engine.SessionRemote.done(SessionRemote.java:522)

                      at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:115)

                      at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:337)

                      at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:229)

                      at org.h2.engine.SessionRemote.createSession(SessionRemote.java:223)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)

                      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)

                      at org.h2.Driver.connect(Driver.java:58)

                      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:207)

                      ... 84 more

                  ==========================================================================

                   

                  console is not even showing sample evaluation process.

                  Hope will solve this problem...

                  • 6. Re: problem about jbpm5.1 web console
                    hadik

                    Ok i got it...

                    it was the database file test.h2. which is located in my case at "C:\Documents and Settings\admin\".

                    I just removed it and reinstall the jboss. It worked for me.

                    Although when I reinstall the server it is created once again but now my programs are working.

                    If anyone who knows the reason please tell me.

                    Thanks JBoss Community.

                    • 7. Re: problem about jbpm5.1 web console
                      amin10043

                      hello , hardik.

                      your solution works for me

                      thanks a lot.

                      • 8. Re: problem about jbpm5.1 web console

                        Thanks, Hardik.

                        Your solution helped me out, too.

                        I had a fresh installation (ant install.demo  and ant start.demo) and when I wanted to continue the next day, I had errors (don't remember exactly).

                        Deleting the database files in the personal folder fixed the problem.

                        Regards, Thomas