Posted by: peteinman | September 9, 2008

StreamCorrupted Exception

I received the following stack trace whilst doing some JMX development with Aqualogic Service Bus.

Caused by: java.rmi.UnmarshalException: failed to unmarshal class; nested exception
is: invalid type code: 31
     at weblogic.rjvm.ResponseImpl.unmarshalReturn(

Caused by: invalid type code: 31

Turns out that this was a change in ClassLoader.loadClass() handling byte array and you need to add the following system property to the JVM start command.


It is also discussed here Sun Bug

Technorati Tags: ,,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: