Thanks Rupert, It worked.
David On Fri, Mar 16, 2012 at 11:53 AM, Rupert Westenthaler < [email protected]> wrote: > Hi David > > I think the problem is line 390 of the RefactorEnhancementEngine > > It is no good idea to parse the same object to the removeAll method as > it will iterate over itself while removing entires what will cause the > reported java.util.ConcurrentModificationException > > mGraph.removeAll(mGraph); > > if you change this th > > mGraph.clear(); > > I expect that everything works as expected > > best > Rupert > > On Fri, Mar 16, 2012 at 10:42 AM, Alessandro Adamou <[email protected]> > wrote: > > Hi David, > > > > this looks more like an indexed graph issue. > > > > Off the top of my head it looks like something that could be solved by > > making the iterator methods synchronized, but I guess Rupert knows better > > esp. on the performance impact. > > > > Alessandro > > > > > > > > On 3/16/12 10:12 AM, David Riccitelli wrote: > >> > >> Dears, > >> > >> I get the following error when running the Refactor Engine, after it > >> completes its work: > >> 16.03.2012 09:03:29.927 *INFO* [Thread-20] > >> org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJob > Execution > >> of 'seo_refactoring' for ContentItem > >> urn:content-item-sha1-2273ce74a6bc49a59a1e4b1c711d6dc63a8b0cd5 completed > >> (chain: default, node: org.apache.clerezza.rdf.core.BNode@2e561b02, > >> optional false) > >> *16.03.2012 09:03:29.928 *ERROR* [Thread-20] > >> org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler > >> Unexpected Exception while processing ContentItem > >> <urn:content-item-sha1-2273ce74a6bc49a59a1e4b1c711d6dc63a8b0cd5> with > >> EnhancementJobManager: class > >> org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl > >> java.util.ConcurrentModificationException* > >> at > >> java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1100) > >> at java.util.TreeMap$KeyIterator.next(TreeMap.java:1154) > >> at > >> > >> > org.apache.stanbol.commons.indexedgraph.IndexedTripleCollection$1.next(IndexedTripleCollection.java:163) > >> at > >> > >> > org.apache.stanbol.commons.indexedgraph.IndexedTripleCollection$1.next(IndexedTripleCollection.java:154) > >> at > >> > >> > org.apache.clerezza.rdf.core.impl.AbstractTripleCollection$1.next(AbstractTripleCollection.java:83) > >> *(...)* > >> > >> BR, > >> David Riccitelli > >> > >> > >> > ******************************************************************************** > >> InsideOut10 s.r.l. > >> P.IVA: IT-11381771002 > >> Fax: +39 0110708239 > >> --- > >> LinkedIn: http://it.linkedin.com/in/riccitelli > >> Twitter: ziodave > >> --- > >> Layar Partner > >> Network< > http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1 > > > >> > >> > ******************************************************************************** > >> > > > > > > -- > > M.Sc. Alessandro Adamou > > > > Alma Mater Studiorum - Università di Bologna > > Department of Computer Science > > Mura Anteo Zamboni 7, 40127 Bologna - Italy > > > > Semantic Technology Laboratory (STLab) > > Institute for Cognitive Science and Technology (ISTC) > > National Research Council (CNR) > > Via Nomentana 56, 00161 Rome - Italy > > > > > > "I will give you everything, so long as you do not demand anything." > > (Ettore Petrolini, 1930) > > > > Not sent from my iSnobTechDevice > > > > > > -- > | Rupert Westenthaler [email protected] > | Bodenlehenstraße 11 ++43-699-11108907 > | A-5500 Bischofshofen > -- David Riccitelli ******************************************************************************** InsideOut10 s.r.l. P.IVA: IT-11381771002 Fax: +39 0110708239 --- LinkedIn: http://it.linkedin.com/in/riccitelli Twitter: ziodave --- Layar Partner Network<http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1> ********************************************************************************
