[jBPM] - Timer triggered more than it should after an exception (infinite loop some times).
by Miloud Haimoune
Miloud Haimoune [https://community.jboss.org/people/milhaim] created the discussion
"Timer triggered more than it should after an exception (infinite loop some times)."
To view the discussion, visit: https://community.jboss.org/message/736786#736786
--------------------------------------------------------------
Hi All,
I'm having an infinite loop in my business process in my project, so I reduced my process to a sample one and reproduced the bug. I'm using jbpm5.2 seam and jboss 5.1.
the process:
https://community.jboss.org/servlet/JiveServlet/showImage/2-736786-18600/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-736786-18...
In an ad-hoc model, I start the process and a timer is triggered each 60s to check some rules. I have a variable "iteration" which is incremented in the a script action (each time the triggered), after the third iteration a throw an exception with I catch in my processManager.
The rule where the exception is thrown
https://community.jboss.org/servlet/JiveServlet/showImage/2-736786-18601/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-736786-18...
To reproduce the bug I start tow process instance, let the exception occurred and start a new process instance than the timer is triggered 3, 4 5 times in a second and it should happen just ones each 60s. Some times this exception produces an infinite loop (triggering the timer).
I joined the process definition, the rule file and processmanager.ava (inspired from the jbpm console code).
My question :
Is it a problem in my code or a bug in jbpm, and if there is a way to workaround.
If you need any further information, please let me know.
thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/736786#736786]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 10 months
[JBoss Tools] - Incremental publish of Dynamic Web Project problem
by Vt Ysh
Vt Ysh [https://community.jboss.org/people/vtysh] created the discussion
"Incremental publish of Dynamic Web Project problem"
To view the discussion, visit: https://community.jboss.org/message/741645#741645
--------------------------------------------------------------
Hello JBoss community
I have a problem with incremental publish functionality of JBossAS tools server.
In eclipse i have a Dynamic Web Project. In the deployment assembly tab i've added few other eclipse projects to be automatically packaged and deployed to the WEB-INF/lib folder. Some of that eclipse projects have some jars in the deployment assembly also. Also there are few direct jars dependencies to be deployed. When i do full publish to the JBoss AS all is deployed properly. But if i do incremental publish only the already existing jars which are directly specified in the deployment assembly tab of this web project are copied to the WEB-INF/lib folder. As for others JBossAS tools removes jars which were automatically generated from eclipse projects and their depencencies. So i receive ClassNotFoundException.
Explanation is little weird so i try to show it on example:
Suppose we have eclipse projects:
Project_1 (in the deployment assembly tab it has dependencies jar1.jar and jar2.jar)
Project_2 (in the deployment assembly tab it has depencencies jar3.jar and jar4.jar)
WProject (Dynamic web project. In the deployment assembly tab it has depencencies Project_1 and Project_2 and jar5.jar and jar6.jar)
Now if i do full publish in the WEB-INF/lib folder of WProject deployment i see next:
Project_1.jar
Project_2.jar
jar1.jar
jar2.jar
jar3.jar
jar4.jar
jar5.jar
jar6.jar
Now suppose i changed some code in the project and do incremental publish. After such operation WEB-INF/lib folder become like this:
jar5
jar6
Project 1 and Project 2 with their dependencies are lost. What is the reason of such behaviour? Is there any fixes for it?
Eclipse version: Indigo SP2
JBossAS tools version: 2.3.0
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/741645#741645]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 10 months