Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat / apache socket error

 
Gail Schlentz
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat runs just fine on Win2000. What JDK are you using?
 
Gail Schlentz
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.3
 
xana a
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic