This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Tomcat and the fly likes tomcat / apache socket error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat / apache socket error" Watch "tomcat / apache socket error" New topic
Author

tomcat / apache socket error

Gail Mikels
Ranch Hand

Joined: May 07, 2001
Posts: 634
I have a web page that takes input from a form and creates an email.
It works great for the first 2 or 3 submissions, but then it hangs. The only error message I can find is in tomcat's apache_log... below.
I'm running on Windows2000 & I know little about servers. It's been suggested that tomcat doesn't run well on this playform.
Any suggestions??
Thanks,
*Gail
2002-02-27 13:58:13 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket
java.net.SocketException: JVM_recv in socket input stream read (code=10004)
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at java.net.SocketInputStream.read(SocketInputStream.java:102)
at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:232)
at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112)
at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:484)


Gail Mikels
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Tomcat runs just fine on Win2000. What JDK are you using?
Gail Mikels
Ranch Hand

Joined: May 07, 2001
Posts: 634
1.3
xana a
Greenhorn

Joined: Sep 24, 2002
Posts: 1
I've a grant problem comunication tomcat4 with apache 1.3.26 and jdk (j2sdk_1_4_0_win)the error is:
2002-09-24 10:39:44 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:105)
at org.apache.catalina.connector.warp.WarpConnection.send(WarpConnection.java:219)
at org.apache.catalina.connector.warp.WarpResponse$Stream.close(WarpResponse.java:301)
at org.apache.catalina.connector.warp.WarpResponse$Stream.finish(WarpResponse.java:311)
at org.apache.catalina.connector.warp.WarpResponse.finishResponse(WarpResponse.java:152)
at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:222)
at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:536)
I need a soon solution, thank you for the help,
Xana
Dave Falwell
Greenhorn

Joined: Apr 16, 2003
Posts: 1
Came across this thread while researching this same socket error.
The way I am causing it (intentionally) is by closing the socket before it's done.
More specifically, I am working on a producer-consumer problem. My producer is a standalone application that posts (http POST) to the consumer. The consumer is a web application (via an HttpURLConneciton) and I am working on a way to time-out the connection in the event of a slow consumer. Right now I am blocking on the consumer, and I am looking to clear the log-jam. For me it is better to retry rather than block and wait.
Long story longer - I get this when I close() the connection in the middle of reading the response (constructing the InputSream)

2002-02-27 13:58:13 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket
java.net.SocketException: JVM_recv in socket input stream read (code=10004)
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at java.net.SocketInputStream.read(SocketInputStream.java:102)
at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:232)
at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112)
at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:484)

 
 
subject: tomcat / apache socket error