[phenomenon]There is the error occurs sometimes when our web application system is transferred into so low-speed the net entironmentjava.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.http.ChunkedInputStream.fastRead(Unknown Source)
at sun.net.www.http.ChunkedInputStream.read(Unknown Source)
......
......Our web application system is based Apache server. There is an client applet to get data from service before client-printing every time.
But when getting data sometimes, there is that error.[perplexed]If you have a look at that exception stack information, you could see it is a problem relative JDK, not relative business application. Maybe is it a bug of JAVA?
Who can teach me the following questions:
1, Whether is it a bug of JAVA?
2, When is this error occurred?
3, How to avoid it, or if it is occurred, how to resolve this error?Hope for your answer! Expecting!简单的用中文描述,就是在高速网络状况下没有问题,极低速网络状况下出现那个exception,什么原因?这是否是java的bug?那个exception通常在什么时候会出现?如果出现了,如何解决?请高手指教!

解决方案 »

  1.   

    <parameter>
        <name>maxWait</name>
        <value>3000</value>
       </parameter>你这个我也没遇到过,只是说一下我的想法.错了就只当我没来这里!哈哈....是不是你的maxWait的时间设的太短了
      

  2.   

    但是这个系统与数据库无关。只是applet通过http访问服务器端组建,服务器端构造一个数据对象(与数据库无关)后写入response,applet接受到数据后进行处理。这个exception是在第一次使用applet时出现的。因为第一次使用时会下载一些jar到客户端,所以速度应该是慢的。而且以后各次使用都没有这个问题。所以怀疑应该就是与网络速度有必然联系的。但是没有一种强有力的说服依据,也没有解决方案。