[jBPM Development] - org.drools.RuntimeDroolsException: Unexpected exception executing action org.jbpm.process.instance.event.DefaultSignalManager, Caused by: org.jbpm.workflow.instance.WorkflowRuntimeException: -- argument type mismatch
by prashanth Reddy Dundigal
prashanth Reddy Dundigal [https://community.jboss.org/people/prashanth_biomorf] created the discussion
"org.drools.RuntimeDroolsException: Unexpected exception executing action org.jbpm.process.instance.event.DefaultSignalManager, Caused by: org.jbpm.workflow.instance.WorkflowRuntimeException: -- argument type mismatch"
To view the discussion, visit: https://community.jboss.org/message/755045#755045
--------------------------------------------------------------
Sai,
The service task properties are declared in this way :
| Id | 3 |
| Interface | org.jbpm.biomorf.sample.demo.EvenOddNumberCheckServiceImpl |
| MetaData | {height=53, width=99, UniqueId=_9-3, y=121, x=129} |
| Name | CheckEvenOdd |
| On Entry Actions | [System.out.println(" entering into service task ");] |
| On Exit Actions | [System.out.println("exiting service task");] |
| Operation | checkEvenOrOdd |
| Parameter |
|
| Parameter Mapping | {Parameter=inputNumber} |
| ParameterType | java.lang.String |
| Result Mapping | {Result=inputNumber} |
Can anyone please see the below error and let us know what to do...
We are not able to run the service task inside an Adhoc-sub-Process. When run the task, I get the following error :
org.drools.RuntimeDroolsException: Unexpected exception executing action org.jbpm.process.instance.event.DefaultSignalManager$SignalProcessInstanceAction@1080876
at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:979)
at org.drools.impl.StatefulKnowledgeSessionImpl.executeQueuedActions(StatefulKnowledgeSessionImpl.java:866)
at org.jbpm.process.instance.event.DefaultSignalManager.signalEvent(DefaultSignalManager.java:90)
at org.jbpm.process.instance.ProcessRuntimeImpl.signalEvent(ProcessRuntimeImpl.java:372)
at org.drools.impl.StatefulKnowledgeSessionImpl.signalEvent(StatefulKnowledgeSessionImpl.java:341)
at org.jbpm.biomorf.sample.demo.NumberProcessTest.main(NumberProcessTest.java:108)
Caused by: org.jbpm.workflow.instance.WorkflowRuntimeException: [com.biomorf.sampledemo:1 - CheckEvenOdd:3] -- argument type mismatch
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:130)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164)
at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)
at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124)
at org.jbpm.workflow.instance.node.DynamicNodeInstance.signalEvent(DynamicNodeInstance.java:69)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:346)
at org.jbpm.process.instance.event.DefaultSignalManager$SignalProcessInstanceAction.execute(DefaultSignalManager.java:118)
at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:977)
... 5 more
Caused by: java.lang.IllegalArgumentException: argument type mismatch
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:597)
at org.jbpm.bpmn2.handler.ServiceTaskHandler.executeWorkItem(ServiceTaskHandler.java:49)
at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124)
... 14 more
please help me....
thank you in advance,
warm regards,
prashanth r dundigal
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/755045#755045]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 10 months
[jBPM Development] - jbpm-5.4.0.Final-installer-full - Sample application throwing error
by Anand Parthasarathy
Anand Parthasarathy [https://community.jboss.org/people/panand131] created the discussion
"jbpm-5.4.0.Final-installer-full - Sample application throwing error"
To view the discussion, visit: https://community.jboss.org/message/790908#790908
--------------------------------------------------------------
Hi,
Im getting the following error on starting the sample jBPM application which comes along wth the installer.
0 13/01 13:35:02,359[main] ERROR service.hornetq.HornetQTaskClientConnector.connect - Unable to connect to server using configuration org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5153&host=127-0-0-1
org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.evaluation:1 - Self Evaluation:2] -- Could not connect task client: on ip: 127.0.0.1 - port: 5153
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:132)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238)
at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)
at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)
at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)
at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:194)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:309)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:170)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:140)
at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1098)
at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320)
at com.sample.ProcessTest.main(ProcessTest.java:31)
Caused by: java.lang.IllegalArgumentException: Could not connect task client: on ip: 127.0.0.1 - port: 5153
at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.connect(GenericHTWorkItemHandler.java:158)
at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.executeWorkItem(GenericHTWorkItemHandler.java:180)
at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:107)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)
... 13 more
13 Jan, 2013 1:35:42 PM org.hornetq.core.logging.impl.JULLogDelegate warn
WARNING: I'm closing a core ServerLocator you left open. Please make sure you close all ServerLocators explicitly before letting them go out of scope! 713167
13 Jan, 2013 1:35:42 PM org.hornetq.core.logging.impl.JULLogDelegate warn
WARNING: The ServerLocator you didn't close was created here:
java.lang.Exception
at org.hornetq.core.client.impl.ServerLocatorImpl.<init>(ServerLocatorImpl.java:387)
at org.hornetq.core.client.impl.ServerLocatorImpl.<init>(ServerLocatorImpl.java:484)
at org.hornetq.api.core.client.HornetQClient.createServerLocatorWithoutHA(HornetQClient.java:112)
at org.jbpm.task.service.hornetq.HornetQTaskClientConnector.connect(HornetQTaskClientConnector.java:95)
at org.jbpm.task.service.hornetq.HornetQTaskClientConnector.connect(HornetQTaskClientConnector.java:76)
at org.jbpm.task.service.TaskClient.connect(TaskClient.java:845)
at org.jbpm.task.service.SyncTaskServiceWrapper.connect(SyncTaskServiceWrapper.java:183)
at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.connect(GenericHTWorkItemHandler.java:156)
at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.executeWorkItem(GenericHTWorkItemHandler.java:180)
at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:107)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238)
at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)
at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)
at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)
at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:194)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:309)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:170)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:140)
at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1098)
at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320)
at com.sample.ProcessTest.main(ProcessTest.java:31)
I have performed the foll. steps.
1. ant install.demo
2. ant start.demo
3. Run as Java application ProcessTest.java
On getting this error, I tan the foll. command as per instructions in another post
ant start.human.task
This gave the foll error in the console:
start.human.task:
[javac] C:\projects\jbpm\jbpm-5.4.0.Final-installer-full\jbpm-installer\build.xml:864: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to C:\projects\jbpm\jbpm-5.4.0.Final-installer-full\jbpm-installer\task-service\target
[copy] Copying 5 files to C:\projects\jbpm\jbpm-5.4.0.Final-installer-full\jbpm-installer\task-service\target
[java] 1 13/01 13:34:37,617[main] ERROR task.identity.DefaultUserGroupCallbackImpl.<init> - Error when loading group information for callback from location: file:null/roles.properties
[java] java.io.FileNotFoundException: null\roles.properties (The system cannot find the path specified)
[java] at java.io.FileInputStream.open(Native Method)
[java] at java.io.FileInputStream.<init>(FileInputStream.java:106)
[java] at java.io.FileInputStream.<init>(FileInputStream.java:66)
[java] at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
[java] at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
[java] at java.net.URL.openStream(URL.java:1009)
[java] at org.jbpm.task.identity.DefaultUserGroupCallbackImpl.<init>(DefaultUserGroupCallbackImpl.java:55)
[java] at org.jbpm.task.identity.DefaultUserGroupCallbackImpl.<init>(DefaultUserGroupCallbackImpl.java:40)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[java] at java.lang.Class.newInstance0(Class.java:355)
[java] at java.lang.Class.newInstance(Class.java:308)
[java] at org.jbpm.task.identity.UserGroupCallbackManager.setCallbackFromProperties(UserGroupCallbackManager.java:69)
[java] at org.jbpm.DemoTaskService.main(Unknown Source)
[java] Task service registered usergroup callback ...
[java] Task service started correctly!
[java] Task service running ...
I reran ProcessTest.java and encountered the same error. Could I please get some help regarding this.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/790908#790908]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 11 months
[EJB3 Development] - Embeddable EJBContainer and JBoss 7.1.1.Final
by Mohammad wrk
Mohammad wrk [https://community.jboss.org/people/mohammadwrk] created the discussion
"Embeddable EJBContainer and JBoss 7.1.1.Final"
To view the discussion, visit: https://community.jboss.org/message/731765#731765
--------------------------------------------------------------
Has anyone been able to get EJBContainer.createEJBContainer() to work with JBoss 7.1.1.Final?
Running the following code as a JUnit test results in NullPointerException!
public class EJBContainerTest {
private static EJBContainer ejbContainer;
private static Context context;
@BeforeClass
public static void beforeClass() {
System.setProperty("jboss.home", "/home/usr1/jboss-as-7.1.1.Final");
ejbContainer = EJBContainer.createEJBContainer();
context = ejbContainer.getContext();
}
@Test
public void test() {
Assert.assertNotNull(context);
}
}
Stack trace:
java.lang.NullPointerException
at org.jboss.modules.Module.forClassLoader(Module.java:365)
at org.jboss.modules.Module.forClassLoader(Module.java:365)
at org.jboss.modules.Module.forClassLoader(Module.java:365)
at org.jboss.modules.Module.getContextModuleLoader(Module.java:421)
at org.jboss.as.embedded.ejb3.JBossStandaloneEJBContainerProvider.createEJBContainer(JBossStandaloneEJBContainerProvider.java:86)
at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:93)
at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:75)
at org.arquillian.example.EJBContainerTest.beforeClass(EJBContainerTest.java:18)
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:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/731765#731765]
Start a new discussion in EJB3 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 11 months
[jBPM Development] - Getting Node Name from Node Instance in jBPM 5.4
by João Guerra
João Guerra [https://community.jboss.org/people/ciberg] created the discussion
"Getting Node Name from Node Instance in jBPM 5.4"
To view the discussion, visit: https://community.jboss.org/message/804567#804567
--------------------------------------------------------------
Hi,
I'm trying to get the node name for a process that at a given moment has a gateway making two tasks active simultaneasly.
The problem is that when I get the NodeInstance collection it seems that it is not iterating correctly, when I use a do/while with a hasNext I enter a infinite loop and only one NodeName is obtained.
Then I changed it for using size, and although the size is correct (in my case size is 2) the getNameName method always returns the same node name as if the iterator was always in the same place.
Can you help me on this?
Here is the code:
> ProcessInstance processInstance = ksession.getProcessInstance(processInstanceId);
> WorkflowProcessInstance workflowProcessInstance = null;
> Collection<NodeInstance> nodes = ((org.jbpm.workflow.instance.WorkflowProcessInstance) processInstance).getNodeInstances();
> int nodeSize = nodes.size();
> System.out.println("Number of nodes - " + nodeSize);
> int count = 0;
> do {
> processTasks = nodes.iterator().next().getNodeName();
> System.out.println(processTasks + " - " + count);
> count = count + 1;
> } while (count < nodes.size());
>
The result of this code is:
Number of nodes - 2
Digitalize Document - 0
Digitalize Document - 1
Instead of:
Number of nodes - 2
Digitalize Document - 0
Insert data - 1
Thank you
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/804567#804567]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 12 months
[JBoss Web Development] - Jboss Web Service
by Haitham Safi
Haitham Safi [https://community.jboss.org/people/haithamnor] created the discussion
"Jboss Web Service"
To view the discussion, visit: https://community.jboss.org/message/805246#805246
--------------------------------------------------------------
Hi everybody,,,
iI create a web service to send a message, for local queue on local PC (127.0.0.1) it is correcte but for remote queue (192.168.20.35) as same queue name on remote PC return *< D queue not bound>* *Error* :
i used jboss 4.2.3 + axis2 + with eclipse
Same configuration for queue and username,password on local and remote machines.
------------------------------------------------------------------------
package edu;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Properties;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.JMSException;
import javax.jms.MessageProducer;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.ServletException;
public class MessageWS
{
String body = "";
public String Send_Messages(String msg) throws ServletException, IOException, URISyntaxException {
try
{
Context init =MessageWS.getInitialContext();
javax.jms.Queue destination = (javax.jms.Queue) init.lookup("queue/D");
ConnectionFactory connectionFactory = (ConnectionFactory) init.lookup("ConnectionFactory");
Connection connection = connectionFactory.createConnection("jone","pas123");//
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(destination);
Date date =new Date();
TextMessage message = session.createTextMessage();
message.setText(msg);
connection.start();
producer.send(message);
body = message.getText();
session.close();
connection.close();
}
catch (Exception e)
{
return(e.toString());
}
return body ;
}
public static Context getInitialContext () throws JMSException,NamingException
{
Properties prop = new Properties();
prop.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
prop.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
prop.setProperty("java.naming.provider.url", "192.168.20.35:1099);
Context context = new InitialContext(prop);
return context;
}
}
So any idea or help? :(
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/805246#805246]
Start a new discussion in JBoss Web Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years