aspose file tools*
The moose likes JSP and the fly likes regarding JSP Processing Error --Illegal constant pool index Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "regarding JSP Processing Error --Illegal constant pool index" Watch "regarding JSP Processing Error --Illegal constant pool index" New topic
Author

regarding JSP Processing Error --Illegal constant pool index

suresh sai
Ranch Hand

Joined: Jul 16, 2007
Posts: 62
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30530
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
suresh sai
Ranch Hand

Joined: Jul 16, 2007
Posts: 62
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30530
    
150

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

Joined: Jun 06, 2007
Posts: 2716
    
    6

Maybe you should file a bug, if you have the complete exception report.
So that it can be fixed in future releases.


SCJP, SCWCD.
|Asking Good Questions|
Mandy Singh
Greenhorn

Joined: May 30, 2011
Posts: 23

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


*** If opportunity doesn't knock, build a door !! ***
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding JSP Processing Error --Illegal constant pool index