Hide Forgot
Date of First Response: 2009-09-02 08:05:26 securitylevel_name: Public A java.io.EOFException is thrown when reading a serialized KnowledgeBase object from a file. java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280) at org.drools.common.DroolsObjectInputStream.<init>(DroolsObjectInputStream.java:55) at org.drools.common.DroolsObjectInputStream.<init>(DroolsObjectInputStream.java:49) at org.drools.common.AbstractRuleBase.readExternal(AbstractRuleBase.java:227) at org.drools.reteoo.ReteooRuleBase.readExternal(ReteooRuleBase.java:173) at org.drools.impl.KnowledgeBaseImpl.readExternal(KnowledgeBaseImpl.java:83) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at com.sample.DroolsTest.read(DroolsTest.java:75) at com.sample.DroolsTest.testIO(DroolsTest.java:50) at com.sample.DroolsTest.main(DroolsTest.java:40)
Link: Added: This issue is related to JBRULES-1946
Fix in place.
I'm reopening this since the corresponding JBRULES-1946 has also been reopened.
This is one has a corresponding test case in 5.0.1: http://anonsvn.jboss.org/repos/labs/labs/jbossrules/soa_branches/BRMS-5.0.1/drools-compiler/src/test/java/org/drools/integrationtests/MarshallingTest.java (testJBRULES_1946, testJBRULES_1946_2, testJBRULES_1946_3)
Please confirm the following for the Release Notes documentation and fill in the missing information. Dot point explanations are fine: The CAUSE (what was actually broken) * CONSEQUENCES of the bug (how users might have encountered it) * Deserializing a KnowledgeBase object throws a java.io.EOFException * Were the DroolsObjectOutputStream and DroolsObjectInputStream working but not the normal Java streamst? The FIX (what was changed to eliminate this bug) * RESULTS of the fix (what now happens for users) *
added to the 5.0.CP01 release notes as resolved: JBRULES-1946 Deserializing a KnowledgeBase object using a non-drools stream would throw an exception. . This has been fixed and no longer occurs.
Hi Darrin and David, the release note above looks good to me. Thanks. The CAUSE (what was actually broken) * CONSEQUENCES of the bug (how users might have encountered it) * Deserializing a KnowledgeBase object using a non-drools stream would throw an exception. The FIX (what was changed to eliminate this bug) * RESULTS of the fix (what now happens for users) * This has been fixed and no longer occurs.
Support Case for this issue: https://enterprise.redhat.com/issue-tracker/582313