功能类似的两个网页,在A页面没有丝毫的问题,在B页面就出现如下错误!
求助!
  
本来是都好用的,貌似我执行了下 netsh winsock reset 然后重启了下就杯具了!
  
运行环境:
64位机器 + jdk1.7 32位 + tomcat6 32位
因为项目要用到一个32位的dll,所以只能选用32位的jdk
  
十一月 07, 2013 10:31:31 上午 org.apache.catalina.core.StandardServer await
严重: StandardServer.await: accept:  
java.net.SocketException: socket closed
     at java.net.DualStackPlainSocketImpl.accept0(Native Method)
     at java.net.DualStackPlainSocketImpl.socketAccept(DualStackPlainSocketImpl.java:131)
     at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
     at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:198)
     at java.net.ServerSocket.implAccept(ServerSocket.java:530)
     at java.net.ServerSocket.accept(ServerSocket.java:498)
     at org.apache.catalina.core.StandardServer.await(StandardServer.java:431)
     at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
     at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
十一月 07, 2013 10:31:31 上午 org.apache.tomcat.util.net.AprEndpoint$Acceptor run
严重: Socket accept failed
org.apache.tomcat.jni.Error: 730004: ???·?????×÷±??? WSACancelBlockingCall ??÷
     at org.apache.tomcat.jni.Socket.accept(Native Method)
     at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1328)
  
十一月 07, 2013 10:31:31 上午 org.apache.tomcat.util.net.AprEndpoint$Acceptor run
严重: Socket accept failed
org.apache.tomcat.jni.Error: 730093: ??ó??ò??е÷?? WSAStartup???ò?? WSAStartup ?
     at org.apache.tomcat.jni.Socket.accept(Native Method)
     at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1328)
十一月 07, 2013 10:31:31 上午 org.apache.tomcat.util.net.AprEndpoint$Acceptor run
严重: Socket accept failed
org.apache.tomcat.jni.Error: 730004: ???·?????×÷±??? WSACancelBlockingCall ??÷
     at org.apache.tomcat.jni.Socket.accept(Native Method)
     at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1328)
十一月 07, 2013 10:31:31 上午 org.apache.tomcat.util.net.AprEndpoint$Acceptor run
严重: Socket accept failed
org.apache.tomcat.jni.Error: 730093: ??ó??ò??е÷?? WSAStartup???ò?? WSAStartup ?
     at org.apache.tomcat.jni.Socket.accept(Native Method)
     at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1328)
十一月 07, 2013 10:31:31 上午 org.apache.coyote.http11.Http11AprProtocol pause
信息: Pausing Coyote HTTP/1.1 on http-8080
十一月 07, 2013 10:31:31 上午 org.apache.tomcat.util.net.AprEndpoint$Acceptor run
严重: Socket accept failed
org.apache.tomcat.jni.Error: 730093: ??ó??ò??е÷?? WSAStartup???ò?? WSAStartup ?
     at org.apache.tomcat.jni.Socket.accept(Native Method)
     at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1328)
十一月 07, 2013 10:31:31 上午 org.apache.coyote.ajp.AjpAprProtocol pause
信息: Pausing Coyote AJP/1.3 on ajp-8009
十一月 07, 2013 10:31:32 上午 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
十一月 07, 2013 10:31:32 上午 org.apache.catalina.core.StandardWrapper unload
信息: Waiting for 1 instance(s) to be deallocated
十一月 07, 2013 10:31:33 上午 org.apache.catalina.core.StandardWrapper unload
信息: Waiting for 1 instance(s) to be deallocated
十一月 07, 2013 10:31:34 上午 org.apache.catalina.core.StandardWrapper unload
信息: Waiting for 1 instance(s) to be deallocated
十一月 07, 2013 10:31:34 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/grid] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
十一月 07, 2013 10:31:34 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/grid] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
十一月 07, 2013 10:31:34 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/grid] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1f6292b]) and a value of type [com.opensymphony.xwork2.ActionContext] (value [com.opensymphony.xwork2.ActionContext@8f016]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
十一月 07, 2013 10:31:34 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/grid] created a ThreadLocal with key of type [com.sun.jna.Native$3] (value [com.sun.jna.Native$3@ca71eb]) and a value of type [java.lang.Integer] (value [0]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
十一月 07, 2013 10:31:34 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/grid] created a ThreadLocal with key of type [com.microsoft.sqlserver.jdbc.ActivityCorrelator$1] (value [com.microsoft.sqlserver.jdbc.ActivityCorrelator$1@fd04f0]) and a value of type [com.microsoft.sqlserver.jdbc.ActivityId] (value [9dbc6a47-fec6-4d0a-b8ef-670816b0dfb2-210]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
十一月 07, 2013 10:31:34 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/grid] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@14f3d95]) and a value of type [org.apache.struts2.dispatcher.Dispatcher] (value [org.apache.struts2.dispatcher.Dispatcher@1544072]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
十一月 07, 2013 10:31:34 上午 com.microsoft.sqlserver.jdbc.AuthenticationJNI <clinit>
警告: Failed to load the sqljdbc_auth.dll cause : no sqljdbc_auth in java.library.path
十一月 07, 2013 10:31:34 上午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextDestroyed()
十一月 07, 2013 10:31:34 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextDestroyed()
十一月 07, 2013 10:31:34 上午 org.apache.coyote.http11.Http11AprProtocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8080
十一月 07, 2013 10:31:34 上午 org.apache.coyote.ajp.AjpAprProtocol destroy
信息: Stopping Coyote AJP/1.3 on ajp-8009
ERROR: transport error 202: send failed: Successful WSAStartup not yet performed
ERROR: transport error 202: recv error: Software caused connection abort tomcatjsp tomcatjsp

解决方案 »

  1.   

    【socket closed】和【ERROR: transport error 202: recv error: Software caused connection abort】错误报告,一般情况下是客户端那边写完流后,就立即关闭了socket。服务器端这边还没读完,所以就报错了,你可以让客户端那边写完对象后,等服务器端回一个状态给客户端。客户端再关闭流。
      

  2.   

    这里怎么一堆乱码?严重: Socket accept failed
    org.apache.tomcat.jni.Error: 730004: ???·?????×÷±??? WSACancelBlockingCall ??÷
         at org.apache.tomcat.jni.Socket.accept(Native Method)
         at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1328)
      
    十一月 07, 2013 10:31:31 上午 org.apache.tomcat.util.net.AprEndpoint$Acceptor run
    严重: Socket accept failed
    org.apache.tomcat.jni.Error: 730093: ??ó??ò??е÷?? WSAStartup???ò?? WSAStartup ?
         at org.apache.tomcat.jni.Socket.accept(Native Method)
         at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1328)
    十一月 07, 2013 10:31:31 上午 org.apache.tomcat.util.net.AprEndpoint$Acceptor run
    严重: Socket accept failed
    org.apache.tomcat.jni.Error: 730004: ???·?????×÷±??? WSACancelBlockingCall ??÷
         at org.apache.tomcat.jni.Socket.accept(Native Method)
         at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1328)
    十一月 07, 2013 10:31:31 上午 org.apache.tomcat.util.net.AprEndpoint$Acceptor run
    严重: Socket accept failed
    org.apache.tomcat.jni.Error: 730093: ??ó??ò??е÷?? WSAStartup???ò?? WSAStartup ?
         at org.apache.tomcat.jni.Socket.accept(Native Method)
         at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1328)
    十一月 07, 2013 10:31:31 上午 org.apache.coyote.http11.Http11AprProtocol pause
    信息: Pausing Coyote HTTP/1.1 on http-8080
    十一月 07, 2013 10:31:31 上午 org.apache.tomcat.util.net.AprEndpoint$Acceptor run
    严重: Socket accept failed
    org.apache.tomcat.jni.Error: 730093: ??ó??ò??е÷?? WSAStartup???ò?? WSAStartup ?
      

  3.   

    貌似明白了,我的网页是ajax从数据库查询值然后显示在页面上
    服务端是这样写的
    HttpServletResponse resp = ServletActionContext.getResponse();

    resp.setContentType("application/json; charset=utf-8");

    resp.setHeader("pragma","no-cache");
    resp.setHeader("cache-control","no-cache");
    PrintWriter out = null;
    try
    {
    out = resp.getWriter();

    out.println(result);
    }
    catch (Exception ex) 
    {
    ex.printStackTrace();
    }
    finally
    {
    if(out != null)
    {
    try
    {
    out.flush();
    out.close();
    }
    catch (Exception ex) 
    {
    ex.printStackTrace();
    }
    }
    }
     
    }
    应该是服务器发送完数据,客户端这边没有读完才对吧。
    大牛有没有说反?