java.net.BindException: Cannot assign requested address

tomcat启动后报错

2017-6-7 17:23:49 org.apache.catalina.core.StandardServer await

严重: StandardServer.await: create[localhost:8005]:

java.net.BindException: Cannot assign requested address

at java.net.PlainSocketImpl.socketBind(Native Method)

at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)

at java.net.ServerSocket.bind(ServerSocket.java:319)

at java.net.ServerSocket.<init>(ServerSocket.java:185)

at org.apache.catalina.core.StandardServer.await(StandardServer.java:422)

at org.apache.catalina.startup.Catalina.await(Catalina.java:707)

at org.apache.catalina.startup.Catalina.start(Catalina.java:653)

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.start(Bootstrap.java:303)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)

2017-6-7 17:23:49 org.apache.coyote.AbstractProtocolHandler pause

信息: Pausing ProtocolHandler ["http-bio-8080"]

2017-6-7 17:06:51 org.apache.coyote.AbstractProtocolHandler pause

信息: Pausing ProtocolHandler ["ajp-bio-8009"]

2017-6-7 17:23:57 org.apache.catalina.core.StandardService stopInternal

信息: Stopping service Catalina

2017-6-7 17:23:57 org.apache.coyote.AbstractProtocolHandler stop

信息: Stopping ProtocolHandler ["http-bio-8080"]

2017-6-7 17:23:57 org.apache.coyote.AbstractProtocolHandler stop

信息: Stopping ProtocolHandler ["ajp-bio-8009"]

原因是:hosts中的localhost对应的IP地址非本机地址

修改正确重启tomcat即正常

10.1.170.16   localhost.localdomain localhost

 

时间: 2024-10-12 15:34:45

java.net.BindException: Cannot assign requested address的相关文章

Caused by: java.net.BindException: Cannot assign requested address: JVM_Bind问题

Caused by: java.net.BindException: Cannot assign requested address: JVM_Bind更改这个问题可以从两方面着手:一:查看ip和端口是否正确(大多数都是这个问题引起的)二:查看端口是否被占用了

Tomcat启动时报StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address: JVM_Bind

问题描述: 今天一早,所有淡定下来后准备启动本地Tomcat,突然出现一堆错误: 严重: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.

Tomcat启动报错:严重: StandardServer.await: create[8005] java.net.BindException: Cannot assign requested address

org.apache.catalina.core.StandardServer await        SEVERE: StandardServer.await: create[8005]:        java.net.BindException: Cannot assign requested address java.net.BindException: Cannot assign requested address        at java.net.PlainSocketImpl

tomcat java.net.BindException: Cannot assign requested address 解决方法

今天线上TOMCAT启动时遇到了下比较麻烦的问题,错误如下: 21-Apr-2016 15:14:19.077 SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:8015]: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.sock

Tomcat启动异常 java.net.BindException: Cannot assign requested address: JVM_Bind

从Apache官网下载的tomcat7,在MyEclipse中启动时抛出如下异常: 严重: StandardServer.await: create[localhost:8005]: java.net.BindException: Cannot assign requested address: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Plain

Problem binding to [yarn.com:8031] java.net.BindException: Cannot assign requested address

at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1467)Caused by: java.net.BindException: Problem binding to [yarn.com:8031] java.net.BindException: Cannot assign requested address; For more details see: 是由于虚拟

在linux上用jmeter压测时出现很多异常java.net.NoRouteToHostException: Cannot assign requested address.

今天压力测试时, 刚开始出现了很多异常, 都是 java.net.NoRouteToHostException: Cannot assign requested address. 经网上查资料, 是由于linux分配的客户端连接端口用尽, 无法建立socket连接所致,虽然socket正常关闭,但是端口不是立即释放, 而是处于TIME_WAIT状态, 默认等待60s后才释放. 查看linux支持的客户端连接端口范围, 也就是28232个端口: cat /proc/sys/net/ipv4/ip_

WebService - [Debug] java.net.BindException: Can&#39;t assign requested address

Connected to the target VM, address: '127.0.0.1:57803', transport: 'socket' Exception in thread "main" com.sun.xml.internal.ws.server.ServerRtException: Server Runtime Error: java.net.BindException: Can't assign requested address at com.sun.xml.

使用Java进行udp-demo编程时碰到的consumer和producter无法连接并报出“java.net.SocketException: Can&#39;t assign requested address”问题

在用Java编写了一个udp生产者和消费者的demo时,在生产者启动的时候会抛出异常 java.net.SocketException: Can't assign requested address at java.net.PlainDatagramSocketImpl.join(Native Method) at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178) at