3 Replies Latest reply on Dec 3, 2014 11:15 AM by swiderski.maciej

    Multiple instances issue in JBPM 6.0.1

    sudhakarang

      Hi All,

       

      Created one BPMN with multiple instances through JBPM console. Please find the attachment has BPMN screen shot and BPMN.

       

      By using below JAVA API code, trying to create a process for the BPMN which is created in JBPM Console.

       

      RemoteRestRuntimeFactory restSessionFactory   = new RemoteRestRuntimeFactory("sudhakaran.multiple:sudhakaran_multiple_1:1.0", new URL("http://localhost:8080/jbpm-console/"), "admin", "admin");

        RuntimeEngine engine = restSessionFactory.newRuntimeEngine();

        KieSession ksession = engine.getKieSession();

      Map<String, Object> params = new HashMap<String, Object>();

        List<String> list = new ArrayList<String>();

        list.add("krisv");

        list.add("john doe");

        list.add("superman");

        params.put("list", list);

        ksession.startProcess("com.sample.multipleinstance", params);

       

      When starting the process, getting below exception.

       

      org.kie.services.client.serialization.SerializationException: Unable to marshall JaxbCommandsRequest instance.

        at org.kie.services.client.serialization.JaxbSerializationProvider.serialize(JaxbSerializationProvider.java:101)

        at org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:310)

        at org.kie.services.client.api.command.AbstractRemoteCommandObject.execute(AbstractRemoteCommandObject.java:110)

        at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:232)

        at TestService.main(TestService.java:92)

      Caused by: javax.xml.bind.MarshalException

      - with linked exception:

      [com.sun.istack.internal.SAXException2: class org.drools.core.xml.jaxb.util.JaxbListWrapper nor any of its super class is known to this context.

      javax.xml.bind.JAXBException: class org.drools.core.xml.jaxb.util.JaxbListWrapper nor any of its super class is known to this context.]

        at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:311)

        at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:236)

        at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:116)

        at org.kie.services.client.serialization.JaxbSerializationProvider.serialize(JaxbSerializationProvider.java:99)

        ... 4 more

       

      Can any one help me how to proceed on this issue.

       

      Thanks and Regards,

      Sudhakaran G