Solved

How do i handle Illegealstateexception

Posted on 2002-07-24
7
235 Views
Last Modified: 2013-11-24
Hello All,
     I got a web application, in which there are different menus. (The menus are constructed using the gif images embedded a html file and this html file is included in all the jsp's) .Now if the user click on say the first option in the menu (in the jsp), it inturn goes to a servlet and contacts the appropriate class file for getting data's for that jsp page. It takes certain time to get the datas back to the page.

     In the mean time if the user clicks on the 2nd option in the menu i get an Illegealstateexception on the server's console and the whole server slows down because of this and i am currently shutting down the server to get rid of the problem.

   Can any one help me to solve the problem, its very urgent.

   I am using jsp,servlets and Tomcat 3.2.3 for building my applications.


V. Ram
0
Comment
Question by:V_Ram
  • 4
  • 3
7 Comments
 
LVL 18

Expert Comment

by:bobbit31
ID: 7174425
can you post the stacktrace?
0
 

Author Comment

by:V_Ram
ID: 7174474
Hello bobbit31,
  This is what i get in my tomcat console.

IllegalStateException in: R( /mn + /jsp/Company.jsp + null) Current state = FLUSHED, new state = CODING

Thanks,
V. Ram.
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 7174585
from http://www.apachelabs.org/tomcat-user/200203.mbox/%3CHFEAJGDFPPNOMHMMIKEDMEDNCDAA.andy.eastham@gliant.com%3E

> > Seriously:  You using JDK 1.4?  We found that TC 3.2.3 with JDK 1.4 was
> > giving us a recursive IllegalStateException which locked up the server
> > and eventually fell over.
> >
> > Reason:  Any cancelled or closed HTTP request would apparently cause
> > this problem.  Seems that this causes the output stream to be closed and
> > under JDK 1.4 any attempt to write to it causes an
> > IllegalStateException.
> >
> > Closer investigation showed that the error handling in 3.2.3 was fairly
> > junky, (lots of empty exception handlers, hopefully addressed in 3.3/4.0
> > series) and it tries to handle by passing it to the error servlet, which
> > tries to write out the error, which gives an IllegalStateException,
> > which redirects to the error servlet, etc.
> >
> > Solution:  TC 4.01 does not exhibit this behaviour, so we upgraded.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 18

Accepted Solution

by:
bobbit31 earned 50 total points
ID: 7174592
i'd suggest downgrading to jdk1.3.1 if you are using jdk1.4
0
 

Author Comment

by:V_Ram
ID: 7187049
Hi bobbit31 ,
    Your solution worked. I tried with Tomcat 4.0.3 and now i found no IllegealStateException.

Thanks,
V. Ramkumar.

0
 
LVL 18

Expert Comment

by:bobbit31
ID: 7188899
> Your solution worked. I tried with Tomcat 4.0.3 and now i found no IllegealStateException.

so why the 'B'?
0
 

Author Comment

by:V_Ram
ID: 7189619
Hello bobbit31,
   What did You mean by "so why the 'B'? ". I don't get it.

Thanks,
V. Ram.


0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scoresSpecial  challenge 13 42
Eclipse Neon and jdk 1.8.0 11 72
base64 decode encode 12 100
ArrayIndexOutOfBoundException 9 39
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now