Hi, i was happy somebody answered but when I saw the links .... all are already visited.
Noone of the links describe something similar (with cookies). I cannot upgrade jdk since customer is reticent to such things.
Main Topics
Browse All TopicsHi,
I have a web application that is working since 1.5 years. I had 2 times a problem with 2 clients complaining that they get in their browser the following message:
java.lang.IllegalStateExce
at java.nio.charset.CharsetEn
at java.nio.charset.CharsetEn
at sun.nio.cs.StreamEncoder$C
at sun.nio.cs.StreamEncoder$C
at sun.nio.cs.StreamEncoder.c
at java.io.OutputStreamWriter
at java.io.BufferedWriter.clo
at java.io.PrintWriter.close(
at at.paradine.filters.Compre
at at.paradine.filters.Compre
at org.apache.catalina.core.A
I advised them to delete the cokies and all worked again after that.
Any ideea how:
1. to reconstruct the problem on my developement environment?
or
2. how to solve so that the error will not apprear again?
I use tomcat 4.1 on the production server.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
How do you know for certain the cookie deletion is actually what did the trick?
How could the information in the cookies influence the app?
Can you regen their cookie information and reproduce the problem?
Did you try generating the exception like some of the articles suggest?
Did you try removing the compression filter?
Have these errors happened recently?
If you have only had this problem occur two times in as many years.. is it really worth the trouble?
Doesn't the infrequency seem to suggest some sort of user behavior issue? Like the hold down refresh bug?
Or do you only have two users on the system?
>How do you know for certain the cookie deletion is actually what did the trick?
Yes. The problem happened for 2 clients. Every time the trick was to delete the cookies.
>How could the information in the cookies influence the app?
Normally not. Only session cookie maybe
>Can you regen their cookie information and reproduce the problem?
Yes. I backed up the cookie but i added the cokie to my IE and the err is not reproduceable
>Did you try generating the exception like some of the articles suggest?
I tried everythink but i was not able to reproduce
>Did you try removing the compression filter?
this is not acceptable. I need compresion filter
>Have these errors happened recently?
first time the err apeared about 6 months ago. Next time ... today
>If you have only had this problem occur two times in as many years.. is it really worth the trouble?
Yes, worth .... i have a blocker in my bugzilla :(
>Doesn't the infrequency seem to suggest some sort of user behavior issue? Like the hold down refresh bug?
I'm not sure
>Or do you only have two users on the system?
I have some tousents of users
okay so deleting the cookie just forced the user to get a new session then? Are the cookies persistent? If not, then closing and opening the browser should achieve the same effect. Was the user's session still alive when you tried to reproduce by copying the cookie contents?
If you were using an apache (or other) webservers in front of tomcat you wouldn't need the compression filter..
Business Accounts
Answer for Membership
by: matthewdflemingPosted on 2005-09-13 at 09:30:16ID: 14873293
The links below suggest that the problem is either in tomcat itself or the jdk. Have you tried upgrading tomcat to the latest version? Have you upgraded the jdk? You might not be able to do either of the above so if not..
ugzilla/sh ow_bug.cgi ?id=19002
chive/serv let/ReadMs g?msgId=19 6175& listN ame=tomcat -user
nforum/vie wthread?th read=2943
abase/view _bug.do?bu g_id=50054 26
m/tomcat-d ev@jakarta .apache.or g/ msg24120 .html
Here is an example of a user clicking refresh a bunch and causing this to appear
http://issues.apache.org/b
Here is a link that shows how to reproduce this error in a servlet:
http://www.servlets.com/ar
Here is an article suggesting the removal of the CompressionFilter (scroll through the messages)
http://www.mvnforum.com/mv
This looks like something similiar to what you are experiencing..
http://bugs.sun.com/bugdat
I also saw this on the tomcat pages:
http://www.mail-archive.co