title: java.io.StreamCorruptedException: invalid stream header: 48656C6C
body: <p>I am using netty client server for communication . The message is received successfully as byte array . When I convert byte array to ObjectInputStream I get the exception</p>
  
  <pre><code>java.io.StreamCorruptedException: invalid stream header: 48656C6C
  at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
  at java.io.ObjectInputStream.&lt;init&gt;(ObjectInputStream.java:299)
  at nettyClientServer2.PongHandler.messageReceived(PongHandler.java:99)
  at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
  at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
  at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
  at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
  at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>This is how I convert..</p>
  
  <pre><code>byte[] ppBytes=pptmp.status;
  ObjectInputStream input = null;
  input = new ObjectInputStream(new ByteArrayInputStream(ppBytes));
  </code></pre>