webservice中发布服务端遇到的异常
来源:互联网 发布:计算 编辑:程序博客网 时间:2024/06/05 01:12
在写webservice的过程中,运行服务端的程序,遇到了一些异常,下面贴出这些异常信息,以及我的解决方法:
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.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 moreCaused 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
原因与解决方法:端口已经被占用,换个端口即可。
0 0
- webservice中发布服务端遇到的异常
- 【webservice】如何发布axis2的webservice服务端
- 【webservice】818开发webservice过程中遇到的异常
- webservice(一) 发布简单的服务端
- Axis WebService服务端发布
- webservice中服务端applicationContext.xml中配置发布服务
- Webservice发布遇到的问题及解决办法
- IIS发布WebService遇到的坑
- WebService发布接口遇到的问题一
- CXF SOAP WebService服务端遇到的一些报错
- cxf-webservice客户端与服务端的注意事项及常见异常
- Android开发中调用Spring CXF整合发布的WebService接口为什么抛出异常错误?
- 记一次在JAVA中客户端使用axis调用webservice服务端出现的异常:Unmarshalling Error: For input string: ""
- WebService服务端、客户端编码,以及发布、访问
- 开发中遇到的异常
- 项目中遇到的异常
- c#中WebService的发布与调用
- spring中发布基于cxf的webservice
- ECMAScript 6 入门 个人笔记(二)
- JS 之访谈时间戳
- Android Touch事件原理加实例分析
- python下的bitset
- jsp登录验证码功能实现
- webservice中发布服务端遇到的异常
- 不带表头节点的单链表编程(2)
- HDU 5818 Joint Stacks(左偏树)
- 模板-----------线段树
- Struts2学习-4
- 用服务器端和客户端来实现聊天功能
- Android NDk环境配置
- 用R语言进行复杂网络可视化
- Android T-Toast统一管理类