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 weblogic.security.acl.internal.AuthenticatedUser; nested exception
is: java.io.StreamCorruptedException: invalid type code: 31
     at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:229)
…..

Caused by: java.io.StreamCorruptedException: 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.

-Dsun.lang.ClassLoader.allowArraySyntax=true

It is also discussed here Sun Bug

Technorati Tags: ,,
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

Categories

%d bloggers like this: