java.lang.ClassFormatError: javax/servlet/ServletRequest (Illegal constant pool index)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by Amit Jain, 1 year ago
javax/servlet/ServletRequest (Illegal constant pool index)
via Coderanch by Amit Jain, 1 year ago
javax/servlet/ServletRequest (Illegal constant pool index)
via Coderanch by George Secillano, 1 year ago
com/ibm/ejs/container/EJSWrapper (Illegal UTF8 string in constant pool)
via eclipse.org by Unknown author, 2 years ago
via Oracle Community by 843793, 1 year ago
... (Local variable name has bad constant pool index)
via Oracle Community by 843798, 1 year ago
AppendToElement (Illegal constant pool index)
java.lang.ClassFormatError: javax/servlet/ServletRequest (Illegal constant pool index)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
at sun.rmi.rmic.iiop.ClassPathLoader.findClass(ClassPathLoader.java:34)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at sun.rmi.rmic.iiop.CompoundType.loadClass(CompoundType.java:314)
at sun.rmi.rmic.iiop.Type.initClass(Type.java:964)
at sun.rmi.rmic.iiop.Type.setRepositoryID(Type.java:981)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.