Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1946

Deserializing a KnowledgeBase object throws a java.io.EOFException

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.0.0.M4, 5.0.0.M5
    • Fix Version/s: 5.1.0.M1, 5.2.0.M1
    • Component/s: drools-core
    • Labels:
      None
    • Environment:

      Ubuntu 8.10

      Description

      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)

        Gliffy Diagrams

          Attachments

          1. drools.test.zip
            12 kB
          2. DroolsTest.java
            3 kB
          3. Sample.drl
            0.1 kB
          4. Sample1.drl
            0.4 kB
          5. Sandbox2.java
            2 kB

            Issue Links

              Activity

                People

                • Assignee:
                  tirelli Edson Tirelli
                  Reporter:
                  simon_k Simon Kelly
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: