Arguments can't fit into locals in class file

Solution Unverified - Updated -

Issue

  • Our application is failing to run in EAP 6.2.0, there is a very strange 'ClassFormatError' which we do not know what it is and how to handle it.

Caused by: java.lang.ClassFormatError: Arguments can't fit into locals in class file org/example/class_$$_javaassist_0
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_51]
at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_51]
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [:1.7.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:182) [javassist-3.18.1-GA-redhat-1.jar:3.18.1-GA-redhat-1]
at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164) [javassist-3.18.1-GA-redhat-1.jar:3.18.1-GA-redhat-1]

Environment

  • JBoss Enterprise Application Platform (EAP) 6.x
  • JBoss Enterprise Application Platform (EAP) 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content