ClassFormatError: Illegal local variable table in method
Issue
The war file is failing to deploy with the following error:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."test.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "test.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at
...
...
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class foo.bar.FooBarwith ClassLoader ModuleClassLoader for Module "deployment.test-api.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [jboss-as-server-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
...
...
Caused by: java.lang.ClassFormatError: Illegal local variable table start_pc 109 in method foo.bar.FooBar.createFoo(Lfoo/bar/Test;)Ljavax/ws/rs/core/Response;
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_65]
at java.lang.Class.privateGetDeclaredFields(Class.java:2436) [rt.jar:1.7.0_65]
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- JDK 1.7
- JDK 1.8
- CA Wily Agent Enabled
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.