In Version 1.3 DR1 it's the same. If you have a clean started DB you'll get the 
a stacktrace similar to the first one.
Exception in thread "main" org.jboss.util.NestedRuntimeException: 
InternalDelegate.resetRefCount(). Ref counter not -1 but 0 at fqn: 
/pojo/list/1; - nested throwable: (java.lang.IllegalStateException: 
InternalDelegate.resetRefCount(). Ref counter not -1 but 0 at fqn: /pojo/list/1)
  |     at 
org.jboss.cache.aop.collection.CachedListImpl.remove(CachedListImpl.java:155)
  |     at 
org.jboss.cache.aop.collection.CachedListAbstract.remove(CachedListAbstract.java:74)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at 
org.jboss.cache.aop.collection.CollectionInterceptorUtil.invoke(CollectionInterceptorUtil.java:124)
  |     at 
org.jboss.cache.aop.collection.CachedListInterceptor.invoke(CachedListInterceptor.java:125)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
  |     at AOPClassProxy$0.remove(AOPClassProxy$0.java)
  |     at TestObject.remove(TestObject.java:19)
  |     at Test.main(Test.java:55)
  | Caused by: java.lang.IllegalStateException: 
InternalDelegate.resetRefCount(). Ref counter not -1 but 0 at fqn: /pojo/list/1
  |     at 
org.jboss.cache.aop.InternalDelegate.resetRefCount(InternalDelegate.java:59)
  |     at 
org.jboss.cache.aop.CollectionClassHandler.collectionObjectPut(CollectionClassHandler.java:68)
  |     at 
org.jboss.cache.aop.TreeCacheAopDelegate._putObject(TreeCacheAopDelegate.java:184)
  |     at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:502)
  |     at org.jboss.cache.aop.TreeCacheAop.putObject(TreeCacheAop.java:344)
  |     at 
org.jboss.cache.aop.collection.CachedListImpl.remove(CachedListImpl.java:151)
  |     ... 11 more
  | 
I have played with the Isolationlevel and with the position of the tx.commit(). 
 If the remove isn't in a transaction it works.
Perhaps my code is wrong, but for me it seems ok. It should work even witch a 
"remove-tx"?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926248#3926248

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926248


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to