[jboss-jira] [JBoss JIRA] Created: (JBRULES-2331) StatefulKnowledgeSession unmarshal fails with NPE
Justin Waugh (JIRA)
jira-events at lists.jboss.org
Wed Nov 11 12:19:05 EST 2009
StatefulKnowledgeSession unmarshal fails with NPE
-------------------------------------------------
Key: JBRULES-2331
URL: https://jira.jboss.org/jira/browse/JBRULES-2331
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core (expert)
Affects Versions: 5.1.0.M1, 5.0.1.FINAL
Environment: Windows, JDK 1.6
Reporter: Justin Waugh
Assignee: Mark Proctor
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/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list