Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3330

java.lang.RuntimeException: java.io.InvalidClassException: org.drools.rule.MVELDialectRuntimeData; local class incompatible: stream classdesc serialVersionUID = 5166066541265170937, local class serialVersionUID = -1899561210033391346

    XMLWordPrintable

    Details

      Description

      I am not getting any error when I read below url in ChangeSet.xml in order to create KnowledgeBase. I have compiled java files and used updated code.

      <resource source='http://localhost:8180/guvnor/org.drools.guvnor.Guvnor/package/TestPackage/LATEST' type='PKG' basicAuthentication="enabled" username="testusr" password="testpwd"/>

      But it is giving below exception when I use PKG url shown below.

      ChangeSet.xml
      <change-set xmlns='http://drools.org/drools-5.0/change-set'
      xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
      xs:schemaLocation='http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-
      set-1.0.0.xsd' >
      <add>
      <resource source='http://localhost:8180/guvnor/org.drools.guvnor.Guvnor/package/TestPackage/LATEST.drl' type='DRL' basicAuthentication="enabled" username="testusr" password="testpwd"/>
      </add>
      </change-set>

      Error
      java.lang.RuntimeException: java.io.InvalidClassException: org.drools.rule.MVELDialectRuntimeData; local class incompatible: stream classdesc serialVersionUID
      = 5166066541265170937, local class serialVersionUID = -1899561210033391346
      at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:544)
      at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:519)
      at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
      at com.nokia.marketing.esb.drools2.impl.DroolsCallerBean.init(DroolsCallerBean.java:221)
      at com.nokia.marketing.esb.drools2.impl.DroolsCallerBean.execute(DroolsCallerBean.java:76)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_21]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_21]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_21]
      at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_21]
      at org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:323)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:225)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:167)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:70)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:314)[55:org.apache.camel.camel-core:2.7.1.fuse-00
      -43]
      at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[55:org.apache.camel.camel-core:2.7.1.fuse-00-43]
      at org.apache.servicemix.camel.nmr.ServiceMixConsumer.process(ServiceMixConsumer.java:79)[100:org.apache.servicemix.camel.component:4.4.0.fuse-00-43]
      at org.apache.servicemix.nmr.core.InternalEndpointWrapper.process(InternalEndpointWrapper.java:86)[93:org.apache.servicemix.nmr.core:1.5.0.fuse-00-43]
      at org.apache.servicemix.nmr.core.ChannelImpl.process(ChannelImpl.java:271)[93:org.apache.servicemix.nmr.core:1.5.0.fuse-00-43]
      at org.apache.servicemix.nmr.core.ChannelImpl$1.run(ChannelImpl.java:227)[93:org.apache.servicemix.nmr.core:1.5.0.fuse-00-43]
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_21]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_21]
      at java.lang.Thread.run(Thread.java:619)[:1.6.0_21]
      Caused by: java.io.InvalidClassException: org.drools.rule.MVELDialectRuntimeData; local class incompatible: stream classdesc serialVersionUID = 51660665412651
      70937, local class serialVersionUID = -1899561210033391346
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)[:1.6.0_21]
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)[:1.6.0_21]
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)[:1.6.0_21]
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)[:1.6.0_21]
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)[:1.6.0_21]
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)[:1.6.0_21]
      at java.util.HashMap.readObject(HashMap.java:1030)[:1.6.0_21]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_21]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_21]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_21]
      at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_21]
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)[:1.6.0_21]
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)[:1.6.0_21]
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)[:1.6.0_21]
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)[:1.6.0_21]
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)[:1.6.0_21]
      at org.drools.rule.DialectRuntimeRegistry.readExternal(DialectRuntimeRegistry.java:59)
      at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)[:1.6.0_21]
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)[:1.6.0_21]
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)[:1.6.0_21]
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)[:1.6.0_21]
      at org.drools.rule.Package.readExternal(Package.java:197)
      at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)[:1.6.0_21]
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)[:1.6.0_21]
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)[:1.6.0_21]
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)[:1.6.0_21]
      at org.drools.core.util.DroolsStreamUtils.streamIn(DroolsStreamUtils.java:205)
      at org.drools.core.util.DroolsStreamUtils.streamIn(DroolsStreamUtils.java:189)
      at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:487)
      ... 42 more

        Attachments

          Activity

            People

            Assignee:
            KrisVerlaenen Kris Verlaenen
            Reporter:
            sankar1v Sankar Vinnakota (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: