[jboss-user] [jBPM] - Re: jBPM straying after user task completed

Laura delli Paoli do-not-reply at jboss.com
Thu Jun 6 07:07:17 EDT 2013


Laura delli Paoli [https://community.jboss.org/people/lauradp] created the discussion

"Re: jBPM straying after user task completed"

To view the discussion, visit: https://community.jboss.org/message/821670#821670

--------------------------------------------------------------
ok, yhanks  :D 

I write this lines to complete workItem (before completing task):

KnowledgeBuilder knowledgeBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
knowledgeBuilder.add(ResourceFactory.newFileResource(processPath), ResourceType.BPMN2);
KnowledgeBase knowledgeBase = knowledgeBuilder.newKnowledgeBase();
StatefulKnowledgeSession ksession = JBPMHelper.loadStatefulKnowledgeSession(knowledgeBase, sessionId);
ksession.getWorkItemManager().completeWorkItem(workItemId, null);

13:04:01,349 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (Thread-66) HHH000299: Could not complete schema update: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown table 'sequences' in information_schema
  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) [mysql-connector-java-5.0.8-bin.jar:]
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985) [mysql-connector-java-5.0.8-bin.jar:]
  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631) [mysql-connector-java-5.0.8-bin.jar:]
  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723) [mysql-connector-java-5.0.8-bin.jar:]
  at com.mysql.jdbc.Connection.execSQL(Connection.java:3277) [mysql-connector-java-5.0.8-bin.jar:]
  at com.mysql.jdbc.Connection.execSQL(Connection.java:3206) [mysql-connector-java-5.0.8-bin.jar:]
  at com.mysql.jdbc.Statement.executeQuery(Statement.java:1232) [mysql-connector-java-5.0.8-bin.jar:]
  at org.jboss.jca.adapters.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:340)
  at org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMetadata.java:149) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
  at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.java:70) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
  at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.java:63) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
  at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:196) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
  at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:178) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
  at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:457) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
  at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
  at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
  at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
  at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
  at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
  at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
  at org.jbpm.test.JBPMHelper.loadStatefulKnowledgeSession(JBPMHelper.java:147) [jbpm-test-5.4.0.Final.jar:5.4.0.Final]
  at eu.discoveryreply.applicationLayer.controller.Controller.completeWorkItem(Controller.java:145) [classes:]
  at eu.discoveryreply.applicationLayer.controller.Controller.grantProcess(Controller.java:117) [classes:]
  at eu.discoveryreply.applicationLayer.controller.Controller.run(Controller.java:67) [classes:]


13:04:01,883 WARN  [org.hibernate.ejb.internal.EntityManagerFactoryRegistry] (Thread-66) HHH000436: Entity manager factory name (org.jbpm.persistence.jpa) is already registered.  If entity manager will be clustered or passivated, specify a unique value for property 'hibernate.ejb.entitymanager_factory_name'
13:04:01,884 INFO  [bitronix.tm.BitronixTransactionManager] (Thread-66) Bitronix Transaction Manager version 2.1.2
13:04:01,889 ERROR [eu.discoveryreply.applicationLayer.controller.Controller] (Thread-66) Error while starting/stopping Controller.: bitronix.tm.utils.InitializationException: initialization failed, cannot safely start the transaction manager
  at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:79) [btm-2.1.2.jar:2.1.2]
  at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:62) [btm-2.1.2.jar:2.1.2]
  at org.jbpm.test.JBPMHelper.createEnvironment(JBPMHelper.java:131) [jbpm-test-5.4.0.Final.jar:5.4.0.Final]
  at org.jbpm.test.JBPMHelper.loadStatefulKnowledgeSession(JBPMHelper.java:149) [jbpm-test-5.4.0.Final.jar:5.4.0.Final]
  at eu.discoveryreply.applicationLayer.controller.Controller.completeWorkItem(Controller.java:145) [classes:]
  at eu.discoveryreply.applicationLayer.controller.Controller.grantProcess(Controller.java:117) [classes:]
  at eu.discoveryreply.applicationLayer.controller.Controller.run(Controller.java:67) [classes:]
Caused by: java.nio.channels.OverlappingFileLockException
  at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) [rt.jar:1.7.0_19]
  at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152) [rt.jar:1.7.0_19]
  at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1017) [rt.jar:1.7.0_19]
  at bitronix.tm.journal.TransactionLogAppender.<init>(TransactionLogAppender.java:70) [btm-2.1.2.jar:2.1.2]
  at bitronix.tm.journal.DiskJournal.open(DiskJournal.java:151) [btm-2.1.2.jar:2.1.2]
  at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:62) [btm-2.1.2.jar:2.1.2]
  ... 6 more


13:04:31,934 INFO  [eu.discoveryreply.applicationLayer.controller.Controller] (Thread-66) Selected process: 123
13:04:31,958 INFO  [eu.discoveryreply.applicationLayer.controller.Controller] (Thread-66) Task to Run: 121
13:04:31,959 INFO  [eu.discoveryreply.applicationLayer.controller.Controller] (Thread-66) SessionId: 133
13:04:32,044 ERROR [stderr] (Thread-65) org.jbpm.task.service.PermissionDeniedException: User '[User:'john']' was unable to execution operation 'Start' on task id 121 due to a no 'current status' match
13:04:32,046 ERROR [stderr] (Thread-65) at org.jbpm.task.service.TaskServiceSession.evalCommand(TaskServiceSession.java:311)
13:04:32,050 ERROR [stderr] (Thread-65) at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:426)
13:04:32,054 ERROR [stderr] (Thread-65) at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90)
13:04:32,055 ERROR [stderr] (Thread-65) at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43)
13:04:32,059 ERROR [stderr] (Thread-65) at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104)
13:04:32,060 ERROR [stderr] (Thread-65) at java.lang.Thread.run(Thread.java:722)
13:04:32,060 ERROR [org.jbpm.task.service.TaskServerHandler] (Thread-65) User '[User:'john']' was unable to execution operation 'Start' on task id 121 due to a no 'current status' match: org.jbpm.task.service.PermissionDeniedException: User '[User:'john']' was unable to execution operation 'Start' on task id 121 due to a no 'current status' match
  at org.jbpm.task.service.TaskServiceSession.evalCommand(TaskServiceSession.java:311) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]
  at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:426) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]
  at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]
  at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]
  at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]
  at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_19]
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20130606/c9a19235/attachment-0001.html 


More information about the jboss-user mailing list