[jBPM] - Re: JBPM Timers behaviour
by Bira Neto
Bira Neto [https://community.jboss.org/people/biraneto] created the discussion
"Re: JBPM Timers behaviour"
To view the discussion, visit: https://community.jboss.org/message/742862#742862
--------------------------------------------------------------
Adding some more info on the subject. It appears the problem happens with persistence enabled only. Is this a bug? Should I code something else when using persistence for timers to work properly?
I'm using version 5.3.
The workflow is an start event with timer event definition with a cycle of 1 second... going to a script system out hello world and then to an end event.
Executing with *JPA*.... loading ksession with JPAKnowledgeService.loadStatefulKnowledgeSession( sessionId, kbase, null, env ).startProcess("testTimer");
The execution is shown below
163745 [http-8080-1] WARN bitronix.tm.twopc.Preparer - executing transaction with 0 enlisted resource
Hibernate: select nextval ('hibernate_sequence')
Hello World
Hibernate: select processins0_.InstanceId as col_0_0_ from ProcessInstanceInfo processins0_ inner join EventTypes eventtypes1_ on processins0_.InstanceId=eventtypes1_.InstanceId where eventtypes1_.eventTypes=?
Hibernate: update SessionInfo set lastModificationDate=?, rulesByteArray=?, startDate=?, OPTLOCK=? where id=? and OPTLOCK=?
Hibernate: insert into ProcessInstanceInfo (id, lastModificationDate, lastReadDate, processId, processInstanceByteArray, startDate, state, OPTLOCK, InstanceId) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: delete from ProcessInstanceInfo where InstanceId=? and OPTLOCK=?
Executing with a *simple stateful* session... Loading ksession with *kbase.newStatefulKnowledgeSession().startProcess("testTimer");*
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
*(forever untill I cancel execution)
*
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/742862#742862]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 9 months
[Beginner's Corner] - experimenting with JBoss 7 quickstart helloworld tutorial
by mperdikeas
mperdikeas [https://community.jboss.org/people/mperdikeas] created the discussion
"experimenting with JBoss 7 quickstart helloworld tutorial"
To view the discussion, visit: https://community.jboss.org/message/742795#742795
--------------------------------------------------------------
I am coming from a Tomcat / JSF background so I did a little experimentation with the quickstart helloworld tutorial.
Specifically I was curious as to the need for the beans.xml file which basically defines namespaces.
Since the first helloworld example does not include any xhtml I thought the file is not needed and so I removed it.
Not surprisingly I received an error when I tried to access the deployed application:
java.lang.NullPointerException
org.jboss.as.quickstarts.helloworld.HelloWorldServlet.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
What I cannot fathom is how not defining XML namespaces which are not used results in a NullPointerException error.
If anybody can shed some light this will help me improve my mental model and perhaps be able to decipher similarly cryptic messages in the future.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/742795#742795]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 9 months