What steps will reproduce the problem?
1. my hibernate mapping files include following content
info.xml
...
<class name="Info" table="info">
...
<one-to-one class="Desc" name="desc"/>
</class>
...
desc.xml
...
<class name="Desc" table="desc">
...
<one-to-one class="Info" name="info"/>
</class>
...
2. use Info and Desc
got following exception stack trace:
java.lang.StackOverflowError
at net.spy.SpyObject.<init>(SpyObject.java:21)
at
net.spy.memcached.protocol.BaseOperationImpl.<init>(BaseOperationImpl.java:31)
at
net.spy.memcached.protocol.ascii.OperationImpl.<init>(OperationImpl.java:34)
at
net.spy.memcached.protocol.ascii.BaseGetOpImpl.<init>(BaseGetOpImpl.java:30)
at
net.spy.memcached.protocol.ascii.GetOperationImpl.<init>(GetOperationImpl.java:1
9)
at
net.spy.memcached.protocol.ascii.AsciiOperationFactory.get(AsciiOperationFactory
.java:37)
at net.spy.memcached.MemcachedClient.asyncGet(MemcachedClient.java:644)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:764)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:784)
at
com.googlecode.hibernate.memcached.spymemcached.SpyMemcache.get(SpyMemcache.java
:29)
at
com.googlecode.hibernate.memcached.MemcachedCache.memcacheGet(MemcachedCache.jav
a:124)
at
com.googlecode.hibernate.memcached.MemcachedCache.get(MemcachedCache.java:153)
at org.hibernate.cache.ReadWriteCache.get(ReadWriteCache.java:80)
at
org.hibernate.event.def.DefaultLoadEventListener.loadFromSecondLevelCache(Defaul
tLoadEventListener.java:486)
at
org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener
.java:357)
at
org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.j
ava:139)
at
org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventLis
tener.java:195)
at
org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener
.java:103)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
i'm using hibernate-memcached-1.1.0.jar, memcached-2.1.jar,spy-2.4.jar,and
memcached server is memcached-1.2.7.tar.gz
OS: x86_64 centos5
Original issue reported on code.google.com by hy13449...@gmail.com on 7 May 2009 at 2:49
Original issue reported on code.google.com by
hy13449...@gmail.com
on 7 May 2009 at 2:49