I have a EJB client and a EJB2 server which runs on a JBoss 4 server
. It was working fine for same JVM version(1.6). Then I upgrade client JVM to 1.7(but compiler version is 1.6) while keeping server JVM as the same(1.6).
java.io.StreamCorruptedException: unexpected end of block data
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?
Edit:- If return type is newly created class it works fine