Hi,<br> 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..<br>
<br><div class="gmail_quote">On Mon, Apr 16, 2012 at 11:29 AM, Wolfgang Laun <span dir="ltr"><<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This kind of error indicates some confusion between compilation and<br>
execution of the code where this is thrown.<br>
<br>
Also, which versions of Drools do you used for marshalling and<br>
unmarshalling? There's no line 287 in the versions of<br>
org.drools.marshalling.impl.PersisterHelper.java available to me.<br>
<br>
-W<br>
<div><div></div><div class="h5"><br>
<br>
On 16/04/2012, sumatheja <<a href="mailto:sumatheja@gmail.com">sumatheja@gmail.com</a>> wrote:<br>
> Hi All,<br>
> I ran across an issue while unmarshalling StatefulKnowledgeSession.<br>
> First I'm marshalling the session using the following code which works fine<br>
><br>
> Marshaller marshaller = MarshallerFactory<br>
><br>
> .newMarshaller(workingMemory.getKnowledgeBase());<br>
> File file = new File(<br>
> "C:\\Users\\Sumatheja\\<a href="http://workingmemory.info" target="_blank">workingmemory.info</a>");<br>
> FileOutputStream fos = new FileOutputStream(file);<br>
> ByteArrayOutputStream baos = new<br>
> ByteArrayOutputStream();<br>
> marshaller.marshall(baos, workingMemory);<br>
> baos.writeTo(fos);<br>
> baos.close();<br>
><br>
> When I try to unmarshall the session using<br>
><br>
> Marshaller marshaller = MarshallerFactory<br>
> .newMarshaller(workingMemory.getKnowledgeBase());<br>
> FileInputStream fis = new<br>
> FileInputStream("C:\\Users\\Sumatheja\\<a href="http://workingmemory.info" target="_blank">workingmemory.info</a>");<br>
> workingMemory = marshaller.unmarshall(fis);<br>
><br>
> I'm getting the Error:<br>
><br>
><br>
> java.lang.AbstractMethodError:<br>
> org.jbpm.marshalling.impl.ProcessMarshallerImpl.init(Lorg/drools/marshalling/impl/MarshallerReaderContext;)V<br>
> at<br>
> org.drools.marshalling.impl.PersisterHelper.buildRegistry(PersisterHelper.java:287)<br>
> at<br>
> org.drools.marshalling.impl.ProtobufInputMarshaller.loadAndParseSession(ProtobufInputMarshaller.java:219)<br>
> at<br>
> org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:152)<br>
> at<br>
> org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:117)<br>
> at<br>
> org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:86)<br>
> at<br>
> mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:271)<br>
> at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:84)<br>
><br>
> No Idea what I'm missing out... any help will be appreciated... Thanks in<br>
> advance<br>
><br>
><br>
> --<br>
> cheers<br>
> Sumatheja Dasararaju<br>
><br>
</div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>cheers<br>Sumatheja Dasararaju<br><br><br>