[jboss-user] [jBPM] - problem faced with taskList = taskService.createTaskQuery().processInstanceId(piID).list();

paul jazzar do-not-reply at jboss.com
Wed Apr 27 14:31:33 EDT 2011


paul jazzar [http://community.jboss.org/people/pjazzar] created the discussion

"problem faced with taskList = taskService.createTaskQuery().processInstanceId(piID).list();"

To view the discussion, visit: http://community.jboss.org/message/602332#602332

--------------------------------------------------------------
Hello I am getting the below error when i try to use the taskQuery in JBPM4.4 

This is the code i am using : 

taskList = taskService.createTaskQuery().processInstanceId(piID).list();
 


Error Thrown:



20:06:37,799 INFO  [STDOUT] >>>>fetching tasks for Process:  ProcessX.110373


20:06:37,799 WARN  [loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 4ba811c6


20:06:37,799 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null


20:06:37,799 ERROR [JDBCExceptionReporter] Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f579bfb:d820:4dae9a67:13d8ff status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f579bfb:d820:4dae9a67:13d8ff status: ActionStatus.ABORT_ONLY >))


20:06:37,799 INFO  [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.query.TaskQueryImpl at 5404f06


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.doList(Loader.java:2228)


 at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)


 at org.hibernate.loader.Loader.list(Loader.java:2120)


 at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)


 at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)


 at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)


 at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)


 at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)


 at org.jbpm.pvm.internal.query.AbstractQuery.execute(AbstractQuery.java:93)


 at org.jbpm.pvm.internal.query.TaskQueryImpl.execute(TaskQueryImpl.java:231)


 at org.jbpm.pvm.internal.query.AbstractQuery.execute(AbstractQuery.java:83)


 at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)


 at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.executeInNewTx(JtaTransactionInterceptor.java:83)


 at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:62)


 at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)


 at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.executeWithRetry(JtaRetryInterceptor.java:52)


 at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:45)


 at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)


 at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)


 at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)


 at org.jbpm.pvm.internal.query.AbstractQuery.untypedList(AbstractQuery.java:64)


 at org.jbpm.pvm.internal.query.TaskQueryImpl.list(TaskQueryImpl.java:255)


 at com.vmac.dao.JBPMDao.SearchDysfonctionnement(JBPMDao.java:2053)


 at com.vmac.web.JBPMController.SearchDysfonctionnement(JBPMController.java:436)


 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.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:473)


 at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:410)


 at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)


 at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)


 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)


 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)


 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)


 at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)


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


 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.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)


 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)


 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.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: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f579bfb:d820:4dae9a67:13d8ff status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f579bfb:d820:4dae9a67:13d8ff status: ActionStatus.ABORT_ONLY >))


 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)


 ... 67 more


Caused by: org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f579bfb:d820:4dae9a67:13d8ff status: ActionStatus.ABORT_ONLY >)


 at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:409)


 at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:625)


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


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


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


 ... 69 more


Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f579bfb:d820:4dae9a67:13d8ff status: ActionStatus.ABORT_ONLY >


 at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:879)


 at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:675)


 at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:403)


 ... 73 more


20:06:37,799 INFO  [STDOUT] >>>>Exception thrown trying to retreive tasks 







Thanks for your help.
PJ.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/602332#602332]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110427/3e902ec0/attachment.html 


More information about the jboss-user mailing list