You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Lorenz Froihofer <Lo...@gmx.at> on 2004/05/06 19:02:33 UTC
ConcurrentModificationException resolved
Hi,
I'm sorry, but it seems like it was my own fault. It's gone now.
The reason was likely a separate user interface task of the Java swing
implementation that I did not recognize.
-- Lorenz.
-------- Original Message --------
Subject: ConcurrentModificationException
Date: Thu, 06 May 2004 16:19:51 +0200
From: Lorenz Froihofer <Lo...@gmx.at>
To: ojb-user@db.apache.org
Hi,
I'm using ojb 1.0rc6 and have an entity that contains a list of other
entities. For this list of other entities I use proxy="true" in the
repository <collection-descriptor>.
Now if I try to access the list of entities for instance by trying to
get an iterator, I get a ConcurrentModificationException.
Does anyone experience the same behaviour? Stacktrace follows:
----------------------------------------------------
java.util.ConcurrentModificationException
at java.util.SubList.checkForComodification(AbstractList.java:854)
at java.util.SubList.listIterator(AbstractList.java:784)
at java.util.AbstractList.listIterator(AbstractList.java:348)
at java.util.SubList.iterator(AbstractList.java:780)
at
org.apache.ojb.broker.accesslayer.CollectionPrefetcher.associateBatched(CollectionPrefetcher.java:135)
at
org.apache.ojb.broker.accesslayer.BasePrefetcher.prefetchRelationship(BasePrefetcher.java:111)
at
org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener.prefetch(QueryReferenceBroker.java:798)
at
org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListener.beforeLoading(QueryReferenceBroker.java:855)
at
org.apache.ojb.broker.accesslayer.CollectionProxy.beforeLoading(CollectionProxy.java:134)
at
org.apache.ojb.broker.accesslayer.CollectionProxy.getData(CollectionProxy.java:361)
at
org.apache.ojb.broker.accesslayer.ListProxy.getListData(ListProxy.java:140)
at
org.apache.ojb.broker.accesslayer.ListProxy.get(ListProxy.java:71)
...
--------------------------------------------------------
-- Lorenz.
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
RE: ConcurrentModificationException resolved
Posted by mike jackson <mj...@cdi-hq.com>.
FYI, you can also get this when using Oracle if your transaction crosses an
extent boundary (something like that, I don't remember exactly) and you're
using serialized transactions.
--mikej
-=------
mike jackson
mjackson@cdi-hq.com
> -----Original Message-----
> From: Lorenz Froihofer [mailto:Lorenz.F@gmx.at]
> Sent: Thursday, May 06, 2004 9:03 AM
> To: ojb-user@db.apache.org
> Subject: ConcurrentModificationException resolved
>
>
> Hi,
>
> I'm sorry, but it seems like it was my own fault. It's gone
> now. The reason was likely a separate user interface task of
> the Java swing
> implementation that I did not recognize.
>
> -- Lorenz.
>
> -------- Original Message --------
> Subject: ConcurrentModificationException
> Date: Thu, 06 May 2004 16:19:51 +0200
> From: Lorenz Froihofer <Lo...@gmx.at>
> To: ojb-user@db.apache.org
>
> Hi,
>
> I'm using ojb 1.0rc6 and have an entity that contains a list
> of other entities. For this list of other entities I use
> proxy="true" in the repository <collection-descriptor>.
>
> Now if I try to access the list of entities for instance by
> trying to get an iterator, I get a ConcurrentModificationException.
>
> Does anyone experience the same behaviour? Stacktrace follows:
>
> ----------------------------------------------------
> java.util.ConcurrentModificationException
> at
> java.util.SubList.checkForComodification(AbstractList.java:854)
> at java.util.SubList.listIterator(AbstractList.java:784)
> at java.util.AbstractList.listIterator(AbstractList.java:348)
> at java.util.SubList.iterator(AbstractList.java:780)
> at
> org.apache.ojb.broker.accesslayer.CollectionPrefetcher.associa
> teBatched(CollectionPrefetcher.java:135)
> at
> org.apache.ojb.broker.accesslayer.BasePrefetcher.prefetchRelat
> ionship(BasePrefetcher.java:111)
> at
> org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingL
> istener.prefetch(QueryReferenceBroker.java:798)
> at
> org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionPr
> oxyListener.beforeLoading(QueryReferenceBroker.java:855)
> at
> org.apache.ojb.broker.accesslayer.CollectionProxy.beforeLoadin
> g(CollectionProxy.java:134)
> at
> org.apache.ojb.broker.accesslayer.CollectionProxy.getData(Coll
> ectionProxy.java:361)
> at
> org.apache.ojb.broker.accesslayer.ListProxy.getListData(ListPr
> oxy.java:140)
> at
> org.apache.ojb.broker.accesslayer.ListProxy.get(ListProxy.java:71)
> ...
> --------------------------------------------------------
>
> -- Lorenz.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org