您的位置首页生活百科

java.net.ConnectException:Coction

java.net.ConnectException:Coction

的有关信息介绍如下:

java.net.ConnectException:Coction

一个已有项目,以前从来没有问题,但是新建server,启动tomcat时,报错儿:

java.net.ConnectException: Connection timed out: no further information;

问题出在哪儿呢?

我是新建的server,用来启动服务,报错儿:java.net.ConnectException: Connection timed out: no further information

net.spy.memcached.MemcachedConnection: Reconnecting due to failure to connect to {QA sa=/211.212.102.212:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

java.net.ConnectException: Connection timed out: no further information;

java.net.ConnectException: Connection timed out: no further information

at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)

at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)

at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:407)

at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:275)

at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:2030)

从详细报错信息上,是Memcach的问题,详细查看项目中配置,并无此项配置,后来发现server中的context.xml文件中有:如下配置:

context.xml文件的目录如下:

这里把上述context.xml文件中关于 memach的配置项删掉即可。