File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding JSP Processing Error --Illegal constant pool index

 
suresh sai
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all.,

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.

Thanks in Advance
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33697
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
suresh sai
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thank u
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33697
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by suresh sai:
If it is possible ,could you please trace the problem where went wrong.

I don't know that anyone is going to be able to trace a problem that no longer exists. It's possible that something cached in memory was messing things up.
 
Amit Ghorpade
Bartender
Posts: 2851
10
Fedora Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you should file a bug, if you have the complete exception report.
So that it can be fixed in future releases.
 
Mandy Singh
Greenhorn
Posts: 23
Eclipse IDE Java Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic