[jBPM] - New process instance created but no task insert in db
by Sandra Renaud
Sandra Renaud [https://community.jboss.org/people/joploya] created the discussion
"New process instance created but no task insert in db"
To view the discussion, visit: https://community.jboss.org/message/824520#824520
--------------------------------------------------------------
Hello,
I have a persistent session. When the process starts, the log shows that session is created, process variables are passed to the process instance. Also the woritem is created weel. But no task appears or is created. I have no "bug" or error in my log and until today I didn't encounter this kind of problem.
This is the log. I don't understand what is "AFTER PROCESS NODE TRIGGERED"
11:52:01,222 INFO [stdout] (http--0.0.0.0-8080-7) knowledge base NOT null
11:52:01,223 INFO [stdout] (http--0.0.0.0-8080-7) - process newcpbeforem29commontrunk [com.st.ams.flows.newcpbeforem29commontrunk]
11:52:01,224 INFO [stdout] (http--0.0.0.0-8080-7) - process newcpbeforem29 [com.st.ams.flows.newcpbeforem29]
11:52:01,224 INFO [stdout] (http--0.0.0.0-8080-7) - process newfrontendcodes [com.st.ams.flows.nfep]
11:52:01,224 INFO [stdout] (http--0.0.0.0-8080-7) - process newfinishedgood [com.st.ams.flows.newfinishedgood]
11:52:01,225 INFO [stdout] (http--0.0.0.0-8080-7) - process DataCorrections [com.st.ams.flows.datacorrections]
11:52:01,225 INFO [stdout] (http--0.0.0.0-8080-7) - process newproductline [com.st.ams.flows.newproductline]
11:52:01,227 INFO [stdout] (http--0.0.0.0-8080-7) Hibernate:
11:52:01,228 INFO [stdout] (http--0.0.0.0-8080-7) select
11:52:01,228 INFO [stdout] (http--0.0.0.0-8080-7) knowledges0_.sessionId as sessionId417_
11:52:01,228 INFO [stdout] (http--0.0.0.0-8080-7) from
11:52:01,229 INFO [stdout] (http--0.0.0.0-8080-7) KnowledgeSessionRecovery knowledges0_
11:52:02,299 INFO [stdout] (http--0.0.0.0-8080-7) Hibernate:
11:52:02,299 INFO [stdout] (http--0.0.0.0-8080-7) insert
11:52:02,299 INFO [stdout] (http--0.0.0.0-8080-7) into
11:52:02,299 INFO [stdout] (http--0.0.0.0-8080-7) SessionInfo
11:52:02,300 INFO [stdout] (http--0.0.0.0-8080-7) (lastModificationDate, rulesByteArray, startDate, OPTLOCK)
11:52:02,300 INFO [stdout] (http--0.0.0.0-8080-7) values
11:52:02,300 INFO [stdout] (http--0.0.0.0-8080-7) (?, ?, ?, ?)
11:52:02,305 INFO [stdout] (http--0.0.0.0-8080-7) Hibernate:
11:52:02,305 INFO [stdout] (http--0.0.0.0-8080-7) select
11:52:02,306 INFO [stdout] (http--0.0.0.0-8080-7) knowledges0_.sessionId as sessionId417_0_
11:52:02,306 INFO [stdout] (http--0.0.0.0-8080-7) from
11:52:02,306 INFO [stdout] (http--0.0.0.0-8080-7) KnowledgeSessionRecovery knowledges0_
11:52:02,306 INFO [stdout] (http--0.0.0.0-8080-7) where
11:52:02,307 INFO [stdout] (http--0.0.0.0-8080-7) knowledges0_.sessionId=?
11:52:02,308 INFO [stdout] (http--0.0.0.0-8080-7) !!!! DEBUG SESSION PERSISTENCE : new session with id : 1 !!!!
11:52:02,330 INFO [stdout] (http--0.0.0.0-8080-7) Hibernate:
11:52:02,331 INFO [stdout] (http--0.0.0.0-8080-7) insert
11:52:02,331 INFO [stdout] (http--0.0.0.0-8080-7) into
11:52:02,331 INFO [stdout] (http--0.0.0.0-8080-7) KnowledgeSessionRecovery
11:52:02,331 INFO [stdout] (http--0.0.0.0-8080-7) (sessionId)
11:52:02,332 INFO [stdout] (http--0.0.0.0-8080-7) values
11:52:02,332 INFO [stdout] (http--0.0.0.0-8080-7) (?)
11:52:02,352 INFO [stdout] (http--0.0.0.0-8080-7) Hibernate:
11:52:02,353 INFO [stdout] (http--0.0.0.0-8080-7) insert
11:52:02,353 INFO [stdout] (http--0.0.0.0-8080-7) into
11:52:02,353 INFO [stdout] (http--0.0.0.0-8080-7) ProcessInstanceInfo
11:52:02,353 INFO [stdout] (http--0.0.0.0-8080-7) (OPTLOCK, processId, startDate, lastReadDate, lastModificationDate, state, processInstanceByteArray)
11:52:02,354 INFO [stdout] (http--0.0.0.0-8080-7) values
11:52:02,354 INFO [stdout] (http--0.0.0.0-8080-7) (?, ?, ?, ?, ?, ?, ?)
11:52:02,362 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) BEFORE RULEFLOW VARIABLE CHANGED startDate=Mon Jun 24 11:51:53 CEST 2013 process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,363 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) AFTER RULEFLOW VARIABLE CHANGED startDate=Mon Jun 24 11:51:53 CEST 2013 process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,364 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) BEFORE RULEFLOW VARIABLE CHANGED flowType=N_FG process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,365 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) AFTER RULEFLOW VARIABLE CHANGED flowType=N_FG process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,379 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) BEFORE RULEFLOW VARIABLE CHANGED flowId=1 process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,380 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) AFTER RULEFLOW VARIABLE CHANGED flowId=1 process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,383 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) BEFORE RULEFLOW STARTED process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,393 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) BEFORE PROCESS NODE TRIGGERED node:[id=1] process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,394 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) BEFORE PROCESS NODE EXITED node:[id=1] process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,395 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) BEFORE PROCESS NODE TRIGGERED node:[id=2] process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,399 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) BEFORE PROCESS NODE EXITED node:[id=2] process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,399 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) BEFORE PROCESS NODE TRIGGERED node:P_ENG_step[id=3] process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:02,401 INFO [stdout] (http--0.0.0.0-8080-7) Hibernate:
11:52:02,402 INFO [stdout] (http--0.0.0.0-8080-7) insert
11:52:02,402 INFO [stdout] (http--0.0.0.0-8080-7) into
11:52:02,402 INFO [stdout] (http--0.0.0.0-8080-7) WorkItemInfo
11:52:02,402 INFO [stdout] (http--0.0.0.0-8080-7) (creationDate, name, processInstanceId, state, OPTLOCK, workItemByteArray)
11:52:02,403 INFO [stdout] (http--0.0.0.0-8080-7) values
11:52:02,403 INFO [stdout] (http--0.0.0.0-8080-7) (?, ?, ?, ?, ?, ?)
11:52:03,177 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) AFTER PROCESS NODE TRIGGERED node:P_ENG_step[id=3] process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:03,178 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) AFTER PROCESS NODE TRIGGERED node:[id=2] process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:03,178 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) AFTER PROCESS NODE TRIGGERED node:[id=2] process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:03,179 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) AFTER PROCESS NODE TRIGGERED node:[id=1] process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:03,180 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) AFTER PROCESS NODE TRIGGERED node:[id=1] process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:03,180 INFO [org.drools.audit.WorkingMemoryConsoleLogger] (http--0.0.0.0-8080-7) AFTER RULEFLOW STARTED process:newfinishedgood[id=com.st.ams.flows.newfinishedgood]
11:52:03,183 INFO [stdout] (http--0.0.0.0-8080-7) Hibernate:
11:52:03,183 INFO [stdout] (http--0.0.0.0-8080-7) update
11:52:03,183 INFO [stdout] (http--0.0.0.0-8080-7) SessionInfo
11:52:03,183 INFO [stdout] (http--0.0.0.0-8080-7) set
11:52:03,183 INFO [stdout] (http--0.0.0.0-8080-7) lastModificationDate=?,
11:52:03,184 INFO [stdout] (http--0.0.0.0-8080-7) rulesByteArray=?,
11:52:03,184 INFO [stdout] (http--0.0.0.0-8080-7) startDate=?,
11:52:03,184 INFO [stdout] (http--0.0.0.0-8080-7) OPTLOCK=?
11:52:03,184 INFO [stdout] (http--0.0.0.0-8080-7) where
11:52:03,184 INFO [stdout] (http--0.0.0.0-8080-7) id=?
11:52:03,185 INFO [stdout] (http--0.0.0.0-8080-7) and OPTLOCK=?
11:52:03,199 INFO [stdout] (http--0.0.0.0-8080-7) Hibernate:
11:52:03,200 INFO [stdout] (http--0.0.0.0-8080-7) update
11:52:03,200 INFO [stdout] (http--0.0.0.0-8080-7) ProcessInstanceInfo
11:52:03,200 INFO [stdout] (http--0.0.0.0-8080-7) set
11:52:03,200 INFO [stdout] (http--0.0.0.0-8080-7) OPTLOCK=?,
11:52:03,201 INFO [stdout] (http--0.0.0.0-8080-7) processId=?,
11:52:03,201 INFO [stdout] (http--0.0.0.0-8080-7) startDate=?,
11:52:03,201 INFO [stdout] (http--0.0.0.0-8080-7) lastReadDate=?,
11:52:03,201 INFO [stdout] (http--0.0.0.0-8080-7) lastModificationDate=?,
11:52:03,202 INFO [stdout] (http--0.0.0.0-8080-7) state=?,
11:52:03,202 INFO [stdout] (http--0.0.0.0-8080-7) processInstanceByteArray=?
11:52:03,202 INFO [stdout] (http--0.0.0.0-8080-7) where
11:52:03,202 INFO [stdout] (http--0.0.0.0-8080-7) InstanceId=?
11:52:03,203 INFO [stdout] (http--0.0.0.0-8080-7) and OPTLOCK=?
11:52:03,204 INFO [stdout] (http--0.0.0.0-8080-7) Hibernate:
11:52:03,204 INFO [stdout] (http--0.0.0.0-8080-7) update
11:52:03,204 INFO [stdout] (http--0.0.0.0-8080-7) WorkItemInfo
11:52:03,205 INFO [stdout] (http--0.0.0.0-8080-7) set
11:52:03,205 INFO [stdout] (http--0.0.0.0-8080-7) creationDate=?,
11:52:03,205 INFO [stdout] (http--0.0.0.0-8080-7) name=?,
11:52:03,206 INFO [stdout] (http--0.0.0.0-8080-7) processInstanceId=?,
11:52:03,206 INFO [stdout] (http--0.0.0.0-8080-7) state=?,
11:52:03,206 INFO [stdout] (http--0.0.0.0-8080-7) OPTLOCK=?,
11:52:03,206 INFO [stdout] (http--0.0.0.0-8080-7) workItemByteArray=?
11:52:03,206 INFO [stdout] (http--0.0.0.0-8080-7) where
11:52:03,207 INFO [stdout] (http--0.0.0.0-8080-7) workItemId=?
11:52:03,207 INFO [stdout] (http--0.0.0.0-8080-7) and OPTLOCK=?
Thanks for any explanation.
I'm on Jbpm 5.4 with mySQL.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/824520#824520]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months
[Datasource Configuration] - XA datasources , if I add this <track-connection-by-tx>true</track-connection-by-tx> to standalone
by Gayratbek Komilov
Gayratbek Komilov [https://community.jboss.org/people/gayrat.komilov] created the document:
"XA datasources , if I add this <track-connection-by-tx>true</track-connection-by-tx> to standalone "
To view the document, visit: https://community.jboss.org/docs/DOC-48908
--------------------------------------------------------------
Calling "C:\jboss-as-7.1.1.Final\bin\standalone.conf.bat"
JAVA_HOME is not set. Unexpected results may occur.
Set JAVA_HOME to the directory of your local JDK to avoid this message.
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\jboss-as-7.1.1.Final
JAVA: java
JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx51
2M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.se
rver.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.war
ning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.c
onfig=standalone.xml
===============================================================================
11:01:20,316 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
11:01:20,454 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
11:01:20,489 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" sta
rting
11:01:20,837 ERROR [org.jboss.as.server] JBAS015956: Caught exception during boo
t: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS01
4676: Failed to parse configuration
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(Xm
lConfigurationPersister.java:141) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Fin
al]
at org.jboss.as.server.ServerService.boot(ServerService.java:266) [jboss
-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractContr
ollerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_10]
Caused by: javax.xml.stream.XMLStreamException: org.jboss.as.connector.util.Pars
erException: IJ010061: Unexpected element: track-connection-by-tx
at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$Da
taSourceSubsystemParser.readElement(DataSourcesExtension.java:784)
at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$Da
taSourceSubsystemParser.readElement(DataSourcesExtension.java:333)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:1
10) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtende
dStreamReaderImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(Standalo
neXml.java:894) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_1(Stand
aloneXml.java:330) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.j
ava:127) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.j
ava:100) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:1
10) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:6
9) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(Xm
lConfigurationPersister.java:133) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Fin
al]
... 3 more
Caused by: org.jboss.as.connector.util.ParserException: IJ010061: Unexpected ele
ment: track-connection-by-tx
at org.jboss.as.connector.subsystems.datasources.DsParser.parseXADataSou
rce(DsParser.java:479)
at org.jboss.as.connector.subsystems.datasources.DsParser.parseDataSourc
es(DsParser.java:198)
at org.jboss.as.connector.subsystems.datasources.DsParser.parse(DsParser
.java:165)
at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$Da
taSourceSubsystemParser.readElement(DataSourcesExtension.java:776)
... 13 more
11:01:20,885 FATAL [org.jboss.as.server] JBAS015957: Server boot has failed in a
n unrecoverable manner; exiting. See previous messages for details.
11:01:20,893 INFO [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes" sto
pped in 2ms
Для продолжения нажмите любую клавишу . . .
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-48908]
Create a new document in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
11 years, 5 months