2 Replies Latest reply on Nov 20, 2014 9:57 AM by dosten

    Using REST Remote API across deployments

    dosten

      Hello,

      I am using the KIE REST Remote Java API from a JBoss SAR to hit jBPM in the standard KIE console war (version 6.1.0.Final) as described here.

      However, when I try to start a process, the process does indeed start, but then I get the following exception:

      07:50:04,240 FINER org.kie.services.client.serialization.jaxb.impl.JaxbCommandsResponse cannot be cast to org.kie.services.client.serialization.jaxb.impl.JaxbCommandsResponse: java.lang.ClassCastException: org.kie.services.client.serialization.jaxb.impl.JaxbCommandsResponse cannot be cast to org.kie.services.client.serialization.jaxb.impl.JaxbCommandsResponse

          at org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:406) [kie-services-client-6.1.0.Final.jar:6.1.0.Final]

          at org.kie.services.client.api.command.AbstractRemoteCommandObject.execute(AbstractRemoteCommandObject.java:120) [kie-services-client-6.1.0.Final.jar:6.1.0.Final]

          at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:230) [drools-core-6.1.0.Final.jar:6.1.0.Final]

       

      According to https://bugzilla.redhat.com/show_bug.cgi?id=1098972, it was fixed in v6.

       

      Any ideas?