-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
memcached-client-java_3.0.1 exception #53
Comments
Could you give me your configuration for the pool and memcached? for the 1st exception, perhaps you can setSanitizeKeys(true) to avoid special character issue, acctually, it's true by default. for the other issues, are they frequently appeared or randomly? Xingen Wang ------------------ Original ------------------ Subject: [Memcached-Java-Client] memcached-client-java_3.0.1 exception (#53) Hi, recently, when using memcached-client-java-3.01, I encountered some exceptions as follows£º Exception two: Exception three: When using version 2.5.3, all the best! Now don't know the reason, please help me!
|
The pool configuration like this: Other issues appeared randomly, average 200~300 per day! |
Since for the special character issue, please use mClient.setSanitizeKeys(true);or else, if space or tab exists in keys, will get format error. Space is an import separator in memcached protocol.------------------Xingen Wang Other issues appeared randomly, average 200~300 per day!
|
did you upgrade your memcached server in the same time? |
No, using memcached v1.4.13 all the time. now the lastest version is v1.4.15, need upgrade ? ----did you upgrade your memcached server in the same time? |
no, I just want to confirm. |
How many threads were calling the memcached client? You are recommended to configure same connection pool size, too much big connection pool size will cause concurrent issue. Therefore, if the connection pool size is not big, downward the max conn num. |
the second and third exception should not be related to the key, I want to know the reason or how to fix them. |
Yes, I am talking about the last errors. Do you upgrade or downgrade your jvm? |
No, my jvm info |
if you are using incr/decr storeCounter commands, you should setPrimitiveAsString. No, my jvm info
|
I have found out the reason, this question has appearred in issue31, #31. The issue can not affect system's performance and function, but it is not a good behavior. I konw the reason due to compatible problem, wish the best to fix it. |
Good to hear that.------------------Xingen Wang
|
I have a question, when I use PHP to add data to the Memcache, Java cannot read error! Data format into string! After viewing a MemCachedClient source code, found to be set flags, Java is based on the stored value types for flags, for example: public static final int MARKER_STRING = 32; and PHP is 0, so the question in this place, throw an exception |
Hi, recently, when using memcached-client-java-3.01, I encountered some exceptions as follows:
Exception one:
31065671 [http-10.108.72.170-8080-exec-7] ERROR com.whalin.MemCached.MemCachedClient - ++++ exception thrown while trying to get object from cache for key: _22_channel_id=800000_query=|婴|乐|岛_sort=1_state=0_0
31065671 [http-10.108.72.170-8080-exec-7] ERROR com.whalin.MemCached.MemCachedClient - For input string: "command"
java.lang.NumberFormatException: For input string: "command"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.parseInt(Integer.java:499)
at com.schooner.MemCached.AscIIClient.get(Unknown Source)
at com.schooner.MemCached.AscIIClient.get(Unknown Source)
at com.whalin.MemCached.MemCachedClient.get(Unknown Source)
Exception two:
22153145 [http-10.108.72.170-8080-exec-6] ERROR com.whalin.MemCached.MemCachedClient - Broken pipe
java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:69)
at sun.nio.ch.IOUtil.write(IOUtil.java:26)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
at com.schooner.MemCached.SchoonerSockIOPool$TCPSockIO.flush(Unknown Source)
at com.schooner.MemCached.AscIIClient.get(Unknown Source)
at com.schooner.MemCached.AscIIClient.get(Unknown Source)
at com.whalin.MemCached.MemCachedClient.get(Unknown Source)
Exception three:
22152935 [ async update multicache] ERROR com.whalin.MemCached.MemCachedClient - ++++ exception thrown while writing bytes to server on set
22152935 [ async update multicache] ERROR com.whalin.MemCached.MemCachedClient - null
java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Buffer.java:472)
at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:219)
at com.schooner.MemCached.SockInputStream.read(Unknown Source)
at com.schooner.MemCached.SockInputStream.getLine(Unknown Source)
at com.schooner.MemCached.AscIIClient.set(Unknown Source)
at com.schooner.MemCached.AscIIClient.set(Unknown Source)
at com.whalin.MemCached.MemCachedClient.set(Unknown Source)
When using version 2.5.3, all the best! Now don't know the reason, please help me!
The text was updated successfully, but these errors were encountered: