[rules-users] "java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init" while unmarshalling statefulknowledgesession
sumatheja
sumatheja at gmail.com
Mon Apr 16 06:37:25 EDT 2012
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.laun at 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 <sumatheja at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
--
cheers
Sumatheja Dasararaju
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120416/aada2869/attachment.html
More information about the rules-users
mailing list