错误:Unrecognized Windows Sockets error: 87: create 解决方法

这几天发现我的maven仓库坏了,不停的循环报错:
wrapperp | server socket creation failed. (参数错误。 (0x57)) jvm 1 | java.net.SocketException: Unrecognized Windows Sockets error: 87: create
项目开发都依赖着仓库,捉急,百度谷歌搜半天没有找打办法,问题貌似都集中出现在win7 64位系统上, 我的电脑也是WIN7 64位。问题来了,原来为什么没有出现问题呢,公司里的电脑也是好的。 会不会是JDK坏了,重新安装JDK,不行,再安装1.7版本,还是不行,看样子不是JDK问题。 试着运行Tomcat,居然也无法运行也报这个错,不过这次错误报的更加详细:
java.net.SocketException: Unrecognized Windows Sockets error: 87: create at java.net.ServerSocket.createImpl(ServerSocket.java:264) at java.net.ServerSocket.getImpl(ServerSocket.java:214) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.(ServerSocket.java:194) at java.net.ServerSocket.(ServerSocket.java:150) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:633) at org.apache.catalina.startup.Catalina.load(Catalina.java:658) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
估计是问题出现在JDK和操作系统的网络交互上,再次搜索,找到问题的解决方法:
1. Open the command prompt 打开命令行
2. Type in “netsh winsock reset” (without the quotes) 输入“netsh winsock reset”(引号去掉)
3. After resetting winsock, Restart your computer. 重启计算机
问题解决后才想起来,这几天电脑右下角网络连接一致有个运动的小圆圈在上面,因为不影响上网,所以一直没管,估计是安装Httpdebugger Pro后,用360修复网络导致的。