'Java.lang.ClassFormatError Invalid Code Length' Failure When Deploying EJB Module with Jrockit (Doc ID 1517883.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 10.3.4 to 10.3.6
Information in this document applies to any platform.

Symptoms

 A  J2EE application contains EJB modules.
 When deploying into 10.3.4 WLS which uses Jrockit, it fails with the following error :
 

***** ASSERTION FAILED *****[ Unable to load class com.digit.service.CreateBudgetMvtServiceImpl_5bhfdi_CreateBudgetMvtServiceImpl ]
  at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:469)
  at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
  at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:518)
  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
  at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
  at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:47)
  at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:614)
  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
  at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
 
  ..
  Caused by: java.lang.ClassFormatError:
  com/digit/service/CreateBudgetMvtServiceImpl_5bhfdi_CreateBudgetMvtServiceImpl : invalid Code length at 90433
 
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
  at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
  at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

 
This problem also occurs against 10.3.6 WLS version.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms