[
https://jira.jboss.org/browse/JBRULES-2331?page=com.atlassian.jira.plugin...
]
Edson Tirelli resolved JBRULES-2331.
------------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
Resolution: Done
Fixed.
StatefulKnowledgeSession unmarshal fails with NPE
-------------------------------------------------
Key: JBRULES-2331
URL:
https://jira.jboss.org/browse/JBRULES-2331
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core (expert)
Affects Versions: 5.0.1.FINAL, 5.1.0.M1
Environment: Windows, JDK 1.6
Reporter: Justin Waugh
Assignee: Edson Tirelli
Fix For: 5.1.0.FINAL
Attachments: test.zip
The following rule being present in the knowledge base causes the
StatefulKnowledgeSession to fail to unmarshall with an NPE:
package test.drl
rule "dummy_rule"
when
eval( false )
then
end
Here is the stack trace:
java.lang.NullPointerException
at org.drools.marshalling.impl.InputMarshaller.readLeftTuple(InputMarshaller.java:440)
at
org.drools.marshalling.impl.InputMarshaller.readFactHandles(InputMarshaller.java:345)
at org.drools.marshalling.impl.InputMarshaller.readSession(InputMarshaller.java:207)
at org.drools.marshalling.impl.DefaultMarshaller.unmarshall(DefaultMarshaller.java:75)
at org.drools.marshalling.impl.DefaultMarshaller.unmarshall(DefaultMarshaller.java:47)
at
test.DroolsSerializationBugTest.testDroolsSerializationBug(DroolsSerializationBugTest.java:87)
at test.DroolsSerializationBugTest.main(DroolsSerializationBugTest.java:28)
Test case attached.
Fails against 5.0.1 and 5.1.0M1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira