[jBPM Development] - Identifier of the RuntimeManager in JBPM 6.0
by marcosdutto
marcosdutto [https://community.jboss.org/people/marcosdutto] created the discussion
"Identifier of the RuntimeManager in JBPM 6.0"
To view the discussion, visit: https://community.jboss.org/message/823298#823298
--------------------------------------------------------------
Hi,
I am using JBPM 6 over JBoss7. and i have a problem creating RuntimeManagers. in particular PerRequestRuntimeManager.
This is my code
RuntimeEnvironmentBuilder envBuilder = RuntimeEnvironmentBuilder.getDefault().userGroupCallback(userGroupCallback)
.addAsset(ResourceFactory.newClassPathResource("pruebaBifNuevo.bpmn"), ResourceType.BPMN2);
RuntimeEnvironment environment = envBuilder.get();
RuntimeManager manager = RuntimeManagerFactory.Factory.get().newPerRequestRuntimeManager(environment);
But i can't create more than one manager at the same time because it make an error and throw this exception at Line 30: AbstractRuntimeManager.java
if (activeManagers.contains(identifier)) {
throw new IllegalStateException("RuntimeManager with id " + identifier + " is already active");
}
I can't understand why is throwing that exception, because nobody use the collection activeManagers to get any RuntimeManager. And in particular with a PerRequestRuntimeManager it doesn't have any sense, because I don't care of the identifier, I want only a manager.
Is there something wrong in my code? Where I can submit this bug?
Thanks in advance
Marcos Dutto
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/823298#823298]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 7 months
[jBPM Development] - When trying to complete task getting NullPointerException at WorkItemNodeInstance.java:298
by Prabakaran Kamaraj
Prabakaran Kamaraj [https://community.jboss.org/people/prabhakarannk] created the discussion
"When trying to complete task getting NullPointerException at WorkItemNodeInstance.java:298"
To view the discussion, visit: https://community.jboss.org/message/823176#823176
--------------------------------------------------------------
Hi all,
We are using JBPM 5.2, when When trying to complete Human task, we are getting below error
java.lang.NullPointerException
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:298)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:277)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:326)
at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:119)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)
at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:345)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)
if any has faced same issue and knows the solution, please provide.
Thanks and Regards,
Praba
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/823176#823176]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 7 months
Re: [jboss-dev-forums] [JBoss AS 7 Development] - Design of AS7 multi-JSF feature
by Bruno Lam
Bruno Lam [https://community.jboss.org/people/qjafcunuas38] commented on the document
"Design of AS7 multi-JSF feature"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-47689#comment-12264
--------------------------------------------------
Hi,
j've just try with the last jboss-jsf-installer-master, but i cannot build properly the cli file :
$ mvn -Djsf-version=2.1.12 -Pmyfaces clean assembly:single
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jsf-installer 8.0.0.Alpha2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ jsf-installer ---
[INFO] Deleting C:\Users\lamoureb\Projets\autre\server\jboss-jsf-installer-master\target
[INFO]
[INFO] --- maven-assembly-plugin:2.3:single (default-cli) @ jsf-installer ---
[INFO] Reading assembly descriptor: src/main/assembly/src.xml
[WARNING] Cannot include project artifact: org.jboss.as:jsf-installer:jar:8.0.0.Alpha2-SNAPSHOT; it doesn't have an associated file or directory.
[INFO] Building zip: C:\Users\lamoureb\Projets\autre\server\jboss-jsf-installer-master\target\install-myfaces-2.1.12.zip
And so this CLI is not deployed on jboss EAP 6.1.0.Final:
[standalone@localhost:9999 /] /subsystem=jsf/:list-active-jsf-impls
{
"outcome" => "success",
"result" => [
"main",
"1.2"
]
}
tia,
Bruno
--------------------------------------------------
11 years, 7 months