Thursday, September 24, 2009

What do you deserve?

"The minute you settle for less than you deserve, you get even less than you settled for."

-- Maureen Dowd

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 weblogic.security.acl.internal.AuthenticatedUser; nested exception is: 
 java.io.StreamCorruptedException: invalid type code: 31]
 at weblogic.management.Helper.getMBeanHomeForName(Helper.java:105)
 at weblogic.management.Helper.getAdminMBeanHome(Helper.java:38)
 at WeblogicMBean.main(WeblogicMBean.java:23)


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.