How to access from jBPM Console to JMS transport Human Task Service ?

Solution Unverified - Updated -

Issue

  • I have changed jbpm-human-task.war/WEB-INF/web.xml to use JMS but jBPM Console fails to access.
ERROR [org.jbpm.task.service.hornetq.HornetQTaskClientConnector] (http-localhost%2F127.0.0.1-8080-5) Unable to connect to server using configuration org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5446&host=127-0-0-1
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/business-central-server].[Resteasy]] (http-localhost%2F127.0.0.1-8080-5) Servlet.service() for servlet Resteasy threw exception
org.jboss.resteasy.spi.UnhandledException: java.lang.ExceptionInInitializerError
...
Caused by: java.lang.ExceptionInInitializerError
        at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:131)
        at org.jbpm.integration.console.SessionInitializer.<init>(SessionInitializer.java:25)
        at org.jbpm.integration.console.TaskManagement.<init>(TaskManagement.java:49)
        at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26)
        at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19)
        at org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72)
        at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
        at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
        at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
        ... 30 more
Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session: Could not connect task client
        at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:163)
        at org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.<clinit>(StatefulKnowledgeSessionUtil.java:127)
        ... 46 more
Caused by: java.lang.IllegalArgumentException: Could not connect task client
        at org.jbpm.integration.console.TaskClientFactory.newAsyncInstance(TaskClientFactory.java:107)
        at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.registerWorkItemHandler(StatefulKnowledgeSessionUtil.java:329)
        at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:158)
        ... 47 more
  • JBPM Console is unable to connect to SSL Secured JMS HornetQ Server.

Environment

  • JBoss Enterprise Business Rules Management System (BRMS)
    • 5.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.