PDA

Visualizza la versione completa : Java Broken Pipe


damar3
19-11-2003, 14:05
Salve a tutti,
io sto usando:
-----
j2sdk1.4.1_02,
tomcat4.0.6 e
mysql-connector-java-3.0.8-stable-bin.jar
per connettermi a mysql4.0.13
su linux redhat 8.0
-----
e ho riscontrato il seguente errore se chiamo la stessa servlet nello stesso momento da due clienti concorrenti :


java.net.SocketException: Connection reset
at java.net.SocketOutputStream.socketWrite(SocketOutp utStream.java:96)
at java.net.SocketOutputStream.write(SocketOutputStre am.java:136)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.doWrite(RequestHandl er.java:526)
at org.apache.ajp.Ajp13.doWrite(Ajp13.java:399)
at org.apache.ajp.tomcat4.Ajp13OutputStream.write(Ajp 13OutputStream.java:79)
at org.apache.catalina.connector.ResponseBase.flushBu ffer(ResponseBase.java:674)
at org.apache.catalina.connector.HttpResponseBase.flu shBuffer(HttpResponseBase.java:764)
at org.apache.catalina.connector.ResponseFacade.flush Buffer(ResponseFacade.java:219)
at org.apache.catalina.connector.ResponseStream.flush (ResponseStream.java:244)
at org.apache.catalina.connector.ResponseBase.finishR esponse(ResponseBase.java:484)
at org.apache.catalina.connector.HttpResponseBase.fin ishResponse(HttpResponseBase.java:237)
at org.apache.ajp.tomcat4.Ajp13Response.finishRespons e(Ajp13Response.java:191)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp1 3Processor.java:464)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Pro cessor.java:551)
at java.lang.Thread.run(Thread.java:536)
Ajp13Processor[8009][5] process: invoke
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutp utStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStre am.java:136)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandle r.java:501)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at org.apache.ajp.tomcat4.Ajp13Response.finishRespons e(Ajp13Response.java:196)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp1 3Processor.java:464)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Pro cessor.java:551)
at java.lang.Thread.run(Thread.java:536)

Non ho idea di dove possa essere il problema, qualcuno mi potrebbe dare un consiglio?

Nosferatu
21-11-2003, 15:04
Potresti specificare a grandi linee cosa fa questa servlet?
Sembrerebbe un problema di mancata sincronizzazione.

damar3
21-11-2003, 19:33
E' la servlet che gestisce il login dell'utente. Comunque ho questo errore anche se provo a chiamare qualche altra servlet nello stesso momento.

Vorrei evitare di usare la sincronizzazione per non creare code.

Loading