Problems connecting to the Human Task Service with BRMS 5.3.1 and EAP 6.1.0
Issue
We are having issue connecting to the jBPM Human Task service using TaskClient. This is the relevant snippet of our code:
this.taskClient = new TaskClient(
new HornetQTaskClientConnector(
this.uniqueTaskClientname,
new HornetQTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())
));
boolean connected = this.taskClient.connect("localhost", "5153");
We tried different options using the actual ip address, localhost and dns name, which didn't work. We are seeing the following ERROR in he log file:
INFO (Thread-3) [ERROR] Failed to initialise session factory
INFO (Thread-3) [ERROR] Exception occured whilst getting the next task for the user - admin on process instance - 9 from external BPM Engine
INFO (Thread-3) java.lang.Exception: BPMAdaptor - It is not possible to connect to the Human Task Service. Please check whether the server is running in [localhost] - Port [5153]
INFO (Thread-3) at com.sample.jBPMWorkflowInterfaceImpl.connectTaskClient(jBPMWorkflowInterfaceImpl.java:742)
INFO (Thread-3) at com.sample.jBPMWorkflowInterfaceImpl.getTasksForUserAndRole(jBPMWorkflowInterfaceImpl.java:136)
INFO (Thread-3) at com.sample.jBPMWorkflowInterfaceImpl.getNextTask(jBPMWorkflowInterfaceImpl.java:223)
INFO (Thread-3) at com.sample.HumanTaskServiceImpl.getNextTask(HumanTaskServiceImpl.java:142)
Environment
- Red Hat Enterprise Application Platform (EAP)
- 6.1.0.GA
- Red Hat JBoss BRMS
- 5.3.1
- Rollup patch 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
