-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Memcached client bug?
PostPosted: Wed Nov 22, 2006 8:51 am 
Newbie

Joined: Wed Nov 22, 2006 8:42 am
Posts: 2
Hibernate version:
1.2.0 beta 2

I'm using the win32 version of Memcached (http://jehiah.com/projects/memcached-win32/) version 1.2.0-rc1b.

I am able to create a connection, I can see this on the memcached server (verbose mode).

The problem arises when I try to set an object in the memcached server. I get an "CLIENT_ERROR bad command line format". The key used for the object is created by NHibernate (persister class I believe); "Order@NHibernateProc.CTestOrder, NHibernateAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null#1015809".

I tried to reproduce this error by connecting with the memcached dotnet client myself. I was able to successfully set an object in the cache (stored). However when i tried the key as described above i got the same error. The solution was to remove all spaces from the key;
Order@NHibernateProc.CTestOrder,NHibernateAssembly,Version=1.0.0.0,Culture=neutral, PublicKeyToken=null#1015809". Then i was able to set the object successfully...

Is this a known problem or am i doing something wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 8:59 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
It's a known problem which Ayende Rahien recently fixed in SVN. The fix will be part of the next release.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 11:05 am 
Newbie

Joined: Wed Nov 22, 2006 8:42 am
Posts: 2
Thank you Sergey for your quick response!

I'll wait patiently for the next release then...:) *Hint hint


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.