[Beginner's Corner] - Deployment exception - Binding EJB Home
by Volker Biermann
Volker Biermann [https://community.jboss.org/people/katerchen0815] created the discussion
"Deployment exception - Binding EJB Home"
To view the discussion, visit: https://community.jboss.org/message/760547#760547
--------------------------------------------------------------
Hello,
I am Using JBoss 6 to deploy an application. For several beans this works very good. I have problem with a stateless session bean. What am I doing wrong? The log shows that the bean is deployed but it looks that it can not bound to jndi. Please see below a part of the boot log. I have added the deployment files as attachments. I am convinced that I did something wrong but what?
09:12:27,370 INFO [EjbDeployer] installing bean: ejb/bpserver.jar#BPFinder,uid1044388609
09:12:27,372 INFO [EjbDeployer] with dependencies:
09:12:27,374 INFO [EjbDeployer] and supplies:
09:12:27,375 INFO [EjbDeployer] jndi:bpserver/BPFinder/com.identalink.biopassportadminserver.BPFinder
09:12:27,378 INFO [EjbDeployer] jndi:BPFinder
09:12:27,379 INFO [EjbDeployer] jndi:bpserver/BPFinder
--- info deleted ---
09:12:30,231 INFO [EjbModule] Deploying BPFinder
--- info deleted ---
09:12:53,093 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:jndiName=BPFinder,service=EJB state=Create mode=Manual requiredState=Installed: javax.management.MalformedObjectNameException: Unterminated key property part
--- error stack trace deleted ---
09:12:54,146 INFO [ProxyFactory] Unbind EJB Home 'BPFinder' from jndi 'BPFinder'
Thank you for your help
Katerchen0815
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/760547#760547]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[jBPM] - Unable to fire rules before and after human task using same rule flow group
by Sameer K
Sameer K [https://community.jboss.org/people/0sameerk0] created the discussion
"Unable to fire rules before and after human task using same rule flow group"
To view the discussion, visit: https://community.jboss.org/message/751823#751823
--------------------------------------------------------------
Hi I am newbie to jbpm.
I have a process as below
start-->rule task1-->human task1-->rule task2-->human task2-->end
I am using a knowledge session which is singleton(handled in code).
I am adding AgendaEventListener to session and in afterRuleFlowGroupActivated method executing fireallrules.
Also, I have added kcontext.getKnowledgeRuntime().insert(kcontext.getProcessInstance()); in human task1 on exit action.
Now when i am executing the process and if i provide two different rule flow groups in human task 1 and human task 2 then both the rule task are getting executed.
But when i use same rule flow group then process gets stuck on rule task, it doesnt move further as rules are not executed.
Please throw some pointers on what needs to be done.
Can i reactivate a rule flow group in any way?
Also in same session i am unable to fire same rule flow group for second process as well, which means my rule flow group is executing only once.
I know some prob from my end, any help would be appreciated.
JFYI the rule doesnt contain any thing which will manipulate the flow, its a simple when then condition and in then condition i have added a println.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751823#751823]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[jBPM] - signal event doesn't work from REST API
by Rudi Fisher
Rudi Fisher [https://community.jboss.org/people/rudi_fisher] created the discussion
"signal event doesn't work from REST API"
To view the discussion, visit: https://community.jboss.org/message/649256#649256
--------------------------------------------------------------
I want to use REST API to call signal. There is some implementation in ProcessMgmtFacade of gwt-console-server for this. I see the source code and I finelly found this in CommandDelegate of jbpm-gwt-core:
public void signalExecution(String executionId, String signal) {
ksession.getProcessInstance(new Long(executionId)).signalEvent("signal", signal);
}
This doesn't fulfil my requirements so I made changes to this class recompile and redeploy. This step is OK, because I made some other changes about this REST API (start process with params) and everythings work fins, so I think the problem is not in this my changed implementation of CommandDelegate. New implementation is:
public void signalExecution(String executionId, String eventType, String eventValue) {
ksession.getProcessInstance(new Long(executionId)).signalEvent(eventType, eventValue);
}
I took example of signal event from original examples to be sure that process is designed OK. I took BPMN2-EventBasedSplit.bpmn2. I tested in Eclipse and works fine - after signal call, process cointinued and finally finished. I deployed this process into my Guvnor repo and started by GWT console. Process stopped and waits at signal nodes (see attached picture).
https://community.jboss.org/servlet/JiveServlet/showImage/2-649256-17846/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-649256-17...
At this point I wanted to push process by send signal event by REST API with new implementation. Method signalExecution in CommandDelegate is called OK and this method take correct process instance (I have log line there to see process instance). But it seems signalEvent on process instance doesn't work. I'm using the same parameters for signal event in Eclipse and in CommandDelegate. I'm confused about what is different between execution in unit test in Eclipse and at server. I made many tests and examples but my probem has no solution to this day. I found some discussion about similar issues but this not solve this problem.
Working unit test in Eclipse
public static final void main(String[] args) throws Exception {
// load up the knowledge base
KnowledgeBase kbase = readKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ProcessInstance processInstance = ksession.startProcess("com.sample.test");
System.out.println("process instance:" + processInstance.getState());
ksession.signalEvent("Yes", "YesValue", processInstance.getId());
System.out.println("process instance:" + ksession.getProcessInstance(processInstance.getId()));
// NO
processInstance = ksession.startProcess("com.sample.test");
System.out.println("process instance:" + processInstance.getState());
//ksession = restoreSession(ksession, true);
ksession.signalEvent("No", "NoValue", processInstance.getId());
System.out.println("process instance:" + ksession.getProcessInstance(processInstance.getId()));
}
private static KnowledgeBase readKnowledgeBase() throws Exception {
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("BPMN2-EventBasedSplit.bpmn2"), ResourceType.BPMN2);
return kbuilder.newKnowledgeBase();
}
Not working code in CommandDelegate and calling at GWT server
ksession.getProcessInstance(new Long(executionId)).signalEvent("Yes", "YesValue");
For BPMN2-EventBasedSplit.bpmn2 see official examples in version 5.2.0 Final
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649256#649256]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[jBPM] - jBPM WorkItemHandler problem: when Object is passed as param it's transformed to String.
by Adam Bach
Adam Bach [https://community.jboss.org/people/heathcliff] created the discussion
"jBPM WorkItemHandler problem: when Object is passed as param it's transformed to String."
To view the discussion, visit: https://community.jboss.org/message/733763#733763
--------------------------------------------------------------
Hi,
I'm passing an object of type Task to WorkItemHandler implementation and it lands in params map as after invoking toString method on my obejct.
WID definition:
import org.drools.process.core.datatype.impl.type.StringDataType;
import org.drools.process.core.datatype.impl.type.FloatDataType;
import org.drools.process.core.datatype.impl.type.ObjectDataType;
[
// the CreateProject work item
[
"name" : "TaskTime",
"parameters" : [
"host" : new StringDataType(),
"task" : new ObjectDataType(),
"date" : new ObjectDataType(),
"time" : new FloatDataType(),
],
"displayName" : "TaskTime",
"icon" : "icons/taskTime.png"
]
]
When I double click on my domain specific node on designer I get a window where I can provide values for parameters. So for task param I have given #{taskObj} and instead of an actual object I have received a String version of this object. The workaround is to explicitly map this param in properties view, but the idea was to give users UI for setting those values in more pleasent way.
ANOTHER problem is that when I set some values to my custom node than Properties view is not changing accorgingly to my my node type. Meannig when I click on some node than the Properties view is updated to show those props. Than when I click to my TaskTime node than Properties view has only those props which ware available for previous node, and if some props are common for both node than values for tham are updated with ne values. So when I click on my TaskTime node I can see the host,task,date,time properties, nor I can see on Entry and on Exit action properties. Furthermore If previosus node had such properties than I can see them for TaskTime node but when I update them than they are updated for that previosud node.
Can someone confirm those issues? Any help on workarounds?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/733763#733763]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months