Discussion:
[jboss-user] [jBPM] - Could not connect task client: on ip: 127.0.0.1 - port: 5153
sravanireddy
2012-12-09 07:04:13 UTC
Permalink
sravanireddy [https://community.jboss.org/people/sravanireddy] created the discussion

"Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/781844#781844

--------------------------------------------------------------
09/12 12:35:16,955[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:35)
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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/781844#781844]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Jiri Svitak
2012-12-10 12:04:44 UTC
Permalink
Jiri Svitak [https://community.jboss.org/people/jsvitak] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/782583#782583

--------------------------------------------------------------
It seems that your task service is not running on port 5153. You have to start it either by
ant start.human.task
or by deploying human task .war into your JBoss application server.

Maybe you have to check the port of human task in web.xml file, but by default it should be 5153.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/782583#782583]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Tom Tran
2012-12-19 19:15:49 UTC
Permalink
Tom Tran [https://community.jboss.org/people/eeqtomc2] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/784142#784142

--------------------------------------------------------------
I run > ant start.human.task and I got following error:

C:\DevTools\jbpm-5.4.0-installer>ant start.human.task
Buildfile: build.xml


start.human.task:
     [java] 0    19/12 01:27:00,212[main] ERROR task.identity.DefaultUserGroupCa
llbackImpl.<init>  - Error when loading group information for callback from loca
tion: file:null/roles.properties
     [java] java.io.FileNotFoundException: null\roles.properties (The system can
not find the path specified)
     [java]     at java.io.FileInputStream.open(Native Method)
     [java]     at java.io.FileInputStream.<init>(FileInputStream.java:120)
     [java]     at java.io.FileInputStream.<init>(FileInputStream.java:79)
     [java]     at sun.net.www.protocol.file.FileURLConnection.connect(FileURLCo
nnection.java:70)
     [java]     at sun.net.www.protocol.file.FileURLConnection.getInputStream(Fi
leURLConnection.java:161)
     [java]     at java.net.URL.openStream(URL.java:1010)
     [java]     at org.jbpm.task.identity.DefaultUserGroupCallbackImpl.<init>(De
faultUserGroupCallbackImpl.java:55)
     [java]     at org.jbpm.task.identity.DefaultUserGroupCallbackImpl.<init>(De
faultUserGroupCallbackImpl.java:40)
     [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
     [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:27)
     [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:51
3)
     [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.setCallbackFr
omProperties(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 ...
     [java] Exception in thread "Thread-1" java.lang.RuntimeException: Could not
start human task server, address already in use, is it possible that another in
stance of the task server is already running?
     [java]     at org.jbpm.task.service.mina.BaseMinaTaskServer.run(BaseMinaTas
kServer.java:65)
     [java]     at java.lang.Thread.run(Thread.java:662)


BUILD SUCCESSFUL
Total time: 1 minute 2 seconds
C:\DevTools\jbpm-5.4.0-installer>
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/784142#784142]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2012-12-20 06:28:37 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/784203#784203

--------------------------------------------------------------
for 5.4 it's enough to run ant start.demo or ant start.demo.noeclipse to initiate demo installation of jbpm. It start JBoss AS and all application deployed to it. Next examine server.log to check if there were any problems starting any of the applications.

the one that you executed start Mina based task server and the error you see is due to missing path to role.properties file that defines group membership for users in task service. You can add additional jvm parameter into that target in build.xml that will inform about location of that file:
jbpm.user.group.mapping=ABSOLUTE_PATH_TO_ROLES_FILE

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/784203#784203]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Dhaval Shah
2012-12-21 09:01:05 UTC
Permalink
Dhaval Shah [https://community.jboss.org/people/shahdhaval2020] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/784422#784422

--------------------------------------------------------------
Hey MacIej ....Even i have same problem can u plz help me on this.....

i am running on ubuntu...

1 st step::

***@ammar:~/Desktop/Dhaval shah/Jbpm /jbpm-installer# ant install.demo
Buildfile: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/build.xml


download.jboss.check:
     [echo] Checking JBoss AS download ...


download.jboss:


install.jboss:
    [unzip] Expanding: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/jboss-as-7.1.1.Final.zip into /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer


check.jboss.version:


download.db.driver.check:
     [echo] Checking if db driver jar has been downloaded ....//db/driver/h2.jar


download.db.driver:


install.db.files:


download.drools.guvnor.check:
     [echo] Checking Drools Guvnor download ...


download.drools.guvnor:


install.guvnor.into.jboss:
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target
    [unzip] Expanding: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/guvnor-distribution-wars-5.5.0.Final.war into /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/WEB-INF/classes
      [zip] Building zip: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/guvnor-distribution-wars-5.5.0.Final.war
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/jboss-as-7.1.1.Final/standalone/deployments
   [delete] Deleting directory /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target


download.designer.check:
     [echo] Checking Designer download ...


download.designer:


install.designer.into.jboss:
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/jboss-as-7.1.1.Final/standalone/deployments


check.jboss.version:


created.designer.deployment.as7:
    [touch] Creating /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/jboss-as-7.1.1.Final/standalone/deployments/designer.war.dodeploy


download.jBPM.gwt-console.check:
     [echo] Checking jBPM gwt-console download ...EE6


download.jBPM.gwt-console:


install.jBPM-gwt-console.into.jboss:


check.jboss.version:


download.transport.lib.check:


install.transport.lib:


install.jBPM-gwt-console.into.jboss5:


check.jboss.version:


install.jBPM-gwt-console.into.jboss7:


check.birt.as7:


download.birt.check.as7:
     [echo] Checking birt reporting engine download for as7 ...


download.birt.as7:
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-gwt-console-server-war
    [unzip] Expanding: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/jbpm-gwt-console-server-5.4.0.Final-EE6.war into /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-gwt-console-server-war
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-gwt-console-server-war/WEB-INF/lib
     [copy] Copying 5 files to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-gwt-console-server-war/WEB-INF/classes
     [copy] Warning: Could not find file /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/db/jbpm-persistence.xml to copy.
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-gwt-console-server-war/WEB-INF/classes/META-INF


check.birt.as7:


install.reporting.into.jboss7:
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/birt
    [unzip] Expanding: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/birt-runtime-3_7_0.zip into /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/birt
     [copy] Copying 77 files to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-gwt-console-server-war/WEB-INF/lib
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-gwt-console-server-war/WEB-INF/output
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-gwt-console-server-war/WEB-INF/reports
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-gwt-console-server-war/WEB-INF/reports
   [delete] Deleting directory /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/birt


install.dependencies:
      [zip] Building zip: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-gwt-console-server-5.4.0.Final.war
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/jboss-as-7.1.1.Final/standalone/deployments
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/jboss-as-7.1.1.Final/standalone/deployments
   [delete] Deleting directory /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/jboss-as-7.1.1.Final/standalone/configuration
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/jboss-as-7.1.1.Final/standalone/configuration
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/jboss-as-7.1.1.Final/standalone/configuration


download.jBPM.ht-war.check:
     [echo] Checking jBPM human task war download ...


download.jBPM-ht.war:


download.transport.lib.check:


install.transport.lib:


install.jBPM-ht.into.jboss:


install.ht.war.into.jboss5:


install.ht.war.into.jboss7:
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-human-task-war
    [unzip] Expanding: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/jbpm-human-task-war-5.4.0.Final-EE6.war into /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-human-task-war
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-human-task-war/WEB-INF
     [copy] Warning: Could not find file /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/db/task-persistence.xml to copy.
     [copy] Warning: Could not find file /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/db/Taskorm.xml to copy.
      [zip] Building zip: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-5.4.0.Final-human-task-war.war
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/jboss-as-7.1.1.Final/standalone/deployments
   [delete] Deleting directory /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target


download.form.builder.check:
     [echo] Checking Form Builder download ...


download.form.builder:


install.form.builder.into.jboss:
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-form-builder-war
    [unzip] Expanding: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/jbpm-5.4.0.Final-form-builder.war into /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-form-builder-war
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-form-builder-war/WEB-INF/classes
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-form-builder-war/WEB-INF/classes
      [zip] Building zip: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target/jbpm-5.4.0.Final-form-builder.war
     [copy] Copying 1 file to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/jboss-as-7.1.1.Final/standalone/deployments
   [delete] Deleting directory /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/target


download.eclipse.check:
     [echo] Checking Eclipse download ...


download.eclipse:
     [echo] Getting Eclipse ...
      [get] Getting: http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-linux-gtk.tar.gz http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-linux-gtk.tar.gz
      [get] To: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/eclipse-java-helios-SR2-linux-gtk.tar.gz


download.eclipse.gef.check:
     [echo] Checking Eclipse GEF download ...


download.eclipse.gef:


install.eclipse:


unzipEclipse:


untarEclipse:
   [gunzip] Expanding /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/eclipse-java-helios-SR2-linux-gtk.tar.gz to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/eclipse-java-helios-SR2-linux-gtk.tar
    [untar] Expanding: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/eclipse-java-helios-SR2-linux-gtk.tar into /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer
    [unzip] Expanding: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/GEF-SDK-3.6.2.zip into /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer


download.jBPM.bin.check:
     [echo] Checking jBPM binaries download ...


download.jBPM.bin:


install.jBPM.runtime:
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/runtime
    [unzip] Expanding: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/jbpm-5.4.0.Final-bin.zip into /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/runtime


download.droolsjbpm.eclipse.check:
     [echo] Checking jBPM and Drools Eclipse download ...


download.droolsjbpm.eclipse:


install.droolsjbpm-eclipse.into.eclipse:
    [mkdir] Created dir: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/eclipse/droolsjbpm-update-site
    [unzip] Expanding: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/lib/org.drools.updatesite-5.5.0.Final-assembly.zip into /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/eclipse/droolsjbpm-update-site
     [copy] Copying 4 files to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/eclipse/features
     [copy] Copying 5 files to /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/eclipse/plugins
   [delete] Deleting directory /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/eclipse/droolsjbpm-update-site


install.demo:


BUILD SUCCESSFUL
Total time: 39 minutes 22 seconds

2nd step::

***@ammar:~/Desktop/Dhaval shah/Jbpm /jbpm-installer# ant start.demo
Buildfile: /home/ammar/Desktop/Dhaval shah/Jbpm /jbpm-installer/build.xml


download.db.driver.check:
     [echo] Checking if db driver jar has been downloaded ....//db/driver/h2.jar


download.db.driver:


start.h2.check:
     [echo] Checking if h2 db should be started ...


start.h2:


start.jboss:


check.jboss.version:


start.jboss5:


check.jboss.version:


start.jboss7:


start.eclipse:


start.demo:


BUILD SUCCESSFUL
Total time: 22 seconds

then after when i select the breakpoint as told in UserGuide for the Demo Project ......and Debug it i am getting this in Console

0    21/12 08:55:35,916[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

Plz help me out ...I am  a New bie to jBPM......
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/784422#784422]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Jiri Svitak
2012-12-21 09:25:39 UTC
Permalink
Jiri Svitak [https://community.jboss.org/people/jsvitak] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/784428#784428

--------------------------------------------------------------
Hi,
open jbpm-gwt-console-server-5.4.0.Final-EE6.war/WEB-INF/classes/default.jbpm.console.properties and try to change
jbpm.console.task.service.host=127.0.0.1
to localhost instead of local IP address.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/784428#784428]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Dhaval Shah
2012-12-21 09:42:47 UTC
Permalink
Dhaval Shah [https://community.jboss.org/people/shahdhaval2020] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/784431#784431

--------------------------------------------------------------
hello Jiri,

how to do this thing ..what u just said....???
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/784431#784431]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Jiri Svitak
2012-12-21 12:13:13 UTC
Permalink
Jiri Svitak [https://community.jboss.org/people/jsvitak] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/784461#784461

--------------------------------------------------------------
Hi,
I forgot that you use jbpm-installer. The steps from above would work to setup manually your human task service as web archive (.war) in application server.
However jbpm-installer tries to simplify configuration of jbpm applications in .war files. So try these steps - open the file jbpm-installer/conf/default.jbpm.console.properties
and change
jbpm.console.task.service.host=127.0.0.1
to
jbpm.console.task.service.host=localhost
If it won't work, make sure that your human task service is listening on localhost on port 5153.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/784461#784461]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
hczjb zhang
2013-01-11 06:40:21 UTC
Permalink
hczjb zhang [https://community.jboss.org/people/jiabin] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/790319#790319

--------------------------------------------------------------
i get the same issue about "null\roles.properties", and i also change the build.xml, but it still is not working, whether i change build.xml wrong, please tell me how to fix the problem, thanks in advance.

<target name="start.human.task">
    <mkdir dir="${install.home}/task-service/target"/>
    <javac srcdir="${install.home}/task-service/src" destdir="${install.home}/task-service/target" classpathref="classpath.human.task">
      <compilerarg value="-Xlint:unchecked"/>
    </javac>
    <copy todir="${install.home}/task-service/target">
      <fileset dir="${install.home}/task-service/resources"/>
    </copy>
    <java classname="org.jbpm.DemoTaskService" fork="true"> 
      <classpath>
        <pathelement path="${install.home}/task-service/target"/>
        <path refid="classpath.human.task" />
      </classpath>
    </java>
   *<jvmarg value="jbpm.user.group.mapping=${jboss.home}" />*
*    <sysproperty key="jbpm.user.group.mapping" value="${jboss.home}"/>*
  </target>

--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/790319#790319]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
roxy1987
2013-01-11 14:56:06 UTC
Permalink
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/790436#790436

--------------------------------------------------------------
Why did you change your build.xml? are you running this with a different db?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/790436#790436]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
hczjb zhang
2013-01-16 05:27:12 UTC
Permalink
hczjb zhang [https://community.jboss.org/people/jiabin] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/792220#792220

--------------------------------------------------------------
yes, i want to change the database from h2 to oracle
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792220#792220]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
roxy1987
2013-01-16 14:41:26 UTC
Permalink
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/792359#792359

--------------------------------------------------------------
Please follow  Section 3.7 of user guide. Way till sub section 3.7.4 and if you face trouble then please start a new thread as suggested by Jiri. Hope you dont have to start another discussion :)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792359#792359]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Jiri Svitak
2013-01-11 15:14:45 UTC
Permalink
Jiri Svitak [https://community.jboss.org/people/jsvitak] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/790440#790440

--------------------------------------------------------------
hczjb zhang:

Hi. First of all - it's better idea to start another discussion thread about different problem. Otherwise the thread is mixed and becomes confusing.

About your problem "null\roles.properties" - have you tried the steps suggested by Maciej above?

Instead of:
*<jvmarg value="jbpm.user.group.mapping=${jboss.home}" />*
*<sysproperty key="jbpm.user.group.mapping" value="${jboss.home}"/>*
use:
jbpm.user.group.mapping=ABSOLUTE_PATH
for example:
jbpm.user.group.mapping="C:\roles.properties"

Remember that clean installation of jbpm-installer should work automatically without additional configuration.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/790440#790440]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
AM Sid
2013-01-18 17:06:12 UTC
Permalink
AM Sid [https://community.jboss.org/people/ams1] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/792828#792828

--------------------------------------------------------------
I finally got the human task service working, I made the foloowing changes in build.xml

   <java classname="org.jbpm.DemoTaskService" fork="true"> 
*        <sysproperty key="jbpm.user.group.mapping" value="file:///C:/work/jbpm-installer/jboss-as-7.1.1.Final/standalone/configuration/roles.properties"/> *

      <classpath>
            <pathelement path="${install.home}/task-service/target"/>
            <path refid="classpath.human.task" />
      </classpath>
    </java>
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792828#792828]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
chuan kou
2013-01-22 15:48:07 UTC
Permalink
chuan kou [https://community.jboss.org/people/scujcc-kou] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/793554#793554

--------------------------------------------------------------
I'm frist touch  JBPM5.4 .I miss the same problem with u . if you have solved the problem,chould you give some
| | suggestion for me .thinks |



--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793554#793554]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Matias Costa
2013-02-10 12:31:24 UTC
Permalink
Matias Costa [https://community.jboss.org/people/matiasmct] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/796912#796912

--------------------------------------------------------------
Same problem here. I've changed build.xml and default.jbpm.properties (jbpm.console.task.service.host=localhost) and the problem persists. Would be enough with stop and start demo to catch the new conf?

Regards,
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796912#796912]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
iahi1998
2013-02-10 18:48:11 UTC
Permalink
iahi1998 [https://community.jboss.org/people/iahi1998] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/796927#796927

--------------------------------------------------------------
I believe that this issue is just an artifact of Eclipse starting before JBoss completes it's startup sequence. I've realized there's a seconds to minutes gap between the end of "ant start.demo" and when JBoss finishes the startup.

To check whether JBoss finised startup I ran:
tail -f jboss-as-7.1.1.Final/standalone/log/server.log
You will notice that lines keep getting appended to the log for quite a while after "ant stat.demo" finishes and Eclipse starts.

Futhermore, I ran:
$ netstat -c | grep 5153
to see when a service starts listening on 5153. Again, because of the delay in JBoss startup, it takes a while to see something like:
tcp6       0      0 localhost:53282         localhost:5153          ESTABLISHED
tcp6       0      0 localhost:5153          localhost:53282         ESTABLISHED

Once you see that the log doesn't have lines appended to it, and you see a service listening on 5153, you should be able to run the http://docs.jboss.org/jbpm/v5.4/userguide/ch.installer.html#d0e481 10-Minute Tutorial: Using the Eclipse Tooling


My setup is jBPM 5.4.1 on Ubuntu Desktop 12.04, with Oracle Java 7, Apache-Ant 1.8.4. I followed the steps listed in http://docs.jboss.org/jbpm/v5.4/userguide/ch.installer.html Chapter 3. Installer. The only modification required to build.xml was changing the url pointing to Eclipse from:
" http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-$ http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-${download.type}.${download.extension}"
to
"http://archive.eclipse.org/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-${download.type}.${download.extension}"

I hope this helps.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796927#796927]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
suman jangama
2013-02-13 20:44:34 UTC
Permalink
suman jangama [https://community.jboss.org/people/sumanraoj] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/797570#797570

--------------------------------------------------------------
i made this change in the url for eclipse download and install.demo and start.demo works fine
also i have run following commands:

1)ant install.droolsjbpm-eclipse.into.eclipse
2)ant install.jBPM.runtime

I can see the JBPM runtime environment now ..was trying to run the sample project evaluation

still the same error

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)0    13/02 15:34:40,894[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


          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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797570#797570]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
roxy1987
2013-02-14 15:04:18 UTC
Permalink
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/797713#797713

--------------------------------------------------------------
Check if you are able to listen on port 5153? And after you start a process, add a line to dispose the client handler.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797713#797713]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Miloslav Havrda
2013-02-14 08:53:57 UTC
Permalink
Miloslav Havrda [https://community.jboss.org/people/mhavrda] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/797616#797616

--------------------------------------------------------------
Please correct the download.eclipse target in build.xml file in the jbpm-5.4.0.Final-installer-full.zip.
This is the correct URL.
http://archive.eclipse.org/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-$ http://archive.eclipse.org/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-${download.type}.${download.extension}
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797616#797616]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
suman jangama
2013-02-14 16:28:25 UTC
Permalink
suman jangama [https://community.jboss.org/people/sumanraoj] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/797733#797733

--------------------------------------------------------------
Miloslav Havrda and roxy 1987 thanks for the reply..
i did change that url.
the problem was i did not start the human task...
thanks though
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797733#797733]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Matias Costa
2013-02-15 09:17:13 UTC
Permalink
Matias Costa [https://community.jboss.org/people/matiasmct] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/797835#797835

--------------------------------------------------------------
I continue with same problem. How to start human task?

Thanks!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797835#797835]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
roxy1987
2013-02-15 14:58:34 UTC
Permalink
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion

"Re: Could not connect task client: on ip: 127.0.0.1 - port: 5153"

To view the discussion, visit: https://community.jboss.org/message/797934#797934

--------------------------------------------------------------
You need to run the ant script start.demo. it will start up your jboss server and deploy your human task war file.. Human task war has a servlet which loads on startup and starts HornetQ server by default on 127.0.0.1:5153 for jbpm 5.4
Once this is up, you can try to run the evaluation example and see if it starts the process.

Regards.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797934#797934]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...