webservice中发布服务端遇到的异常
2016-11-07 19:33
916 查看
在写webservice的过程中,运行服务端的程序,遇到了一些异常,下面贴出这些异常信息,以及我的解决方法:
1、异常信息1
原因与解决方法:因为我是在公司使用的代理上网,去掉代理即可。。
2、异常信息2
原因与解决方法:端口已经被占用,换个端口即可。
1、异常信息1
Exception in thread "main" com.sun.xml.internal.ws.server.ServerRtException: 服务器运行时错误: java.io.IOException: Unable to establish loopback connection at com.sun.xml.internal.ws.transport.http 4000 .server.ServerMgr.createContext(Unknown Source) at com.sun.xml.internal.ws.transport.http.server.HttpEndpoint.publish(Unknown Source) at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(Unknown Source) at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(Unknown Source) at javax.xml.ws.Endpoint.publish(Unknown Source) at com.wzuden.service.ServiceHello.main(ServiceHello.java:17) Caused by: java.io.IOException: Unable to establish loopback connection at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source) at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.nio.ch.PipeImpl.<init>(Unknown Source) at sun.nio.ch.SelectorProviderImpl.openPipe(Unknown Source) at java.nio.channels.Pipe.open(Unknown Source) at sun.nio.ch.WindowsSelectorImpl.<init>(Unknown Source) at sun.nio.ch.WindowsSelectorProvider.openSelector(Unknown Source) at java.nio.channels.Selector.open(Unknown Source) at sun.net.httpserver.ServerImpl.<init>(Unknown Source) at sun.net.httpserver.HttpServerImpl.<init>(Unknown Source) at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(Unknown Source) at com.sun.net.httpserver.HttpServer.create(Unknown Source) ... 6 more Caused by: java.net.ConnectException: Connection refused: connect at sun.nio.ch.Net.connect0(Native Method) at sun.nio.ch.Net.connect(Unknown Source) at sun.nio.ch.Net.connect(Unknown Source) at sun.nio.ch.SocketChannelImpl.connect(Unknown Source) at java.nio.channels.SocketChannel.open(Unknown Source) at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(Unknown Source) ... 19 more
原因与解决方法:因为我是在公司使用的代理上网,去掉代理即可。。
2、异常信息2
Exception in thread "main" com.sun.xml.internal.ws.server.ServerRtException: 服务器运行时错误: java.net.BindException: Address already in use: bind at com.sun.xml.internal.ws.transport.http.server.ServerMgr.createContext(Unknown Source) at com.sun.xml.internal.ws.transport.http.server.HttpEndpoint.publish(Unknown Source) at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(Unknown Source) at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(Unknown Source) at javax.xml.ws.Endpoint.publish(Unknown Source) at com.wzuden.service.ServiceHello.main(ServiceHello.java:17) Caused by: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Unknown Source) at sun.nio.ch.Net.bind(Unknown Source) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.net.httpserver.ServerImpl.<init>(Unknown Source) at sun.net.httpserver.HttpServerImpl.<init>(Unknown Source) at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(Unknown Source) at com.sun.net.httpserver.HttpServer.create(Unknown Source) ... 6 more
原因与解决方法:端口已经被占用,换个端口即可。
相关文章推荐
- 在与sap系统集成时遇到的问题.sap系统发布一webservice,java(xfire)作为客户端调用,调用时抛出如下异常: Wrong Content-Type and empty HTTP-Body received: ("HTTP Code 20
- Tomcat发布Maven项目遇到的种种异常
- JBoss发布webservice 遇到 endpoint url不能解析
- WEbService服务端-用Axis客户端测试遇到的问题Exception in thread "main" AxisFault
- 【webservice】818开发webservice过程中遇到的异常
- 服务端使用Axis2-1.6.3发布webservice服务、客户端使用Axis1.4实现调用
- 用JAX-WS开发WebService服务端并用tomcat发布Web服务
- IIS发布WebService遇到的坑
- Maven搭建webService (二) 创建服务端---使用web方式发布服务
- 服务端利用Axis2.x发布WebService,客户端Flex4访问
- webservice中服务端applicationContext.xml中配置发布服务
- 用AXIS2发布WebService的方法 使用eclipse插件生成服务端和客户端
- CXF SOAP WebService服务端遇到的一些报错
- Android通过ksoap2传递复杂数据类型,服务端为CXF发布的webservice,亲手写的代码
- webservice服务端发布与调用 JAX-WS cxf axis2
- 【webservice】如何发布axis2的webservice服务端
- (转载)webservice 客户端,axis调用cxf 发布的webservices服务端
- Tomcat发布Maven项目遇到的种种异常(转:http://blog.csdn.net/zhang6622056/article/details/9772951)
- webservice服务端发布与调用 JAX-WS cxf axis2
- 使用Xfire发布WebService接口遇到的问题: