Exception in thread "pool-1-thread-1" java.lang.Error: java.net.SocketException: A system call received a parameter that is not valid.
        at sun.nio.ch.Net.localAddress(Net.java:157)
        at sun.nio.ch.SocketChannelImpl.localAddress(SocketChannelImpl.java:430)
        at sun.nio.ch.SocketChannelImpl.toString(SocketChannelImpl.java:832)
        at sun.net.httpserver.HttpConnection.close(HttpConnection.java:103)
        at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:544)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:736)
Caused by: java.net.SocketException: A system call received a parameter that is not valid.
        at sun.nio.ch.Net.localInetAddress(Native Method)
        at sun.nio.ch.Net.localAddress(Net.java:154)
        ... 7 more发生上面这样的Exception,大家有见过没?
webservice在windows下使用sun jdk1.6自带的开发,部署在AIX下面(ibm jdk6_64),每次客户端请求之后后台都会输出这个exception,但不影响程序的正常使用,不知道怎么解决这个问题?请教大家?谢谢!

解决方案 »

  1.   


    @WebService(name = "TestWebServices", targetNamespace = "http://web.test.com", serviceName = "TestWebServices")
    @SOAPBinding(style = SOAPBinding.Style.RPC)
    public class TestWebServices {    @WebMethod(operationName = "sayHello", action = "sayHello", exclude = false)
        @WebResult(name = "retrunWord")
        public String sayHello(@WebParam(name = "userName") String name) {
            return "Hello " + name + "!";
        }
    }
    [/code]
      

  2.   

    @WebService(name = "TestWebServices", targetNamespace = "http://web.test.com", serviceName = "TestWebServices")
    @SOAPBinding(style = SOAPBinding.Style.RPC)
    public class TestWebServices {    @WebMethod(operationName = "sayHello", action = "sayHello", exclude = false)
        @WebResult(name = "retrunWord")
        public String sayHello(@WebParam(name = "userName") String name) {
            return "Hello " + name + "!";
        }
    }
    [/code]
    //wsimport -d ./bin -s ./src -p com.test.web.client  http://172.17.252.74:8089/hello?wsdl
    //wsgen -cp ./bin -r ./wsdl -s ./src -d ./bin -wsdl com.test.web.TestWebServices