This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am getting the following excpetion while loading my jsp page.
An exception has occurred in the compiler (1.4.2). Please file a bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.ClassFormatError: com/sun/tools/javac/v8/comp/Gen (Illegal constant pool index)at java.lang.ClassLoader.defineClass0(Native Method)
I have tried very much to find the cause of exception. But I can`t. Please tell me the solution for this exception. I hope my JSP doesn`t contain any errors.
Suresh, The first step is to reproduce the problem. Can you come up with a smaller JSP that gives the error? You'll want to slowly remove code until the error goes away so you can narrow it down to a specific line of the JSP.
hi Jeanne ., Thanks for your immediate response.Now I have resolved the problem.But I did nothing.Last day, I shutdown my system after getting the error and today I have executed again. Now it is working fine. But I am again telling ,I didn`t do any thing. If it is possible ,could you please trace the problem where went wrong.
author & internet detective
I know this question was asked almost 5 years back, but for the benefit of those reading this post.... the solution (restarting the system) really works !
I did not have a JSP page or something as mentioned in the question... but I simply added a server (Tomcat 7.0) configuration to my eclipse workspace. The problem was that the server would not start and would throw:
SEVERE: Begin event threw
error java.lang.ClassFormatError: Illegal constant pool index 0 for method name in class file org/apache/catalina/util/Lifecycle Support
After searching for a solution to this problem, I came across this post and restarted my PC.
It indeed worked fine! By the way, am using jre7
*** If opportunity doesn't knock, build a door !! ***