[jBPM] - jBPM over cluster environment
by Moisés Fernández
Moisés Fernández [https://community.jboss.org/people/moifer] created the discussion
"jBPM over cluster environment"
To view the discussion, visit: https://community.jboss.org/message/826125#826125
--------------------------------------------------------------
Hello,
We are planning to use jBPM 5.4 over a clustered environment: Weblogic 11g clustered with 2 instance nodes over Red Hat Linux using Oracle 11g in the DB tier. We want to know if it's possible to use jBPM over this clustered …
[View More]enviroment and how, we haven't found any documentation about this subject (jBPM clustering).
The configuration that we've in mind is to use jBPM with Spring and Hibernate to persist the jBPM information needed to run it into the Oracle DB, but we've some questions: what about StatefulKnowledgeSession?: we should replicate it manually across the several App. Server nodes? We should have diferent sessions at the several nodes? If yes, if a session is running a process, the other session in the other node could access to that process?
By the way, we are planning to use Mina Task Server for the human task, can it run over a clustered environment?
Thanks in advance,
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/826125#826125]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
[View Less]
11 years, 7 months
[jBPM] - jBPM 5.4, Persistence, and Safe-Points
by Franco Gasperino
Franco Gasperino [https://community.jboss.org/people/franco.gasperino] created the discussion
"jBPM 5.4, Persistence, and Safe-Points"
To view the discussion, visit: https://community.jboss.org/message/825366#825366
--------------------------------------------------------------
Community,
Excuse the long-winded post. I'm trying to debug an issue with an integration project with the following components:
* jBPM 5.4 final, Drools 5.5 final
* Spring 3.2.x
* Bitronix 2.1.x
The core jBPM …
[View More]engine is heavily integrated with a custom stack allowing process instances to be created and run via all sorts of connectivity. The custom layer will take the process id & input parameters, delegate to a thread in an executor, which will:
1. Instantiate the drools environment (with JTA support).
2. Create the knowledge session.
3. Create a custom WorkItemHandler, associate each custom service task with this handler.
4. Create and associate the event handlers.
5. Create and start the process instance.
Everything executes as-expected, the JTA is performing commits and I can see the Hibernate activity inserting, updating, and deleting records from the Derby XA database.
However, when testing a process instance which *should* trigger a safe-point, i see unexpected behavior. In this case:
* Script "Hello" is a java/groovy/whatever script task.
* ServiceTask "MockAsyncTask" is a java class, which is associated / registered with the custom WorkItemHandler. * executeWorkItem() does NOT call completeWorkItem()
* Returns control to the jBPM engine, which should trigger a safe-point.
* Causes return of startProcessInstance(), which will exit the worker thread in the executor.
* Script "Bye" is a java/groovy/whatever script task.
The workflow: Start -> Hello -> MockAsyncTask -> Bye -> End
As expected, I see the behavior. I see that the ProcessInstance object associated has a state field of "2", which is active. Howevever, the hibernate update statements on the ProcessInstanceInfo table always have a state value of '0'. This is the breaking behavior.
When I attempt to call the adapter layer with the session id, process instance id, work item id, and a payload:
1. Instantiate the drools environment (JTA support).
2. Load the existing knowledge session.
3. Create a custom WorkItemHandler, associate each custom service task with this handler.
4. Create and associate event handlers.
5. Call completeWorkItem().
The workItem does complete, and i see it deleted from the WorkItemInfo table. However, since the process instance state has been reloaded with a value of '0', the "Bye" script task is never fired.
Any ideas? A full code dump would be huge, but I'm happy to inject some loggers if it would assist troubleshooting.
Thanks!
Franco
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/825366#825366]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
[View Less]
11 years, 7 months
[EJB3] - Failed to create Resource DEPLOYMENTS MISSING DEPENDENCIES
by Carlos Farias
Carlos Farias [https://community.jboss.org/people/cafaray] created the discussion
"Failed to create Resource DEPLOYMENTS MISSING DEPENDENCIES"
To view the discussion, visit: https://community.jboss.org/message/825860#825860
--------------------------------------------------------------
Hi, I'm new in Jboss, I'm using Jboss6.0.0-final and running the standard server. I'm trying to deploy an EJB with a Session Bean Stateless and MDB, but i get the next error (I've worked in eclipse and the …
[View More]same version of JBoss in my local, here works fine)
Can any body give an idea:
Regards
Failed to create Resource FITANotificaciones.jar - cause: java.lang.Exception:Failed to start deployment [vfs:///usr/local/jboss-6.0.0/server/standard/deploy/FITANotificaciones.jar] during deployment of 'FITANotificaciones.jar' - cause: java.lang.RuntimeException:org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): DEPLOYMENTS MISSING DEPENDENCIES: Deployment "jboss.j2ee:jar=FITANotificaciones.jar,name=EnviaCorreo,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=EnviaCorreo,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **") Deployment "jboss.j2ee:jar=FITANotificaciones.jar,name=NotificaRegistro,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=NotificaRegistro,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **") Deployment "jboss.j2ee:jar=FITANotificaciones.jar,name=NotificaRegistro,service=EJB3_endpoint" is missing the following dependencies: Dependency "jboss.j2ee:jar=FITANotificaciones.jar,name=NotificaRegistro,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall") Deployment "jboss.j2ee:jar=FITANotificaciones.jar,name=Sample,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=Sample,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **") Deployment "jboss.j2ee:jar=FITANotificaciones.jar,name=Sample,service=EJB3_endpoint" is missing the following dependencies: Dependency "jboss.j2ee:jar=FITANotificaciones.jar,name=Sample,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall") DEPLOYMENTS IN ERROR: Deployment "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=Sample,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' ** Deployment "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=NotificaRegistro,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' ** Deployment "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=EnviaCorreo,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' ** -> org.jboss.deployers.client.spi.IncompleteDeploymentException:Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): DEPLOYMENTS MISSING DEPENDENCIES: Deployment "jboss.j2ee:jar=FITANotificaciones.jar,name=EnviaCorreo,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=EnviaCorreo,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **") Deployment "jboss.j2ee:jar=FITANotificaciones.jar,name=NotificaRegistro,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=NotificaRegistro,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **") Deployment "jboss.j2ee:jar=FITANotificaciones.jar,name=NotificaRegistro,service=EJB3_endpoint" is missing the following dependencies: Dependency "jboss.j2ee:jar=FITANotificaciones.jar,name=NotificaRegistro,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall") Deployment "jboss.j2ee:jar=FITANotificaciones.jar,name=Sample,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=Sample,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **") Deployment "jboss.j2ee:jar=FITANotificaciones.jar,name=Sample,service=EJB3_endpoint" is missing the following dependencies: Dependency "jboss.j2ee:jar=FITANotificaciones.jar,name=Sample,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall") DEPLOYMENTS IN ERROR: Deployment "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=Sample,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' ** Deployment "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=NotificaRegistro,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' ** Deployment "<UNKNOWN jboss.j2ee:jar=FITANotificaciones.jar,name=EnviaCorreo,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/825860#825860]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
[View Less]
11 years, 7 months
[EJB3] - EJB EntityManager results in NullPointerException
by Ibragim Gapuraev
Ibragim Gapuraev [https://community.jboss.org/people/sermilion] created the discussion
"EJB EntityManager results in NullPointerException"
To view the discussion, visit: https://community.jboss.org/message/825825#825825
--------------------------------------------------------------
I have an error that I cannot logically understand. I am implementing RSS processing app. The logic is that user takes link of some RSS feed and adds to database. If the feed already exist in database, it takes …
[View More]the id of feed and adds it to subscriptions of the user. Here is the code:
if (existfeed == null) {
feed = loadFeed(url, syndfeed);
em.persist(feed);
if (feed.getFeedId() == null) {
return "Persist of feed failed";
}
uf.setFeedId(feed);
uf.setUserId(user_id);
try {
em.persist(uf);
loadFeedItems(syndfeed, feed);
//boolean ufadded = uf.addUserFeed(em);
} catch (NoResultException ex) {
return "Persist of userfeed failed";
} catch (PersistenceException ex) {
return "Persist of userfeed failed, em";
}
//boolean ufadded = uf.addUserFeed(em);
//return true;
return "Feed added";
} else {
dbFeed = getFeed(feed.getLink());
if(dbFeed==null)
return "Faile to get feed from database";
//http://appleinsider.ru/feed
uf.setFeedId(dbFeed);
uf.setUserId(user_id);
try {
em.persist(uf);
} catch (PersistenceException ex) {
//System.out.println(ex.getMessage());
return "Unable to persist userfeed";
}
return "Feed added, existing";
}
However, if user added a feed, another user cannot add it and there is the error:
Caused by: java.lang.NullPointerException
at ejb.FeedBean.addNewFeed(FeedBean.java:203) [Group_7_Impl_uwx09sua-ejb.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_51]
at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_51]
at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory
I just dont see why would it fail. One of my opinion is that possibly, EntityManager somehow is null. But, in first part of if statement it works.
I tried to use EntityManager find method, it resulted same error. So, definitely, EntityManager is somehow null in second part of if statement.
Thanx for all the help.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/825825#825825]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
[View Less]
11 years, 7 months
[JBoss Web Services] - what will output of resteasy encryption..
by amit kumar
amit kumar [https://community.jboss.org/people/amit02.sharma12] created the discussion
"what will output of resteasy encryption.."
To view the discussion, visit: https://community.jboss.org/message/825795#825795
--------------------------------------------------------------
Hi Everyone,
i am doing resteasy encryption using s/mime.after encrypting i get this output of json:
*output:*
{"genericType":null,
"type":"..",
"certificate":
{"name":"x509",
"signature":"PrJ+.........so on"
"…
[View More]basicConstraints":-1,
"encoded":"MIIDPjCC......so on"
"encodedInternal":"MIIDPjCCAiagA.......so on"
"publicKey":
{"algorithm":"RSA",
"modulus":167380812....so on"
"publicExponent":65537,
"encoded":"MIIBIjANBgkqhkiG9.....so on"
"format":"X.509",
"encodedInternal":"MIIBIjANBgkqhkiG.....so on "
"algorithmId":
{"name":"RSA","parameters":null,
"encodedParams":null,"oid"}}}}
so i want to know that which is actual encrypted data that i encryptedin this above json. it show keys and certificates also..i want to know in this json where my actual encrypted data..
Please help me out!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/825795#825795]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
[View Less]
11 years, 7 months