网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

java.net.ConnectException:Coction

时间:2024-10-11 18:59:11

1、我是新建的server,用来启动服务,报错儿:java.net.ConnectException: Connection time颊俄岿髭d out: no further informationnet.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 informationat 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)

2、从详细报错信息上,是Memca罕铞泱殳ch的问题,详细查看项目中配置,并无此项配置,后来发现server中的co荏鱿胫协ntext.xml文件中有:如下配置:<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager" customConverter="cn.cnnic.kryoSerialize.CustomKryoRegistration" lockingMode="none" memcachedNodes="n1:211.212.102.212:11211" requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$" sessionBackupAsync="false" sessionBackupTimeout="1800000" sticky="false" transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"/>context.xml文件的目录如下:

java.net.ConnectException:Coction

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

© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com