java.io.StreamCorruptedException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Update Tomcat container adapters to 1.0.0.CR8 or further. If that doesn't work, "0D0A3C21" in ASCII is "

tip

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

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

  • i want to receive some data over TCP connection but getting some exception: Below is exception Exception stack is: 1. invalid stream header: 00426000 (java.io.StreamCorruptedException) java.io.ObjectInputStream:-1 (null) 2. java.io.StreamCorruptedException: invalid stream header: 00426000 (org.apache.commons.lang.SerializationException) org.mule.util.SerializationUtils:89 (null) 3. Failed to transform from "byte[]" to "Object" (org.mule.api.transformer.TransformerException) org.mule.transformer.simple.ByteArrayToSerializable:58 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transformer/TransformerException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.io.StreamCorruptedException: invalid stream header: 00426000 at java.io.ObjectInputStream.readStreamHeader(Unknown Source) at java.io.ObjectInputStream.<init>(Unknown Source) at org.apache.commons.io.input.ClassLoaderObjectInputStream.<init>(ClassLoaderObjectInputStream.java:51) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** at org.mule.transport.tcp.protocols.MuleMessageWorker.doRead(MuleMessageWorker.java:76) at org.mule.transport.tcp.protocols.MuleMessageEOFProtocol.read(MuleMessageEOFProtocol.java:36) at org.mule.transport.tcp.TcpMessageReceiver$TcpWorker.getNextMessage(TcpMessageReceiver.java:364) at org.mule.transport.AbstractReceiverResourceWorker.doRun(AbstractReceiverResourceWorker.java:44) at org.mule.transport.AbstractReceiverWorker.run(AbstractReceiverWorker.java:65) at org.mule.work.WorkerContext.run(WorkerContext.java:311) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Herewith attached my java file and config.xml
    via by manish kumar,
  • i want to receive some data over TCP connection but getting some exception: Below is exception Exception stack is: 1. invalid stream header: 00426000 (java.io.StreamCorruptedException) java.io.ObjectInputStream:-1 (null) 2. java.io.StreamCorruptedException: invalid stream header: 00426000 (org.apache.commons.lang.SerializationException) org.mule.util.SerializationUtils:89 (null) 3. Failed to transform from "byte[]" to "Object" (org.mule.api.transformer.TransformerException) org.mule.transformer.simple.ByteArrayToSerializable:58 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transformer/TransformerException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.io.StreamCorruptedException: invalid stream header: 00426000 at java.io.ObjectInputStream.readStreamHeader(Unknown Source) at java.io.ObjectInputStream.<init>(Unknown Source) at org.apache.commons.io.input.ClassLoaderObjectInputStream.<init>(ClassLoaderObjectInputStream.java:51) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** at org.mule.transport.tcp.protocols.MuleMessageWorker.doRead(MuleMessageWorker.java:76) at org.mule.transport.tcp.protocols.MuleMessageEOFProtocol.read(MuleMessageEOFProtocol.java:36) at org.mule.transport.tcp.TcpMessageReceiver$TcpWorker.getNextMessage(TcpMessageReceiver.java:364) at org.mule.transport.AbstractReceiverResourceWorker.doRun(AbstractReceiverResourceWorker.java:44) at org.mule.transport.AbstractReceiverWorker.run(AbstractReceiverWorker.java:65) at org.mule.work.WorkerContext.run(WorkerContext.java:311) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Herewith attached my java file and config.xml
    via by manish kumar,
  • I want to receive data over TCP connection but i am getting below exception. I am n ot able to connect over TCP , i have tried with Http connection and I am able to receive request. I have attached herewith my config.xml kindly look into this problem. EXCEPTION IS:- + Started app 'DoorwayLine' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ERROR 2015-01-29 16:05:20,122 [[DoorwayLine].tcpconnector.receiver.02] org.mule.exception.DefaultSystemExceptionStrategy: Caught exception in Exception Strategy: ******************************************************************************** Message : Failed to transform from "byte[]" to "Object" Code : MULE_ERROR-109 -------------------------------------------------------------------------------- Exception stack is: 1. invalid stream header: 00426000 (java.io.StreamCorruptedException) java.io.ObjectInputStream:-1 (null) 2. java.io.StreamCorruptedException: invalid stream header: 00426000 (org.apache.commons.lang.SerializationException) org.mule.util.SerializationUtils:89 (null) 3. Failed to transform from "byte[]" to "Object" (org.mule.api.transformer.TransformerException) org.mule.transformer.simple.ByteArrayToSerializable:58 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transformer/TransformerException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.io.StreamCorruptedException: invalid stream header: 00426000 at java.io.ObjectInputStream.readStreamHeader(Unknown Source) at java.io.ObjectInputStream.<init>(Unknown Source) at org.apache.commons.io.input.ClassLoaderObjectInputStream.<init>(ClassLoaderObjectInputStream.java:51) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** java.io.IOException: ******************************************************************************** Message : Failed to transform from "byte[]" to "Object" Code : MULE_ERROR-109 -------------------------------------------------------------------------------- Exception stack is: 1. invalid stream header: 00426000 (java.io.StreamCorruptedException) java.io.ObjectInputStream:-1 (null) 2. java.io.StreamCorruptedException: invalid stream header: 00426000 (org.apache.commons.lang.SerializationException) org.mule.util.SerializationUtils:89 (null) 3. Failed to transform from "byte[]" to "Object" (org.mule.api.transformer.TransformerException) org.mule.transformer.simple.ByteArrayToSerializable:58 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transformer/TransformerException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.io.StreamCorruptedException: invalid stream header: 00426000 at java.io.ObjectInputStream.readStreamHeader(Unknown Source) at java.io.ObjectInputStream.<init>(Unknown Source) at org.apache.commons.io.input.ClassLoaderObjectInputStream.<init>(ClassLoaderObjectInputStream.java:51) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** at org.mule.transport.tcp.protocols.MuleMessageWorker.doRead(MuleMessageWorker.java:76) at org.mule.transport.tcp.protocols.MuleMessageEOFProtocol.read(MuleMessageEOFProtocol.java:36) at org.mule.transport.tcp.TcpMessageReceiver$TcpWorker.getNextMessage(TcpMessageReceiver.java:364) at org.mule.transport.AbstractReceiverResourceWorker.doRun(AbstractReceiverResourceWorker.java:44) at org.mule.transport.AbstractReceiverWorker.run(AbstractReceiverWorker.java:65) at org.mule.work.WorkerContext.run(WorkerContext.java:311) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
    via by manish kumar,
  • Java and action script socket communication
    via Stack Overflow by Amar546
    ,
  • HttpURLConnection with POST data
    via by Unknown author,
    • java.io.StreamCorruptedException: invalid stream header: 00426000 at java.io.ObjectInputStream.readStreamHeader(Unknown Source) at java.io.ObjectInputStream.<init>(Unknown Source) at org.apache.commons.io.input.ClassLoaderObjectInputStream.<init>(ClassLoaderObjectInputStream.java:51)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    48 more bugmates