Re: Big problems with NodeTreeMap
Leo Mekenkamp <[email protected]> Wed, 06 Jul 2005 22:19:31 +0200
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <1120681171.9405.2.camel@jupiter> |
On Tue, 2005-07-05 at 10:20 +0200, Thomas Dingler wrote: > Hi, > > I used NodeTreeMap in my database and after huge usage of these, > errors come up: > > If I try to copy the data to a HashMap: > > java.lang.ClassCastException > at > org.ozoneDB.collections._NodeTreeMap_OzoneNodeImpl_Proxy.equals > (_NodeTreeMap_OzoneNodeImpl_Proxy.java:417) > at org.ozoneDB.collections._BaseTreeMap_TreeIterator.hasNext > (_BaseTreeMap_TreeIterator.java:137) > at java.util.HashMap.putAllForCreate(HashMap.java:423) > > > If I try to access the entrySet().iterator().next(): > > > java.lang.ClassCastException > at > org.ozoneDB.collections._NodeTreeMap_OzoneNodeImpl_Proxy.equals > (_NodeTreeMap_OzoneNodeImpl_Proxy.java:417) > at org.ozoneDB.collections._BaseTreeMap_TreeIterator.hasNext > (_BaseTreeMap_TreeIterator.java:137) > > > It seems, that the nodes of the map "lost" their ozone object of the > next node, because the class cast expections are pointing to my > stored ozone objects. # > So I think the tree nodes are using a wrong object id and so a tree > node points not to an other tree node, but to a "normal" ozone object. Hmmm. The tree nodes have no knowledge of object ids; they more or less behave ozone-agnostic. > The error occurs sometimes, not reproducable for me, but only when I > use large NodeTreeMaps. > > Should I submit a bug report? Yes please, preferably with code that always reproduces the problem. Cheers, Leo ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click