logo       

Re: Reg: Help!!!: msg#00036

java.enhydra.general

Subject: Re: Reg: Help!!!

Can u send me the code. I will go thru it and reply.
 
regards
saif

Anantha Lakshmi <ananthalakshmi_mca@xxxxxxxxx> wrote:
Respected sir,
I wrote a servlet to create an image, compress
it with the jpeg codec, and return it to the
ServletOutputStream object. Developing and testing it
by going directly to the image URL worked fine. No
problems at all. However, loading several servlets (in
tags) from one page resulted in many exceptions
within resin itself, and one time it crashed the
entire JVM with an exception in native code.
Implementing the SingleThreadModel did not help
the servlet.
Here is the stacktrace...
Exception in thread "tcpConnection-8080-4"
com.caucho.vfs.ClientDisconnectException:
java.net.SocketException:
Connection reset by peer: socket write error
at
com.caucho.vfs.ClientDisconnectException.create(ClientDisconnectExcep

tion.java:83)
at
com.caucho.vfs.SocketStream.write(SocketStream.java:168)

at
com.caucho.vfs.WriteStream.flush(WriteStream.java:328)

at
com.caucho.server.http.ResponseStream.flush(ResponseStream.java:359)

at
com.caucho.vfs.WriteStream.flush(WriteStream.java:331)

at
com.caucho.server.http.QServletOutputStream.flush(QServletOutputStrea

m.java:81)
at
sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native

Metho
d)
at
sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.

java:475)
at
sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.

java:231)
at SurveyBar.doGet(SurveyBar.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:102)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:83)

at
com.caucho.server.http.Invocation.invokeSingleThreadModel(Invocation.

java:315)
at
com.caucho.server.http.Invocation.service(Invocation.java:233)

at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:1

42)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:211

)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:

145)
at
com.caucho.server.TcpConnection.run(TcpConnection.java:139)

at java.lang.Thread.run(Thread.java:484)


Could you please tell me, how to solve this problem.
Kindly expecting your valuable reply.
Very URGENT!!!

Thanking you.
H.Ananthalakshmi.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
Enhydra mailing list
Enhydra@xxxxxxxxxxx
http://www.enhydra.org/mailman/listinfo.cgi/enhydra


saifudeenkhan
984! 1054845 (Mob)


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise