0 Replies Latest reply on Feb 19, 2016 10:04 PM by salvuzzo

    kie-remote-client 6.3.0

    salvuzzo Novice

      Hello,

      I made a small project and is has been started into my jbpm-console. From a web service, i started this process and my code is:

       

      RuntimeEngine engine = RemoteRuntimeEngineFactory.newRestBuilder()

      .addUrl(new URL("http://localhost:8080/jbpm-console"))

      .addUserName("krisv").addPassword("krisv")

      .addDeploymentId("test-progetto:1.0.0-SNAPSHOT")

      .build();

      KieSession ksession = engine.getKieSession();

      ProcessInstance processInstance = ksession.startProcess("Test", null);.

       

      If i use kie-remote-client 6.2.0 work well, if i use kie-remote-client 6.3 not work and i get this error:

       

      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

      SLF4J: Defaulting to no-operation (NOP) logger implementation

      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

      org.kie.services.client.serialization.SerializationException: Unsupported JAXB Class encountered during initialization: 2 counts of IllegalAnnotationExceptions

        at org.kie.remote.client.jaxb.ClientJaxbSerializationProvider.initialize(ClientJaxbSerializationProvider.java:124)

        at org.kie.remote.client.jaxb.ClientJaxbSerializationProvider.initialize(ClientJaxbSerializationProvider.java:117)

        at org.kie.remote.client.jaxb.ClientJaxbSerializationProvider.newInstance(ClientJaxbSerializationProvider.java:112)

        at org.kie.services.client.api.command.RemoteConfiguration.initializeJaxbSerializationProvider(RemoteConfiguration.java:118)

        at org.kie.services.client.api.command.AbstractRemoteCommandObject.<init>(AbstractRemoteCommandObject.java:98)

        at org.kie.services.client.api.command.KieSessionClientCommandObject.<init>(KieSessionClientCommandObject.java:70)

        at org.kie.services.client.api.command.RemoteRuntimeEngine.getKieSession(RemoteRuntimeEngine.java:40)

        at com.sample.Start.main(Start.java:88)

      Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions

      java.util.Map is an interface, and JAXB can't handle interfaces.

        this problem is related to the following location:

        at java.util.Map

        at private java.util.Map org.kie.services.client.serialization.jaxb.impl.type.JaxbMap.value

        at org.kie.services.client.serialization.jaxb.impl.type.JaxbMap

      java.util.Map does not have a no-arg default constructor.

        this problem is related to the following location:

        at java.util.Map

        at private java.util.Map org.kie.services.client.serialization.jaxb.impl.type.JaxbMap.value

        at org.kie.services.client.serialization.jaxb.impl.type.JaxbMap

       

       

        at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)

        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:472)

        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)

        at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)

        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)

        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:497)

        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:247)

        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:234)

        at javax.xml.bind.ContextFinder.find(ContextFinder.java:441)

        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641)

        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584)

        at org.kie.remote.client.jaxb.ClientJaxbSerializationProvider.initialize(ClientJaxbSerializationProvider.java:122)

        ... 7 more