web Services中出现的异常解决方法
来源:互联网 发布:私有云软件 编辑:程序博客网 时间:2024/05/16 05:27
异常:
Exception in thread "main" com.sun.xml.internal.ws.server.ServerRtException: Server Runtime Error: java.net.BindException: Cannot assign requested address: bind
at com.sun.xml.internal.ws.transport.http.server.ServerMgr.createContext(ServerMgr.java:102)
at com.sun.xml.internal.ws.transport.http.server.HttpEndpoint.publish(HttpEndpoint.java:63)
at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:171)
at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:113)
at javax.xml.ws.Endpoint.publish(Endpoint.java:240)
at com.webservice.FBWeb.ServerTest.main(ServerTest.java:16)
Caused by: java.net.BindException: Cannot assign requested address: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:444)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:100)
at sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:50)
at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:35)
at com.sun.net.httpserver.HttpServer.create(HttpServer.java:129)
at com.sun.xml.internal.ws.transport.http.server.ServerMgr.createContext(ServerMgr.java:84)
... 5 more
是服务器运行时错误:java.net.bindexception:不能分配请求的地址:绑
解决方法: 检查下端口是否占用,或者该地址是否已经绑定过一次.或是把绑定的ip设为0.0.0.0
再设置一下端口号
- web Services中出现的异常解决方法
- jedis 中出现ArrayIndexOutOfBoundsException异常的解决方法
- Web项目中使用java2word出现异常 解决方法
- web.config文件中出现特殊字符的解决方法
- web项目出现的异常
- Matlab中使用xlswrite函数时出现服务器出现异常的解决方法
- Matlab中使用xlswrite函数时出现服务器出现异常的解决方法
- java中常出现的异常及解决方法
- dnw出现未处理的异常解决方法、、
- 使用JDBC出现NoClassDefFoundError异常的解决方法
- android签名打包出现异常的解决方法。
- launchctl list status 出现异常的解决方法
- “在 System.Threading.ThreadAbortException 中第一次偶然出现的‘mscorlib.dll’类型的异常”的解决方法
- Web Services 中 Web Method 的使用小结(一)
- Web Services 中 Web Method 的使用小结(二)
- MyEclipse中Web Project与Web Services Project的区别
- 当freemarker中EL表达式的值为空时出现异常的解决方法
- C#中WebService针对Oracle的事务并发出现异常解决方法
- 发布.ipa到app store 详尽的步骤说明
- 深度学习 vs. 大数据:神经网络权值的版权属于谁?
- Android 对话框AlertDialog,PopupWindow使用大全
- java动态代理机制
- nc uap后台获取前台数据的方法
- web Services中出现的异常解决方法
- Java简单的UDP通讯例子
- centos7 快速安装 mariadb(mysql)
- Android按返回键退出程序但不销毁,程序后台运行,同QQ退出处理方式
- 知识普及:Team Leader 的职责范围
- ios 监听app从后台恢复到前台
- Git 常用命令速查
- 单例模式
- tomcat 启动 严重:Error listenerStart Remember that ordinal parameters are 1-based!