[jBPM Users] - Action associated with timer is not invoked
by jbosspnet
Hi, I am using Jbpm 3.2.3 on Jboss 4.2.3.GA.
I have the following simple process:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="" name="sample">
| <start-state name="start">
| <transition to="state"></transition>
| </start-state>
|
| <state name="state">
| <timer name="two-seconds" duedate="2 seconds" transition="to-decision">
| <action name="handler" class="sample.TimerHandler"></action>
| </timer>
| <transition to="decision" name="to-decision"></transition>
| </state>
|
| <decision name="decision">
| <handler class="sample.MyDecisionHandler"></handler>
| <transition to="end" name="OK"></transition>
| <transition to="state" name="KO"></transition>
| </decision>
|
| <end-state name="end"></end-state>
|
| </process-definition>
|
The idea is that I perform a check in TimerHandler every 2 seconds, then I set some variable that MyDecisionHandler will use to take "OK" or "KO" transition.
I have deployed the process archive with the two classes (TimerHandler and MyDecisionHandler) and then I use jbpm console to signal process.
When I enter to "state" state and I click signal, the class action associated to the timer (sample.TimerHandler) will never be called.
Why? I have to do other things to creater timer or is a configuration problem in jbpm.cfg.xml? I have added the entry:
<bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor" singelton="true" />
and jbpm-enterprise.jar is deployed in Jboss.
Regards.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262183#4262183
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262183
16 years, 6 months
[JBoss Web Services Users] - WebServiceContext injected field corrupted under heavy load
by Sintetik7
Hi,
I have a webservice implemented as follows:
| public class SSSServiceProvider implements Provider<Source> {
|
| @Resource(type = Object.class)
| protected WebServiceContext wsContext;
|
| public Source invoke(Source req) {
| MessageContext mc = wsContext.getMessageContext();
| String path = ((String) mc.get(MessageContext.PATH_INFO));
| ....
|
I'm using wsContext for the sole purpose to access a path, since my wsdl is just doc/literal (not wrapped).
This code worked ok at JBoss 5.0.1 (and jbossws 3.1.0), at least i didn't notice any problems with extracted "path".
Recently, we moved to JBoss 5.1.0 (jbossws 3.1.2) and problems started to appear. Under some load (~20 000 requests / day) service started to mess up injected wsContext. Some 10-100 requests per day got wrong "path", looks like it comes from the adjacent request (<~1ms incoming time).
What i did then is I upgraded jbossws to 3.2.0, released recently.
At first i didn't notice any errors. After a few days I decided to move other service (heavy loaded) to JBoss 5.1 + JBossws 3.2.0 as well.
"Heavy-loaded" service consumes some ~1 000 000 requests / day and the same error happens now 100-300 times a day.
Btw, later I found that 1st service (under ~20 000) generates the same errors as well, but at a much less rate - ~5/week.
Both services are implemented virtually identically.
Is it possible that next request corrupts injected wsContext object before I finish reading it??? It looks like this because as far as I see from logs it gets corrupted only if two messages are _really close_ (<~1ms).
The question is - how do I get path reliably?
PS. In last changelogs I see some bugfixes with resources injection, so I guess I've encountered some kind of new behaviour.
PPS. I've reported the problem before (testing the same services) that
might be related somehow
https://jira.jboss.org/jira/browse/JBWS-2662
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262181#4262181
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262181
16 years, 6 months
[JBoss Cache Users] - JBoss Cache - For Replication, Do i need objects in classpat
by quicksilver
I have JBoss 3.2.1 running under Weblogic 10.3.
I noticed that my async replication was not working the other day, so i switched to sync..
I've noticed is that i get some sort of JGroups ClassNotFound error when the replication is occurring from one server to the other.
It will mention the classname it is trying to transfer, and say that it could not find it.
The way i solved it was by including my-product-lib.jar on the classpath so that JGroups could see it.
Thing is, this causes other issues, because i am including it on the server classpath, so Weblogic now has 2 copies of the objects. One in my-product-lib.jar and the other in my-product.ear.
What is the correct way to configure replication so that the Objects are visible to JGroups/JBoss Cache, but not taking over the rightful place of the objects from my EAR file?
Thanks in advance for any help!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262179#4262179
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262179
16 years, 6 months
[Installation, Configuration & Deployment] - Re: jboss web console error
by rasa
"rasa" wrote : "jaikiran" wrote : Is this a clean installation or have you done any changes and/or deployed any of your applications? Try it on a clean installation without any changes.
| |
|
| No I have deployed my application. One thing i needed to ask is in jbss.web deployer there is no servlet api and jsp-api jar files. When i copied those files it is started working now. Let me check once again.
clean installation is working fine. But with application everything working fine with the old release. ie in 3.2.5.
even AS is not able to find the classes from the ear which is deployed in the deploy directory
|
| java.lang.ClassNotFoundException: No ClassLoaders found for: com.apps.web.module.transaction.TicketReservationAction
| 18:10:02,786 ERROR [STDERR] at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
| 18:10:02,786 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
| 18:10:02,786 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
| 18:10:02,786 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| 18:10:02,786 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| 18:10:02,786 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
| 18:10:02,786 ERROR [STDERR] at java.lang.Class.forName(Class.java:164)
|
|
I guess something i missed ???
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262173#4262173
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262173
16 years, 6 months
[jBPM Users] - Re: Using Process variables as parameters for method calls
by sebastian.s
Hello again!
>From the documentation about java activities:
| <process name="Java" xmlns="http://jbpm.org/4.0/jpdl">
|
| <start >
| <transition to="greet" />
| </start>
|
| <java name="greet"
| class="org.jbpm.examples.java.JohnDoe"
| method="hello"
| var="answer"
| >
|
| <field name="state"><string value="fine"/></field>
| <arg><string value="Hi, how are you?"/></arg>
|
| <transition to="shake hand" />
| </java>
|
| <java name="shake hand"
| expr="#{hand}"
| method="shake"
| var="hand"
| >
|
| <arg><object expr="#{joesmoe.handshakes.force}"/></arg>
| <arg><object expr="#{joesmoe.handshakes.duration}"/></arg>
|
| <transition to="wait" />
| </java>
|
| <state name="wait" />
|
| </process>
|
anonymous wrote :
| For the java task you can pass arguments and use expressions for the value of the arguments. These can afaik be process variable names as well, so that solves one problem. The varying number of arguments is afaik dealt with by jBPM since it uses reflection to find the correct method signature. Not 100% completely sure though.
|
How exactly can I address process instance variables to use them as arguments for method calls?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262166#4262166
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262166
16 years, 6 months