[JBoss jBPM] - Re: Enterprise Timers - Load Order
by bradsdavis
Here is the exception that comes up when the server starts:
| 08:30:43,109 ERROR [LogInterceptor] EJBException in method: public abstract void javax.ejb.TimedObject.ejbTimeout(javax.ejb.Timer)
| :
| javax.ejb.NoSuchObjectLocalException: failed to retrieve command service home
| at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:221)
| at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:104)
| at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:76)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
| at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:527)
| at org.jboss.ejb.Container.invoke(Container.java:960)
| at org.jboss.ejb.txtimer.TimedObjectInvokerImpl.callTimeout(TimedObjectInvokerImpl.java:99)
| at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:561)
| at java.util.TimerThread.mainLoop(Timer.java:512)
| at java.util.TimerThread.run(Timer.java:462)
|
Can anyone give me insight into how I can prevent this?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214898#4214898
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214898
17 years, 1 month
[JBoss jBPM] - Re: gwt-console datasource problems
by jjrs
My datasource is in [Jboss.4.2.3.GA]\server\default\deploy\jbpm and the content is ...
<datasources>
| <local-tx-datasource>
| <jndi-name>JbpmDS</jndi-name>
| <connection-url>jdbc:oracle:thin:@dbServer:1521:dbInstance</connection-url>
|
| <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
| <user-name>user</user-name>
| <password>passwd</password>
|
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
|
| <metadata>
| <type-mapping>Oracle9i</type-mapping>
| </metadata>
| </local-tx-datasource>
|
| </datasources>
In login-config.xml I added the next section...
| <!-- New jBPM config -->
| <application-policy name = "jbpm">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
| flag="required">
| <module-option name="dsJndiName">java:/JbpmDS</module-option>
| <module-option name="principalsQuery">
| SELECT PASSWORD_ FROM JBPM_ID_USER WHERE NAME_=?
| </module-option>
| <module-option name="rolesQuery">
| SELECT g.NAME_ ,'Roles'
| FROM JBPM_ID_USER u,
| JBPM_ID_MEMBERSHIP m,
| JBPM_ID_GROUP g
| WHERE g.TYPE_='security-role'
| AND m.GROUP_ = g.ID_
| AND m.USER_ = u.ID_
| AND u.NAME_=?
| </module-option>
| </login-module>
| </authentication>
| </application-policy>
|
The oracle driver and the oracle version should be fine, otherwise I wouldn't be able to see any result, and I am having problems only with the Reports part of the gwt-console. With my current settings the jbpm-console is working fine, but the gwt-console, always complains about not being able to get a connection to the database.
Any other idea ? Do I have to modify the contents of any of the war files ? There are several parts in the jboss-web.xml files where the datasource is referenced, although this settings are commeted in the config files. If I enable that configuration the system complains saying ....
2009-03-04 12:04:40,662 DEBUG [org.jboss.web.tomcat.service.JBossWeb] Problem in init
| org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: resource-ref jdbc/JbpmDataSource found in jboss-web.xml but not in web.xml)
| at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:768)
| at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:356)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
|
Any other suggestion ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214867#4214867
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214867
17 years, 1 month
[JBoss jBPM] - "Runtime Task" Why not ?
by AlClientView
Hi everyone,
I have a question about what change can(not)/should(not) be allowed to be done at runtime. More specifically I'm thinking about Task:
The way Jbpm is implemented (if I'm not wrong) allows client application to create task instance(s) for one Task at runtime. This can be done easily by using the API. And my question is what about "Runtime Task". I mean by runtime Task: Adding a Task to a process instance.
>From what I've seen, nothing prevent a client application from adding a Task to a TaskNode at runtime but this means all process instances will be affected by this change (since the change is done at the process definition level).
I'm not saying this implementation is wrong, I just try to understand what is the logic behind this choice.
There are runtime actions for example why not to have also runtime Task. Is it against the BPM philosophy, saying this is part of the process design done by the BA and in anycase that should be changed at runtime ?
I can understand this rule but then how to support the implementation of a Task node for which the creation of Task is decided by a rule (RuleEngine) ?
Sorry to be long but I'm very interested and curious to know what you guys think about this, first regarding JBPM and then BPM in general...
Thanks in advance,
Arnaud.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214856#4214856
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214856
17 years, 1 month
[JBoss jBPM] - nested branch problems
by galanfish
hi all,
i've defined a process like this:
A_a ------------------------------\
/ \
start(waitstate) -> main_fork main_join -> end
\ /
\ B_C_a /
\ / \ /
B_a -> B_fork B_join
\ /
B_D_a
fork and join activity are using the classes of 'org.jbpm.jpdl.internal.activity.ForkActivity' and 'org.jbpm.jpdl.internal.activity.JoinActivity'
ClientProcessDefinition process = ProcessDefinitionBuilder.startProcess("simpleNestedBranch")
|
| .startActivity("start", WaitState.class)
| .initial()
| .transition("main_fork", "to_main_fork")
| .endActivity()
|
| .startActivity("main_fork", ForkActivity.class)
| .transition("A_a", "to_A_a")
| .transition("B_a", "to_B_a")
| .endActivity()
|
| .startActivity("A_a", AutomaticActivity.class)
| .transition("main_join", "to_main_join")
| .endActivity()
|
| .startActivity("B_a", AutomaticActivity.class)
| .transition("B_fork", "to_B_fork")
| .endActivity()
|
| .startActivity("B_fork", ForkActivity.class)
| .transition("B_C_a", "to_B_C_a")
| .transition("B_D_a", "to_B_D_a")
| .endActivity()
|
| .startActivity("B_C_a", AutomaticActivity.class)
| .transition("B_join", "to_B_join")
| .endActivity()
|
| .startActivity("B_D_a", AutomaticActivity.class)
| .transition("B_join", "to_B_join")
| .endActivity()
|
| .startActivity("B_join", JoinActivity.class)
| .transition("main_join", "to_main_join")
| .endActivity()
|
| .startActivity("main_join", JoinActivity.class)
| .transition("end", "to_end")
| .endActivity()
|
| .startActivity("end", EndState.class) // EndState: implementation of ActivityBehaviour, call execution#end in the #execute
| .endActivity()
|
| .endProcess();
then i deploy and run the testcase with
executionService.startProcessInstanceById("simpleNestedBranch:1", "yyyy2");
| executionService.signalExecutionById("simpleNestedBranch/yyyy2", "to_main_fork");
the result is not as i expected.
the console print out by this order:
start -> main_fork (execution id: simpleNestedBranch/yyyy2)
-> A_a -> main_join (execution id: simpleNestedBranch/yyyy2/to_A_a)
-> B_a -> B_fork (execution id: simpleNestedBranch/yyyy2/to_B_a)
-> B_C_a -> B_join (execution id: simpleNestedBranch/yyyy2/to_B_C_a)
-> B_D_a -> B_join (execution id: simpleNestedBranch/yyyy2/to_B_D_a)
-> main_join (execution id: simpleNestedBranch/yyyy2/48)
-> end (execution id: simpleNestedBranch/yyyy2/49)
-> B_C_a -> B_join (execution id: simpleNestedBranch/yyyy2/to_B_a)
then i checked the table 'jbpm_execution' in database, the recrods like this:
dbid dbversion act name key id state
47 2 null null yyyy2 simpleNestedBranch/yyyy2 inactive
48 1 69(main_join) null null simpleNestedBranch/yyyy2/48 ended
49 1 70(end) null null simpleNestedBranch/yyyy2/49 ended
50 0 74(B_join) to_B_a null simpleNestedBranch/yyyy2/to_B_a inactive
the process does not ended as i expected, i suppose that the process would be ended when the activity 'end' finished.
need some help... any suggestion would be appreciate!!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214741#4214741
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214741
17 years, 1 month