]
Mark Proctor resolved JBRULES-3222.
-----------------------------------
Fix Version/s: 5.3.0.Final
Resolution: Duplicate Issue
This is a duplicate of JBRULES-30564
Error unmarshalling knowledgeSession with Facts inserted in
entry-points
------------------------------------------------------------------------
Key: JBRULES-3222
URL:
https://issues.jboss.org/browse/JBRULES-3222
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core
Affects Versions: 5.2.0.Final, 5.3.0.Beta1
Reporter: Stefan Wehner
Assignee: Mark Proctor
Labels: entry-point, marshall, npe, unmarshall
Fix For: 5.3.0.Final
Attachments: persist_testcase.tgz
When trying to marshall and then unmarshall a StatefulKnowledgeSession where a Fact has
been inserted into an entry-point a NullPointerException is thrown:
java.lang.NullPointerException
at
org.drools.reteoo.RuleTerminalNodeLeftTuple.<init>(RuleTerminalNodeLeftTuple.java:151)
at org.drools.reteoo.RuleTerminalNode.createLeftTuple(RuleTerminalNode.java:608)
at org.drools.marshalling.impl.InputMarshaller.readLeftTuple(InputMarshaller.java:523)
at
org.drools.marshalling.impl.InputMarshaller.readFactHandles(InputMarshaller.java:373)
at org.drools.marshalling.impl.InputMarshaller.readSession(InputMarshaller.java:230)
at org.drools.marshalling.impl.DefaultMarshaller.unmarshall(DefaultMarshaller.java:92)
at org.drools.marshalling.impl.DefaultMarshaller.unmarshall(DefaultMarshaller.java:63)
at com.sample.DroolsTest.main(DroolsTest.java:50)
Provided is a testcase with two simple rules matching Fact objects directly and from the
entry-point "facts".
A fact is inserted directly into the knowledgeSession and then it is marshalled and
unmarshalled - which works fine.
Then a fact is inserted into a entry-point "facts" and the session is
marshalled and unmarshalled - which throws the NPE.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: