java.lang.RuntimeException

java.io.StreamCorruptedException: invalid stream header: 504B0304

Samebug tips3

Update Tomcat container adapters to 1.0.0.CR8 or further. If that doesn't work, "0D0A3C21" in ASCII is "<!", first characters in a HTML file, so, check if you're not reading a file of a different type or if there's an issue with your deserialization.

If you're using Liferay, check the steps in the last message on how to fix it: https://goo.gl/feXWKU

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2500

  • java.io.StreamCorruptedException: invalid stream header: 504B0304
  • via ctakes-user by vijay garla, 1 year ago
    java.io.StreamCorruptedException: invalid stream header: 3C3F786D
  • via Stack Overflow by Crackerman
    , 1 year ago
    java.io.StreamCorruptedException: invalid stream header: 00000000
  • Stack trace

    • java.lang.RuntimeException: java.io.StreamCorruptedException: invalid stream header: 504B0304 at edu.stanford.nlp.ie.AbstractSequenceClassifier.loadClassifierNoExceptions(AbstractSequenceClassifier.java:1572) at edu.stanford.nlp.ie.AbstractSequenceClassifier.loadClassifierNoExceptions(AbstractSequenceClassifier.java:1523) at edu.stanford.nlp.ie.crf.CRFClassifier.main(CRFClassifier.java:2987) Caused by: java.io.StreamCorruptedException: invalid stream header: 504B0304 at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:808) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:301) at edu.stanford.nlp.ie.AbstractSequenceClassifier.loadClassifier(AbstractSequenceClassifier.java:1451) at edu.stanford.nlp.ie.AbstractSequenceClassifier.loadClassifier(AbstractSequenceClassifier.java:1558) at edu.stanford.nlp.ie.AbstractSequenceClassifier.loadClassifierNoExceptions(AbstractSequenceClassifier.java:1569) ... 2 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    15 times, 1 year ago
    Unknown user
    Once, 1 year ago
    48 more bugmates