Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connection reset by peer: socket write error

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi all,
Ok the situation is.....
I am currently building a web site using JSP and Javabeans with a Tomcat server. However, whenever, I try to log in to the system I get the following error:
IOException in R(/myfolder+/jsp/login.jsp+null) Connection reset by peer: socket write error.
Can anyone tell me what this means and how do I solve the problem?
Any help at all will be very much appreicated.
Many Thanks,
Rita.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Ok, so I've done a bit of googling and it seems this is a well known, non-fatal 'error'.

What it means is that the client (your browser) has closed the tcp/ip connection between itself and Tomcat, before Tomcat thinks it is done sending data.

Since the images and pages seem to be 100% complete, one could wonder whether or not Tomcat is correct, but putting that aside... the problem is not Tomcat related, so much as it is connection related.

The 'solution' is to simply disable this message. In Tomcat 3.2.x, go to <TOMCAT_HOME>/conf/server.xml and modify the following: Change "INFORMATION" to "WARNING", and that particular message should no longer appear. You will still get all the error stack traces, but none of the 'information' messages.

I haven't found how to set this in Tomcat 4.x, however, I've developed on both Tomcat releases, and I have yet to see this class of message on my Tomcat 4.x output, so perhaps the real default in Tomcat 4.x is 'WARNING'.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I understand by change the INFORMATION TO WARNING you no longer see the verbose information, but what about the connection and the important thing i.e, when you select a button tomcat just waits for some user input on the console and then process the input.
I am facing this situation in sporadic intervals and I am not sure why there is a pause from TOMCAT and what it is waiting for....
I am using JDK 1.3_05 version and Tomcat cat 3.2.
Please let me know a solution to the above...
Thanks,
-Raj
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
huh?

What button where ?
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
In my application I also saw a lot of such "exceptions" and our solution was also not to show it on application console,but rather write it to the log file (it was for Tomcat3.X).
But in our new version we are using Tomcat 4.0 integrated with JBoss (Tomcat is running as JBoss bean) and we once again started to see this exceptions in JBoss/Tomcat window but not with some frequency,now it happens ones in some days.
I am searching for the same solution : or to turn such messages to some log file (just not to see it on the screen) or not to see it at all.
I see this line in JBoss jcml file
<Logger className="org.jboss.web.catalina.Log4jLogger" >verbosityLevel="trace"category="org.jboss.web.localhost.Engine"/>
but I can't find what the another options for "verbosityLevel" attribute.
Do you know what options it has or can other solution be found?
And what does it mean "trace"?
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
log4j is a logging package that defines a number of logging levels. 'trace' is one of those levels, like 'WARN', 'DEBUG', 'ERROR', 'INFO', etc...

As for log4j options, try the log4j website...
http://jakarta.apache.org/log4j/docs/index.html
[ February 16, 2003: Message edited by: Mike Curwen ]
 
Alona Samardin
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Thank you for reply.
I know about log4j and we are using it a lot.
I think "trace" verbosity level it isn't one of standard log4j log level,but rather Catalina's custom level of "org.jboss.web.catalina.Log4jLogger" class.
Amassing,but I can't find any reference for this level in their source.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I think it's a JBoss logging level, not jakarata (Catalina)...

Is it this? http://www.jboss.org/developers/guides/logging.jsp
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi,
I do have the same problem, the tomcat prints lot of error messages like
003-02-12 16:13:11 - Ctx( /chaos-jserv ): IllegalStateException in: R( /chaos-j
erv + /jsp/hrms/standard/start.jsp + null) Current state = FLUSHED, new state =
CODING
We are using tomcat 3.2.3. I found the error happens when u double click a link or button. One way to disable this to disable double click in all forms, but it involves lot of work, since the project is huge and all forms are already developed.
Is there any way to stop the double clicking by putting a javascript at a centralized place and importing in all codes? or server side filters are good..?
Somebody, suggested this problem doesn't occur in tomcat 4 and above.. any idea about this..
thanks & regards,
Raj
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
And with that, we've gone WAY afield of the original post. Let's all start a new thread for new questions, ok?
    Bookmark Topic Watch Topic
  • New Topic