[jBPM] - Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2
by Dev S
Dev S [https://community.jboss.org/people/devinderpal] created the discussion
"Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2"
To view the discussion, visit: https://community.jboss.org/message/752342#752342
--------------------------------------------------------------
Env: Jboss 7.1.0, mysql DB, Redhat 5.5, jBPM 5.2
When I thought I'm getting pretty good with jBPM and our application is about to be released, i came across this tough bug during extensive testing.
Intermittently we're facing that pending human task has missing parent process instance and it results in nullpointerexception while completing that human task.
I ran below SQL query to confirm this:
select t.id, t.processInstanceId from Task t where t.processInstanceId not in (select distinct(InstanceId) from ProcessInstanceInfo);
+----+-------------------+
| id | processInstanceId |
+----+-------------------+
| 33 | 20 |
| 43 | 20 |
| 47 | 20 |
| 53 | 20 |
| 57 | 20 |
+----+-------------------+
Same code works fine most of the time. So I think it's not problem with our code but some bug in jBPM. MinaTaskServer is being used for our implementation.
Also we use JTA persistence for jBPM core engine and RESOURCE_LOCAL for human task. We have to use RESOURCE_LOCAL for human task because JTA can't be used due to another jBPM bug.
If I reinitialize the database, then everything works fine for a while but again I run into this problem.
Please let us know how we can fix it, if anyone knows solution. I was about to create a blocker JIRA issue but thought let's first get community opinion on this.
Exception stack trace is attached.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/752342#752342]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 7 months
[jBPM] - SignalEvent issue in jBPMConsole
by Herman Post
Herman Post [https://community.jboss.org/people/hbpost] created the discussion
"SignalEvent issue in jBPMConsole"
To view the discussion, visit: https://community.jboss.org/message/757107#757107
--------------------------------------------------------------
We have run into an issue with jbpmConsole that we do not understand. The sample code runs as expected in eclipse but does not run the same in jbpmConsole. (project attached running jBPM 5.3/Drools 5.4)
The sample demonstrates starting two different processes in the same kSession and having one process signal an event in the other process.
The sample code in ProcessApp creates an instance of Hello.bpmn which blocks waiting for a SignalEvent. It then creates an instance of DataDriveProcess.bpmn which has a single action node that calls kcontext.getKnowledgeRuntime().signalEvent("TestSignal", false);
In eclipse this works fine and the Hello process terminates when it receives the SignalEvent from DataDriveProcess.
If these processes are uploaded to Guvnor and packaged, and then started in jbpmConsole, Hello process does not receive the SignalEvent. It can be made to work though, if you start the Hello process, note the processInstanceId, then edit the DataDriveProcess in Guvnor to call signalEvent("TestSignal", false, 8) with the explicit processInstanceId, and rebuild and start DataDriveProcess.
So to summarize, signalEvent in 'broadcast' mode, without a specific processInstanceId does not appear to work in jbpmConsole, but does work in eclipse.
We also tried to iterate through all of the process instances from the Action node in jbpmConsole and just SignalEvent on each, but no other process instances are visible. They are visible in eclipse.
Thanks,
Herm
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/757107#757107]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 7 months
[jBPM] - JBPM HUMAN TASK, TASK SERVER
by RSTVMA LDHYAGF
RSTVMA LDHYAGF [https://community.jboss.org/people/mab1990.amu] created the discussion
"JBPM HUMAN TASK, TASK SERVER"
To view the discussion, visit: https://community.jboss.org/message/746278#746278
--------------------------------------------------------------
Hello,
can someone please help me with this: I created my JBPM project with some human task in but when i try to run it this error pops out:
| 0 | 05/07 11:17:53,531[main] ERROR workitem.wsht.GenericHTWorkItemHandler.executeWorkItem -
Thu Jul 05 11:17:53 WAT 2012: Error when creating task on task server for work item id 1. Error reported by task server: Task operation request timed out |
java.lang.RuntimeException: Task operation request timed out
| | at org.jbpm.task.service.SyncTaskServiceWrapper.addTask(SyncTaskServiceWrapper.java:118) |
| | at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.executeWorkItem(GenericHTWorkItemHandler.java:145) |
| | at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70) |
| | at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164) |
| | at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) |
| | at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) |
| | at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35) |
| | at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188) |
| | at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:303) |
| | at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:168) |
| | at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:138) |
| | at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1082) |
| | at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320) |
| | at com.principal.PrincipalProcess.main(PrincipalProcess.java:30) |
Process Started..........
I don't know if i have to set something in order to connect to the server, because i have set the IpAddress and the port but still from the localhost:8080/jbpm-console i can't see my processes i only see the evaluation.bpmn that i got from the jbpm-installer folder
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/746278#746278]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 7 months
[jBPM] - Re: I18NText with Oracle
by Diego Leal
Diego Leal [https://community.jboss.org/people/diegoasth] created the discussion
"Re: I18NText with Oracle"
To view the discussion, visit: https://community.jboss.org/message/646747#646747
--------------------------------------------------------------
Hello
I have a similar problem with this field. When i´m running over the in-memory database, and try to complete a Human task everything works fine, but when i´m running over Oracle, I got the following exception. Dou you have any clue? Or did you have a similar problem? Thx
Diego
19:32:42,984 INFO [STDOUT] 19:32:42,984 WARN [LoggingFilter] EXCEPTION :
org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.NullPointerException
at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:355)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:509)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1400(DefaultIoFilterChain.java:46)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:808)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:734)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:509)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:501)
at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:490)
at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:435)
at org.jbpm.task.service.mina.MinaSessionWriter.write(MinaSessionWriter.java:31)
at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:101)
at org.jbpm.task.service.mina.MinaTaskServerHandler.messageReceived(MinaTaskServerHandler.java:41)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
at org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:177)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:692)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:645)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:634)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:66)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1078)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputStream.java:2106)
at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1977)
at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:849)
at org.jbpm.task.I18NText.writeExternal(I18NText.java:49)
at org.jbpm.task.utils.CollectionUtils.writeI18NTextList(CollectionUtils.java:235)
at org.jbpm.task.Task.writeExternal(Task.java:93)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1398)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at java.util.ArrayList.writeObject(ArrayList.java:570)
at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at org.apache.mina.core.buffer.AbstractIoBuffer.putObject(AbstractIoBuffer.java:2011)
at org.apache.mina.filter.codec.serialization.ObjectSerializationEncoder.encode(ObjectSerializationEncoder.java:80)
at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:322)
... 36 more
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646747#646747]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 7 months
[Snowdrop] - EAP6 + Snowdrop compatible?
by _cp
_cp [https://community.jboss.org/people/_cp] created the discussion
"EAP6 + Snowdrop compatible?"
To view the discussion, visit: https://community.jboss.org/message/775439#775439
--------------------------------------------------------------
Is anyone here using EAP6 and Snowdrop with any success?
I'm using EAP6 (7.1.2.Final) and Snowdrop 2.0.2.Final and JBoss fails on startup looking for a missing module: org.jboss.interceptor. This module exists in AS7 but not in EAP.
Here's the exception:
+[Host Controller] Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module+
+[Host Controller] at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java+
+:195) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]+
+[Host Controller] at org.jboss.as.controller.parsing.ExtensionXml.access$000(ExtensionXml.java+
+:68) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]+
+[Host Controller] at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:126+
+) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]+
+[Host Controller] at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:123+
+) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]+
+[Host Controller] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.ja+
+r:1.6.0_27]+
+[Host Controller] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_27+
+]+
+[Host Controller] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor+
+.java:886) [rt.jar:1.6.0_27]+
+[Host Controller] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav+
+a:908) [rt.jar:1.6.0_27]+
+[Host Controller] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_27]+
+[Host Controller] at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.+
+0.0.GA-redhat-1.jar:2.0.0.GA-redhat-1]+
+[Host Controller] Caused by: org.jboss.modules.ModuleNotFoundException: Module org.jboss.interceptor+
+:main is not found in local module loader @1835282 (roots: C:\Programs\jboss-eap-6.0\modules)+
+[Host Controller] at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126+
+) [jboss-modules.jar:1.1.2.GA-redhat-1]+
+[Host Controller] at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275) [jb+
+oss-modules.jar:1.1.2.GA-redhat-1]+
+[Host Controller] at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222) [jbos+
+s-modules.jar:1.1.2.GA-redhat-1]+
+[Host Controller] at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:+
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/775439#775439]
Start a new discussion in Snowdrop at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 7 months