title: java.io.StreamCorruptedException: unexpected end of block data - when communicating between defferent JVMs
body: <p>I have a EJB client and a EJB2 server which runs on a <code>JBoss 4 server</code>. It was working fine for same JVM version(1.6). Then I upgrade client <strong>JVM to 1.7(but compiler version is 1.6)</strong> while keeping server JVM as the same(1.6). 
  <code>java.io.StreamCorruptedException: unexpected end of block data</code> error occurs in client side if server method returns an object or throws exeption. But server side functionality execute without any error. This happens for all methods calls in this server module. But there are some other server modules which works without any exception. Any idea on this issue?</p>
  
  <p>Edit:-
  If return type is newly created class it works fine</p>