当前位置: 代码迷 >> J2EE >> java.util.concurrent.TimeoutException: Timed out(1000)
  详细解决方案

java.util.concurrent.TimeoutException: Timed out(1000)

热度:1431   发布时间:2016-04-22 02:09:34.0
TimeoutException: Timed out(1000) waiting for operation
我再电脑上装了memcached,客户端用的是xmemcached。安装完之后用main方法测试set跟get都没有问题,但是在spring配置后运行起来就会包错误:
java.util.concurrent.TimeoutException: Timed out(1000) waiting for operation
at net.rubyeye.xmemcached.XMemcachedClient.latchWait(XMemcachedClient.java:2528)
at net.rubyeye.xmemcached.XMemcachedClient.fetch0(XMemcachedClient.java:574)
at net.rubyeye.xmemcached.XMemcachedClient.get0(XMemcachedClient.java:971)
at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:929)
at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:940)
at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:962)
at javacommon.cache.MemcachedManager.get(MemcachedManager.java:23)
at javacommon.ibatis.sqlmap.engine.cache.MemcachedController.putObject(MemcachedController.java:111)
....................
这个该怎么办啊,各位大侠帮忙解决下哈,谢谢哈!
附(spring配置):
<bean id="memcachedClient" class="net.rubyeye.xmemcached.utils.XMemcachedClientFactoryBean" destroy-method="shutdown">
  <property name="servers">
  <value>ip:port</value>
  </property>
</bean>

------解决方案--------------------
version...
  相关解决方案