bluegitter / xmemcached

Automatically exported from code.google.com/p/xmemcached
0 stars 0 forks source link

调用xmemcachedClient.getStatsByItem("cachedump 8 1");异常 #286

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1,使用xmemcached-1.4.3版本。
2,使用如下代码 
try {
            Map<InetSocketAddress, Map<String, String>>  map=xmemcachedClient.getStatsByItem("cachedump 8 1");
            logger.info(map.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
3,报错
net.rubyeye.xmemcached.exception.MemcachedDecodeException: Decode error,session 
will be closed,key=stats,server returns=ITEM 
callerBasicInfoCache05230d1cb22d4c5db0a479b0fcd3261b [297 b; 1397525819 s]
    at net.rubyeye.xmemcached.command.Command.decodeError(Command.java:267)
    at net.rubyeye.xmemcached.command.text.TextStatsCommand.decode(TextStatsCommand.java:90)
    at net.rubyeye.xmemcached.codec.MemcachedDecoder.decode0(MemcachedDecoder.java:61)
    at net.rubyeye.xmemcached.codec.MemcachedDecoder.decode(MemcachedDecoder.java:56)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.decode(NioTCPSession.java:297)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.decodeAndDispatch(NioTCPSession.java:237)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.readFromBuffer(NioTCPSession.java:207)
    at com.google.code.yanf4j.nio.impl.AbstractNioSession.onRead(AbstractNioSession.java:196)
    at com.google.code.yanf4j.nio.impl.AbstractNioSession.onEvent(AbstractNioSession.java:341)
    at com.google.code.yanf4j.nio.impl.SocketChannelController.dispatchReadEvent(SocketChannelController.java:56)
    at com.google.code.yanf4j.nio.impl.NioController.onRead(NioController.java:157)
    at com.google.code.yanf4j.nio.impl.Reactor.dispatchEvent(Reactor.java:295)
    at com.google.code.yanf4j.nio.impl.Reactor.run(Reactor.java:142)
[Xmemcached-Reactor-2] ERROR com.google.code.yanf4j.core.impl.AbstractSession - 
Decode error
net.rubyeye.xmemcached.exception.MemcachedDecodeException: Decode error,session 
will be closed,key=stats,server returns=ITEM 
callerBasicInfoCache05230d1cb22d4c5db0a479b0fcd3261b [297 b; 1397525819 s]
    at net.rubyeye.xmemcached.command.Command.decodeError(Command.java:267)
    at net.rubyeye.xmemcached.command.text.TextStatsCommand.decode(TextStatsCommand.java:90)
    at net.rubyeye.xmemcached.codec.MemcachedDecoder.decode0(MemcachedDecoder.java:61)
    at net.rubyeye.xmemcached.codec.MemcachedDecoder.decode(MemcachedDecoder.java:56)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.decode(NioTCPSession.java:297)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.decodeAndDispatch(NioTCPSession.java:237)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.readFromBuffer(NioTCPSession.java:207)
    at com.google.code.yanf4j.nio.impl.AbstractNioSession.onRead(AbstractNioSession.java:196)
    at com.google.code.yanf4j.nio.impl.AbstractNioSession.onEvent(AbstractNioSession.java:341)
    at com.google.code.yanf4j.nio.impl.SocketChannelController.dispatchReadEvent(SocketChannelController.java:56)
    at com.google.code.yanf4j.nio.impl.NioController.onRead(NioController.java:157)
    at com.google.code.yanf4j.nio.impl.Reactor.dispatchEvent(Reactor.java:295)
    at com.google.code.yanf4j.nio.impl.Reactor.run(Reactor.java:142)
net.rubyeye.xmemcached.exception.MemcachedDecodeException: Decode error,session 
will be closed,key=stats,server returns=ITEM 
callerBasicInfoCache05230d1cb22d4c5db0a479b0fcd3261b [297 b; 1397525819 s]
    at net.rubyeye.xmemcached.command.Command.decodeError(Command.java:267)
    at net.rubyeye.xmemcached.command.text.TextStatsCommand.decode(TextStatsCommand.java:90)
    at net.rubyeye.xmemcached.codec.MemcachedDecoder.decode0(MemcachedDecoder.java:61)
    at net.rubyeye.xmemcached.codec.MemcachedDecoder.decode(MemcachedDecoder.java:56)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.decode(NioTCPSession.java:297)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.decodeAndDispatch(NioTCPSession.java:237)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.readFromBuffer(NioTCPSession.java:207)
    at com.google.code.yanf4j.nio.impl.AbstractNioSession.onRead(AbstractNioSession.java:196)
    at com.google.code.yanf4j.nio.impl.AbstractNioSession.onEvent(AbstractNioSession.java:341)
    at com.google.code.yanf4j.nio.impl.SocketChannelController.dispatchReadEvent(SocketChannelController.java:56)
    at com.google.code.yanf4j.nio.impl.NioController.onRead(NioController.java:157)
    at com.google.code.yanf4j.nio.impl.Reactor.dispatchEvent(Reactor.java:295)
    at com.google.code.yanf4j.nio.impl.Reactor.run(Reactor.java:142)

4,修改  net.rubyeye.xmemcached.command.text.TextStatsCommand
 85行 增加 line.startsWith("ITEM") 后,则调用成功,希望以后版本能更新。

Original issue reported on code.google.com by machao9e...@gmail.com on 15 Apr 2014 at 8:25

GoogleCodeExporter commented 9 years ago
谢谢反馈,已修复,明天发布。

Original comment by killme2...@gmail.com on 26 Apr 2014 at 12:16

GoogleCodeExporter commented 9 years ago
v2.0.0已发布

Original comment by killme2...@gmail.com on 28 Apr 2014 at 8:11