Hi all,

when I delete a random Object from a Map that is inside of an POJO I get the 
following exection.

Exception in thread "main" java.lang.reflect.InvocationTargetException
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:585)
  |     at 
org.jboss.cache.aop.collection.CollectionInterceptorUtil.invoke(CollectionInterceptorUtil.java:122)
  |     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 
de.lgf.labconn.anf.model.persistance.DayNode.removePatientfromArray(DayNode.java:74)
  |     at 
de.lgf.labconn.anf.model.persistance.DayNode.removePatient(DayNode.java:82)
  |     at 
de.lgf.labconn.anf.tree.node.anforderungen.WarteListenPatient.dispose(WarteListenPatient.java:39)
  |     at 
de.lgf.labconn.anf.tree.node.anforderungen.AbstractAnforderungsTeeNode.remove(AbstractAnforderungsTeeNode.java:108)
  |     at 
de.lgf.labconn.anf.plugin.standart.action.DeletePatAction.handleEvent(DeletePatAction.java:21)
  |     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
  |     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
  |     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
  |     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
  |     at de.lgf.labconn.anf.Main.main(Main.java:47)
  | Caused by: org.jboss.util.NestedRuntimeException: 
InternalDelegate.resetRefCount(). Ref counter not -1 but 0 at fqn: 
/warteliste/children/0; - nested throwable: (java.lang.IllegalStateException: 
InternalDelegate.resetRefCount(). Ref counter not -1 but 0 at fqn: 
/warteliste/children/0)
  |     at 
org.jboss.cache.aop.collection.CachedListImpl.remove(CachedListImpl.java:155)
  |     at 
org.jboss.cache.aop.collection.CachedListAbstract.remove(CachedListAbstract.java:74)
  |     ... 18 more
  | Caused by: java.lang.IllegalStateException: 
InternalDelegate.resetRefCount(). Ref counter not -1 but 0 at fqn: 
/warteliste/children/0
  |     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:503)
  |     at org.jboss.cache.aop.TreeCacheAop.putObject(TreeCacheAop.java:345)
  |     at 
org.jboss.cache.aop.collection.CachedListImpl.remove(CachedListImpl.java:151)
  |     ... 19 more


I don't know what I'm doing wrong? Objects inside the Map are just Strings and 
when I'm removing the last Object added everything works fine. It only appers 
when you try to delete a random Object except for the last one added. 

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

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


-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to