• Post Reply Bookmark Topic Watch Topic
  • New Topic

Failed to unmarshal class - Exception

 
PNS Subramanian
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am getting a exception such as "failed to unmarshal class <className>..nested exception is java.io.StreamCorruptedException".
Am trying to access an EJB (Unix system) from my local system(Windows). However, this exception occurs only for a specific state - positive flow.

What actually does StreamCorruptedException mean - the API defines it as "Thrown when control information that was read from an object stream violates internal consistency checks." Is it anything to do with Serialization - the data in the returned object is Serializable.
 
Mudi Appu
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not a Serialization issue.
Keep same JDK version in server and client.
Put same set of classes too.
 
PNS Subramanian
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firstly, thanks for your response.
I've ensured that the jdk versions(1.4.2) are the same in both windows and unix systems. As i have stated previously, this StreamCorruptedException occurs only for the positive case of the input data. Besides other methods that transfer objects from server to client as InputStream dont seem to be affected.
 
Mudi Appu
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If that so, make sure to followings
1.Class path settings and library files (jar file) should be identical in both environments (client/server)
2.Order of the library files in your class path should be identical.
3.Application that you have deployed in application server and the libraries in your client environment should be identical.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!