File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Apache/Tomcat error:JVM_recv in socket input stream read Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache/Tomcat error:JVM_recv in socket input stream read" Watch "Apache/Tomcat error:JVM_recv in socket input stream read" New topic
Author

Apache/Tomcat error:JVM_recv in socket input stream read

Gail Mikels
Ranch Hand

Joined: May 07, 2001
Posts: 634
I have an app running with Apache & Jakarta-Tomcat on one machine, and on a different server, I have a perl script sending a text file to the first machine at regular intervals. After running "a while" (sometimes a day, sometimes several), the server simply stops responding. There are no exceptions in the Apache or Tomcat Dos windows, but I get the following message in Tomcat's Apache_Log. Haven't had any luck finding the error on the Apache site, or anywhere else.
2002-04-30 19:40:46 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket
java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read
at java.net.SocketInputStream.socketRead(NativeMethod)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
.
.
.
Does anyone have any ideas? I'm pretty new to webapps , in fact this is my first one, so any help is greatly appreciated!!
Thanks!!
*Gail


Gail Mikels
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

'the server stops responding'... Apache web server? Tomcat? the one running your perl script?

Also.. does the perl script send a file simply across FTP, or is it sending a file to your webapplication over HTTP?

I searched the Tomcat bug database. Very few entries on this error, it seems pretty "low level". Google searching came up with the general idea that someone is closing a socket that another process then attempts to read from.

When the server stops responding (assuming you mean Apache/Tomcat) does the whole thing go down? ie: you need to restart apache/tomcat to get it to start responding again? Or is it just that single webapp?
Gail Mikels
Ranch Hand

Joined: May 07, 2001
Posts: 634
Not too clear, was I!?
Ok - the server running the perl scripts is just fine. It just keeps trying to send, regardless if it's successful or not. It uses HTTP.
The problem is with Apache &/or Tomcat - I'm not sure how to tell which one has the problem. When it stops responding, it requires a restart of both Apache & Tomcat, then everything behaves again.
Hope that was more clear. Do you have any ideas?
Many Thanks,
*Gail
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

There was a bug report on nagoya.apache.org about a web connector that would throw this error, crash, and it required a restart of apache and tomcat to get going again.

Can you try to upgrade to a more recent version?

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3509
 
Consider Paul's rocket mass heater.
 
subject: Apache/Tomcat error:JVM_recv in socket input stream read