Thursday, September 10, 2009

Weblogic 9.2 and Java 6 runtime

When we try to execute and Weblogic J2EE code in Java 6 Runtime using weblogic 9.2 libraries in a small sample code, we get the following exception :

[Root exception is java.rmi.UnmarshalException: failed to unmarshal class; nested exception is: invalid type code: 31]
 at WeblogicMBean.main(

After some search on google, I found the following link which exactly explains the problem :
Serialization error when client app on JDK1.6 access WebLogic on JDK1.5

I tried the suggested solution by starting JVM with the arguments -> -Dsun.lang.ClassLoader.allowArraySyntax=true
and it worked perfectly fine.

1 comment:

Anonymous said...

Hey , where do you add jvm arguments , while running an application in eclipse.
Please respond asap.