You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by audomsak <s....@gmail.com> on 2017/06/04 16:44:47 UTC

Re: Camel-JBPM component showing java.lang.NoSuchMethodError: org.kie.services.client.api.RemoteRuntimeEngineFactory.newRestBuilder()

I have got the same issue and this what I've found.

In the JBPMEndpoint.java line 50 of Camel JBPM component v2.17.0, it uses 
org.kie.remote.client.api. RemoteRuntimeEngineFactory to create the engine
builder e.g. RemoteRestRuntimeEngineBuilder engineBuilder =
*RemoteRuntimeEngineFactory.newRestBuilder()*; and the
*RemoteRuntimeEngineFactory* class is in, for example,
*kie-services-client-6.1.0.Final.jar* and
*kie-remote-client-6.3.0.Final.jar*. However, *
RemoteRuntimeEngineFactory*class in *kie-services-client-6.1.0.Final.jar*
DOES NOT have the *newRestBuilder()* method. While installing JBPM feature,
may be the *RemoteRuntimeEngineFactory* from the
*kie-services-client-6.1.0.Final.jar* get loaded first in the class path so
that's why you get this error when your route being started.

Exception in thread "SpringOsgiExtenderThread-2"
java.lang.NoSuchMethodError:
*org.kie.services.client.api.RemoteRuntimeEngineFactory.newRestBuilder()*Lorg/kie/remote/client/api/RemoteRestRuntimeEngineBuilder; 
        at
org.apache.camel.component.jbpm.JBPMEndpoint.createProducer(JBPMEndpoint.java:50) 

Following is a feature of Camel JBPM component, you can see both of jars
mentioned above are dependency of the feature.

<feature name='camel-jbpm' version='2.17.0.redhat-630187' resolver='(obr)'
start-level='50'>
    <details>The camel-jbpm feature can only run on a SUN JVM. You need to
add the package com.sun.tools.xjc to the java platform packages in the
etc/jre.properties file.</details>
    <feature version='2.17.0.redhat-630187'>camel-core</feature>
    <feature>transaction</feature>
    <bundle
dependency='true'>mvn:org.openengsb.wrapped/com.google.protobuf/2.4.1.w1</bundle>
    <bundle
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax-inject/1_2</bundle>
    <bundle
dependency='true'>mvn:org.codehaus.jackson/jackson-jaxrs/1.9.13</bundle>
    <bundle
dependency='true'>mvn:org.codehaus.jackson/jackson-core-asl/1.9.13</bundle>
    <bundle
dependency='true'>mvn:org.codehaus.jackson/jackson-mapper-asl/1.9.13</bundle>
    <bundle
dependency='true'>mvn:org.codehaus.jackson/jackson-xc/1.9.13</bundle>
    <bundle dependency='true'>mvn:javax.jms/javax.jms-api/2.0.1</bundle>
    <bundle
dependency='true'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/2.7.0</bundle>
    <bundle
dependency='true'>mvn:org.drools/drools-core/6.3.0.Final</bundle>
    <bundle
dependency='true'>mvn:org.drools/drools-compiler/6.3.0.Final</bundle>
    <bundle
dependency='true'>wrap:mvn:org.kie/kie-internal/6.3.0.Final</bundle>
    <bundle
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.4.8_1</bundle>
    <bundle
dependency='true'>mvn:commons-codec/commons-codec/1.10.0.redhat-5</bundle>
    <bundle
dependency='true'>mvn:org.mvel/mvel2/2.2.7.Final-redhat-1</bundle>
    <bundle dependency='true'>wrap:mvn:org.kie/kie-api/6.3.0.Final</bundle>
    <bundle
dependency='true'>wrap:mvn:org.kie.remote/kie-remote-common/6.3.0.Final</bundle>
    <bundle
dependency='true'>wrap:mvn:org.kie.remote.ws/kie-remote-ws-common/6.3.0.Final</bundle>
    <bundle
dependency='true'>wrap:mvn:org.kie.remote/kie-remote-jaxb/6.3.0.Final</bundle>
*    <bundle
dependency='true'>wrap:mvn:org.kie.remote/kie-services-client/6.1.0.Final</bundle>
    <bundle
dependency='true'>wrap:mvn:org.kie.remote/kie-remote-client/6.3.0.Final</bundle>*
    <bundle>mvn:org.apache.camel/camel-jbpm/2.17.0.redhat-630187</bundle>
  </feature>



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-JBPM-component-showing-java-lang-NoSuchMethodError-org-kie-services-client-api-RemoteRuntimeEn-tp5795338p5801738.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-JBPM component showing java.lang.NoSuchMethodError: org.kie.services.client.api.RemoteRuntimeEngineFactory.newRestBuilder()

Posted by vcamel9 <vc...@outlook.com>.
   Thanks. I'll try and see my observations. I thought I was the only one
looking at this issue.



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-JBPM-component-showing-java-lang-NoSuchMethodError-org-kie-services-client-api-RemoteRuntimeEn-tp5795338p5803327.html
Sent from the Camel - Users mailing list archive at Nabble.com.