Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession
Thanks everyone for the help :)Its working fine with jbpm 5.3 development snapshot and drools 5.4 cr1... cheers!! On Mon, Apr 16, 2012 at 3:08 PM, sumatheja sumath...@gmail.com wrote: Thanks Edson... I expected this could be a ersion issue... can you send me the link for the latest snapshot for jBPM... The latest that I could find is 5.2 final. 2012/4/16 Edson Tirelli ed.tire...@gmail.com The error means a version incompatibility due to changes we made to the marshalling framework. Until both projects have their releases out, you will have to use snapshots. jBPM 5.3 requires Drools 5.4 and vice-versa. You can't use Drools 5.4 with jBPM 5.2. I think jBPM 5.3 has not released any binaries after Drools 5.4.CR1, so you need to use the snapshot until it is. Please note that this is temporary as we are talking about development (i.e., non-final) versions. Edson 2012/4/16 sumatheja sumath...@gmail.com Hi Michael... Thanks for the response I'm getting this exception even without a guvnor i.e. when I use a local project which has jbpm process and a drl file but without the jbpm process everything works fine. I'm using jbpm 5.2 final. 2012/4/16 Michael Anstis michael.ans...@gmail.com There was a dramatic change to the marshalling of binary packages for 5.4.CR1. AFAIK this would mean any existing binary package in Guvnor would need to be rebuilt. Downgrading JARs to older versions would effectively remove the marshalling change and hence restore compatibility of older binary assets. Edson, I think I am right? We need to call this loud and clear in the release notes. sent on the move On 16 Apr 2012 12:33, sumatheja sumath...@gmail.com wrote: I'm getting the same issue when I try to unmarshall a sample application which has the jbpm process (which moves out guvnor as possible cause). can someone guide if this is some bug? or should I change the jbpm jar version? On Mon, Apr 16, 2012 at 11:37 AM, sumatheja sumath...@gmail.comwrote: Hi, I'm using drools and guvnor 5.4 cr1. I've few drools ruleflows which were not executing so I imported the jars from jbpm 5.2 final. The marshalling and unmarshalling works fine if I have knowledge base without rule-flows. I hope this gives some hint.. On Mon, Apr 16, 2012 at 11:29 AM, Wolfgang Laun wolfgang.l...@gmail.com wrote: This kind of error indicates some confusion between compilation and execution of the code where this is thrown. Also, which versions of Drools do you used for marshalling and unmarshalling? There's no line 287 in the versions of org.drools.marshalling.impl.PersisterHelper.java available to me. -W On 16/04/2012, sumatheja sumath...@gmail.com wrote: Hi All, I ran across an issue while unmarshalling StatefulKnowledgeSession. First I'm marshalling the session using the following code which works fine Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); File file = new File( C:\\Users\\Sumatheja\\ workingmemory.info); FileOutputStream fos = new FileOutputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(); marshaller.marshall(baos, workingMemory); baos.writeTo(fos); baos.close(); When I try to unmarshall the session using Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); FileInputStream fis = new FileInputStream(C:\\Users\\Sumatheja\\workingmemory.info); workingMemory = marshaller.unmarshall(fis); I'm getting the Error: java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init(Lorg/drools/marshalling/impl/MarshallerReaderContext;)V at org.drools.marshalling.impl.PersisterHelper.buildRegistry(PersisterHelper.java:287) at org.drools.marshalling.impl.ProtobufInputMarshaller.loadAndParseSession(ProtobufInputMarshaller.java:219) at org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:152) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:117) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:86) at mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:271) at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:84) No Idea what I'm missing out... any help will be appreciated... Thanks in advance -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju -- cheers Sumatheja Dasararaju
[rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession
Hi All, I ran across an issue while unmarshalling StatefulKnowledgeSession. First I'm marshalling the session using the following code which works fine Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); File file = new File( C:\\Users\\Sumatheja\\workingmemory.info); FileOutputStream fos = new FileOutputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(); marshaller.marshall(baos, workingMemory); baos.writeTo(fos); baos.close(); When I try to unmarshall the session using Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); FileInputStream fis = new FileInputStream(C:\\Users\\Sumatheja\\workingmemory.info); workingMemory = marshaller.unmarshall(fis); I'm getting the Error: java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init(Lorg/drools/marshalling/impl/MarshallerReaderContext;)V at org.drools.marshalling.impl.PersisterHelper.buildRegistry(PersisterHelper.java:287) at org.drools.marshalling.impl.ProtobufInputMarshaller.loadAndParseSession(ProtobufInputMarshaller.java:219) at org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:152) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:117) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:86) at mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:271) at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:84) No Idea what I'm missing out... any help will be appreciated... Thanks in advance -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession
This kind of error indicates some confusion between compilation and execution of the code where this is thrown. Also, which versions of Drools do you used for marshalling and unmarshalling? There's no line 287 in the versions of org.drools.marshalling.impl.PersisterHelper.java available to me. -W On 16/04/2012, sumatheja sumath...@gmail.com wrote: Hi All, I ran across an issue while unmarshalling StatefulKnowledgeSession. First I'm marshalling the session using the following code which works fine Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); File file = new File( C:\\Users\\Sumatheja\\workingmemory.info); FileOutputStream fos = new FileOutputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(); marshaller.marshall(baos, workingMemory); baos.writeTo(fos); baos.close(); When I try to unmarshall the session using Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); FileInputStream fis = new FileInputStream(C:\\Users\\Sumatheja\\workingmemory.info); workingMemory = marshaller.unmarshall(fis); I'm getting the Error: java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init(Lorg/drools/marshalling/impl/MarshallerReaderContext;)V at org.drools.marshalling.impl.PersisterHelper.buildRegistry(PersisterHelper.java:287) at org.drools.marshalling.impl.ProtobufInputMarshaller.loadAndParseSession(ProtobufInputMarshaller.java:219) at org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:152) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:117) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:86) at mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:271) at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:84) No Idea what I'm missing out... any help will be appreciated... Thanks in advance -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession
Hi, I'm using drools and guvnor 5.4 cr1. I've few drools ruleflows which were not executing so I imported the jars from jbpm 5.2 final. The marshalling and unmarshalling works fine if I have knowledge base without rule-flows. I hope this gives some hint.. On Mon, Apr 16, 2012 at 11:29 AM, Wolfgang Laun wolfgang.l...@gmail.comwrote: This kind of error indicates some confusion between compilation and execution of the code where this is thrown. Also, which versions of Drools do you used for marshalling and unmarshalling? There's no line 287 in the versions of org.drools.marshalling.impl.PersisterHelper.java available to me. -W On 16/04/2012, sumatheja sumath...@gmail.com wrote: Hi All, I ran across an issue while unmarshalling StatefulKnowledgeSession. First I'm marshalling the session using the following code which works fine Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); File file = new File( C:\\Users\\Sumatheja\\workingmemory.info); FileOutputStream fos = new FileOutputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(); marshaller.marshall(baos, workingMemory); baos.writeTo(fos); baos.close(); When I try to unmarshall the session using Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); FileInputStream fis = new FileInputStream(C:\\Users\\Sumatheja\\workingmemory.info); workingMemory = marshaller.unmarshall(fis); I'm getting the Error: java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init(Lorg/drools/marshalling/impl/MarshallerReaderContext;)V at org.drools.marshalling.impl.PersisterHelper.buildRegistry(PersisterHelper.java:287) at org.drools.marshalling.impl.ProtobufInputMarshaller.loadAndParseSession(ProtobufInputMarshaller.java:219) at org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:152) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:117) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:86) at mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:271) at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:84) No Idea what I'm missing out... any help will be appreciated... Thanks in advance -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession
I'm getting the same issue when I try to unmarshall a sample application which has the jbpm process (which moves out guvnor as possible cause). can someone guide if this is some bug? or should I change the jbpm jar version? On Mon, Apr 16, 2012 at 11:37 AM, sumatheja sumath...@gmail.com wrote: Hi, I'm using drools and guvnor 5.4 cr1. I've few drools ruleflows which were not executing so I imported the jars from jbpm 5.2 final. The marshalling and unmarshalling works fine if I have knowledge base without rule-flows. I hope this gives some hint.. On Mon, Apr 16, 2012 at 11:29 AM, Wolfgang Laun wolfgang.l...@gmail.comwrote: This kind of error indicates some confusion between compilation and execution of the code where this is thrown. Also, which versions of Drools do you used for marshalling and unmarshalling? There's no line 287 in the versions of org.drools.marshalling.impl.PersisterHelper.java available to me. -W On 16/04/2012, sumatheja sumath...@gmail.com wrote: Hi All, I ran across an issue while unmarshalling StatefulKnowledgeSession. First I'm marshalling the session using the following code which works fine Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); File file = new File( C:\\Users\\Sumatheja\\workingmemory.info ); FileOutputStream fos = new FileOutputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(); marshaller.marshall(baos, workingMemory); baos.writeTo(fos); baos.close(); When I try to unmarshall the session using Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); FileInputStream fis = new FileInputStream(C:\\Users\\Sumatheja\\workingmemory.info); workingMemory = marshaller.unmarshall(fis); I'm getting the Error: java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init(Lorg/drools/marshalling/impl/MarshallerReaderContext;)V at org.drools.marshalling.impl.PersisterHelper.buildRegistry(PersisterHelper.java:287) at org.drools.marshalling.impl.ProtobufInputMarshaller.loadAndParseSession(ProtobufInputMarshaller.java:219) at org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:152) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:117) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:86) at mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:271) at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:84) No Idea what I'm missing out... any help will be appreciated... Thanks in advance -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession
There was a dramatic change to the marshalling of binary packages for 5.4.CR1. AFAIK this would mean any existing binary package in Guvnor would need to be rebuilt. Downgrading JARs to older versions would effectively remove the marshalling change and hence restore compatibility of older binary assets. Edson, I think I am right? We need to call this loud and clear in the release notes. sent on the move On 16 Apr 2012 12:33, sumatheja sumath...@gmail.com wrote: I'm getting the same issue when I try to unmarshall a sample application which has the jbpm process (which moves out guvnor as possible cause). can someone guide if this is some bug? or should I change the jbpm jar version? On Mon, Apr 16, 2012 at 11:37 AM, sumatheja sumath...@gmail.com wrote: Hi, I'm using drools and guvnor 5.4 cr1. I've few drools ruleflows which were not executing so I imported the jars from jbpm 5.2 final. The marshalling and unmarshalling works fine if I have knowledge base without rule-flows. I hope this gives some hint.. On Mon, Apr 16, 2012 at 11:29 AM, Wolfgang Laun wolfgang.l...@gmail.comwrote: This kind of error indicates some confusion between compilation and execution of the code where this is thrown. Also, which versions of Drools do you used for marshalling and unmarshalling? There's no line 287 in the versions of org.drools.marshalling.impl.PersisterHelper.java available to me. -W On 16/04/2012, sumatheja sumath...@gmail.com wrote: Hi All, I ran across an issue while unmarshalling StatefulKnowledgeSession. First I'm marshalling the session using the following code which works fine Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); File file = new File( C:\\Users\\Sumatheja\\workingmemory.info ); FileOutputStream fos = new FileOutputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(); marshaller.marshall(baos, workingMemory); baos.writeTo(fos); baos.close(); When I try to unmarshall the session using Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); FileInputStream fis = new FileInputStream(C:\\Users\\Sumatheja\\workingmemory.info); workingMemory = marshaller.unmarshall(fis); I'm getting the Error: java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init(Lorg/drools/marshalling/impl/MarshallerReaderContext;)V at org.drools.marshalling.impl.PersisterHelper.buildRegistry(PersisterHelper.java:287) at org.drools.marshalling.impl.ProtobufInputMarshaller.loadAndParseSession(ProtobufInputMarshaller.java:219) at org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:152) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:117) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:86) at mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:271) at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:84) No Idea what I'm missing out... any help will be appreciated... Thanks in advance -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession
Hi Michael... Thanks for the response I'm getting this exception even without a guvnor i.e. when I use a local project which has jbpm process and a drl file but without the jbpm process everything works fine. I'm using jbpm 5.2 final. 2012/4/16 Michael Anstis michael.ans...@gmail.com There was a dramatic change to the marshalling of binary packages for 5.4.CR1. AFAIK this would mean any existing binary package in Guvnor would need to be rebuilt. Downgrading JARs to older versions would effectively remove the marshalling change and hence restore compatibility of older binary assets. Edson, I think I am right? We need to call this loud and clear in the release notes. sent on the move On 16 Apr 2012 12:33, sumatheja sumath...@gmail.com wrote: I'm getting the same issue when I try to unmarshall a sample application which has the jbpm process (which moves out guvnor as possible cause). can someone guide if this is some bug? or should I change the jbpm jar version? On Mon, Apr 16, 2012 at 11:37 AM, sumatheja sumath...@gmail.com wrote: Hi, I'm using drools and guvnor 5.4 cr1. I've few drools ruleflows which were not executing so I imported the jars from jbpm 5.2 final. The marshalling and unmarshalling works fine if I have knowledge base without rule-flows. I hope this gives some hint.. On Mon, Apr 16, 2012 at 11:29 AM, Wolfgang Laun wolfgang.l...@gmail.com wrote: This kind of error indicates some confusion between compilation and execution of the code where this is thrown. Also, which versions of Drools do you used for marshalling and unmarshalling? There's no line 287 in the versions of org.drools.marshalling.impl.PersisterHelper.java available to me. -W On 16/04/2012, sumatheja sumath...@gmail.com wrote: Hi All, I ran across an issue while unmarshalling StatefulKnowledgeSession. First I'm marshalling the session using the following code which works fine Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); File file = new File( C:\\Users\\Sumatheja\\workingmemory.info ); FileOutputStream fos = new FileOutputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(); marshaller.marshall(baos, workingMemory); baos.writeTo(fos); baos.close(); When I try to unmarshall the session using Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); FileInputStream fis = new FileInputStream(C:\\Users\\Sumatheja\\workingmemory.info); workingMemory = marshaller.unmarshall(fis); I'm getting the Error: java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init(Lorg/drools/marshalling/impl/MarshallerReaderContext;)V at org.drools.marshalling.impl.PersisterHelper.buildRegistry(PersisterHelper.java:287) at org.drools.marshalling.impl.ProtobufInputMarshaller.loadAndParseSession(ProtobufInputMarshaller.java:219) at org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:152) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:117) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:86) at mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:271) at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:84) No Idea what I'm missing out... any help will be appreciated... Thanks in advance -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession
The error means a version incompatibility due to changes we made to the marshalling framework. Until both projects have their releases out, you will have to use snapshots. jBPM 5.3 requires Drools 5.4 and vice-versa. You can't use Drools 5.4 with jBPM 5.2. I think jBPM 5.3 has not released any binaries after Drools 5.4.CR1, so you need to use the snapshot until it is. Please note that this is temporary as we are talking about development (i.e., non-final) versions. Edson 2012/4/16 sumatheja sumath...@gmail.com Hi Michael... Thanks for the response I'm getting this exception even without a guvnor i.e. when I use a local project which has jbpm process and a drl file but without the jbpm process everything works fine. I'm using jbpm 5.2 final. 2012/4/16 Michael Anstis michael.ans...@gmail.com There was a dramatic change to the marshalling of binary packages for 5.4.CR1. AFAIK this would mean any existing binary package in Guvnor would need to be rebuilt. Downgrading JARs to older versions would effectively remove the marshalling change and hence restore compatibility of older binary assets. Edson, I think I am right? We need to call this loud and clear in the release notes. sent on the move On 16 Apr 2012 12:33, sumatheja sumath...@gmail.com wrote: I'm getting the same issue when I try to unmarshall a sample application which has the jbpm process (which moves out guvnor as possible cause). can someone guide if this is some bug? or should I change the jbpm jar version? On Mon, Apr 16, 2012 at 11:37 AM, sumatheja sumath...@gmail.com wrote: Hi, I'm using drools and guvnor 5.4 cr1. I've few drools ruleflows which were not executing so I imported the jars from jbpm 5.2 final. The marshalling and unmarshalling works fine if I have knowledge base without rule-flows. I hope this gives some hint.. On Mon, Apr 16, 2012 at 11:29 AM, Wolfgang Laun wolfgang.l...@gmail.com wrote: This kind of error indicates some confusion between compilation and execution of the code where this is thrown. Also, which versions of Drools do you used for marshalling and unmarshalling? There's no line 287 in the versions of org.drools.marshalling.impl.PersisterHelper.java available to me. -W On 16/04/2012, sumatheja sumath...@gmail.com wrote: Hi All, I ran across an issue while unmarshalling StatefulKnowledgeSession. First I'm marshalling the session using the following code which works fine Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); File file = new File( C:\\Users\\Sumatheja\\ workingmemory.info); FileOutputStream fos = new FileOutputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(); marshaller.marshall(baos, workingMemory); baos.writeTo(fos); baos.close(); When I try to unmarshall the session using Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); FileInputStream fis = new FileInputStream(C:\\Users\\Sumatheja\\workingmemory.info); workingMemory = marshaller.unmarshall(fis); I'm getting the Error: java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init(Lorg/drools/marshalling/impl/MarshallerReaderContext;)V at org.drools.marshalling.impl.PersisterHelper.buildRegistry(PersisterHelper.java:287) at org.drools.marshalling.impl.ProtobufInputMarshaller.loadAndParseSession(ProtobufInputMarshaller.java:219) at org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:152) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:117) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:86) at mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:271) at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:84) No Idea what I'm missing out... any help will be appreciated... Thanks in advance -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju ___ rules-users mailing
Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession
Thanks Edson... I expected this could be a ersion issue... can you send me the link for the latest snapshot for jBPM... The latest that I could find is 5.2 final. 2012/4/16 Edson Tirelli ed.tire...@gmail.com The error means a version incompatibility due to changes we made to the marshalling framework. Until both projects have their releases out, you will have to use snapshots. jBPM 5.3 requires Drools 5.4 and vice-versa. You can't use Drools 5.4 with jBPM 5.2. I think jBPM 5.3 has not released any binaries after Drools 5.4.CR1, so you need to use the snapshot until it is. Please note that this is temporary as we are talking about development (i.e., non-final) versions. Edson 2012/4/16 sumatheja sumath...@gmail.com Hi Michael... Thanks for the response I'm getting this exception even without a guvnor i.e. when I use a local project which has jbpm process and a drl file but without the jbpm process everything works fine. I'm using jbpm 5.2 final. 2012/4/16 Michael Anstis michael.ans...@gmail.com There was a dramatic change to the marshalling of binary packages for 5.4.CR1. AFAIK this would mean any existing binary package in Guvnor would need to be rebuilt. Downgrading JARs to older versions would effectively remove the marshalling change and hence restore compatibility of older binary assets. Edson, I think I am right? We need to call this loud and clear in the release notes. sent on the move On 16 Apr 2012 12:33, sumatheja sumath...@gmail.com wrote: I'm getting the same issue when I try to unmarshall a sample application which has the jbpm process (which moves out guvnor as possible cause). can someone guide if this is some bug? or should I change the jbpm jar version? On Mon, Apr 16, 2012 at 11:37 AM, sumatheja sumath...@gmail.comwrote: Hi, I'm using drools and guvnor 5.4 cr1. I've few drools ruleflows which were not executing so I imported the jars from jbpm 5.2 final. The marshalling and unmarshalling works fine if I have knowledge base without rule-flows. I hope this gives some hint.. On Mon, Apr 16, 2012 at 11:29 AM, Wolfgang Laun wolfgang.l...@gmail.com wrote: This kind of error indicates some confusion between compilation and execution of the code where this is thrown. Also, which versions of Drools do you used for marshalling and unmarshalling? There's no line 287 in the versions of org.drools.marshalling.impl.PersisterHelper.java available to me. -W On 16/04/2012, sumatheja sumath...@gmail.com wrote: Hi All, I ran across an issue while unmarshalling StatefulKnowledgeSession. First I'm marshalling the session using the following code which works fine Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); File file = new File( C:\\Users\\Sumatheja\\ workingmemory.info); FileOutputStream fos = new FileOutputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(); marshaller.marshall(baos, workingMemory); baos.writeTo(fos); baos.close(); When I try to unmarshall the session using Marshaller marshaller = MarshallerFactory .newMarshaller(workingMemory.getKnowledgeBase()); FileInputStream fis = new FileInputStream(C:\\Users\\Sumatheja\\workingmemory.info); workingMemory = marshaller.unmarshall(fis); I'm getting the Error: java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init(Lorg/drools/marshalling/impl/MarshallerReaderContext;)V at org.drools.marshalling.impl.PersisterHelper.buildRegistry(PersisterHelper.java:287) at org.drools.marshalling.impl.ProtobufInputMarshaller.loadAndParseSession(ProtobufInputMarshaller.java:219) at org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:152) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:117) at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:86) at mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:271) at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:84) No Idea what I'm missing out... any help will be appreciated... Thanks in advance -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users