You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by David Riccitelli <da...@insideout.io> on 2012/03/16 10:12:36 UTC

ConcurrentModificationException when running default chain with Refactor Engine

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>
********************************************************************************

Re: ConcurrentModificationException when running default chain with Refactor Engine

Posted by David Riccitelli <da...@insideout.io>.
With this setting *org.apache.stanbol.enhancer.engines.refactor.append.graphs
*set to *true*, it works. That means that the Refactor Engine results are
going to be appended to the graph.

Instead I woud prefer to set this option to *false*, i.e. the Refactor
Engine is going to clear the previous results, as I only need to transfer
the Refactor Engine results.

I believe that this "clear operation" of the existing triples is raising
the issue in the context of the chains?

BR
David

On Fri, Mar 16, 2012 at 11:33 AM, David Riccitelli <da...@insideout.io>wrote:

> Sure,
>
> I'm also retesting changing the setting *
> org.apache.stanbol.enhancer.engines.refactor.append.graphs* from *false*to
> *true*.
>
> Full strack-trace:
> 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)
>         at
> org.apache.clerezza.rdf.core.impl.AbstractTripleCollection$1.next(AbstractTripleCollection.java:72)
>        at
> org.apache.clerezza.rdf.core.access.LockingIterator.next(LockingIterator.java:57)
>         at
> org.apache.clerezza.rdf.core.access.LockingIterator.next(LockingIterator.java:31)
>         at
> org.apache.clerezza.rdf.core.impl.AbstractTripleCollection.removeAll(AbstractTripleCollection.java:145)
>         at
> org.apache.clerezza.rdf.core.access.LockableMGraphWrapper.removeAll(LockableMGraphWrapper.java:198)
>         at
> org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine.computeEnhancements(RefactorEnhancementEngine.java:390)
>         at
> org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler.processEvent(EnhancementJobHandler.java:228)
>         at
> org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler.handleEvent(EnhancementJobHandler.java:167)
>         at
> org.apache.felix.eventadmin.impl.tasks.HandlerTaskImpl.execute(HandlerTaskImpl.java:88)
>         at
> org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:221)
>         at
> org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:110)
>        at
> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Thread.java:662)
> 16.03.2012 09:03:29.929 *INFO* [688788755@qtp-426164500-0]
> org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl
> Finished EnhancementJob for ContentItem
> <urn:content-item-sha1-2273ce74a6bc49a59a1e4b1c711d6dc63a8b0cd5> after
> 22029ms
>
>
> On Fri, Mar 16, 2012 at 11:29 AM, Rupert Westenthaler <
> rupert.westenthaler@gmail.com> wrote:
>
>> Hi David
>>
>> can you please provide the whole stack trace?
>>
>> best
>> Rupert
>> On 16.03.2012, at 10:12, 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
>> >
>> >
>> ********************************************************************************
>>
>>
>
>
> --
> 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>
>
> ********************************************************************************
>
>


-- 
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>
********************************************************************************

Re: ConcurrentModificationException when running default chain with Refactor Engine

Posted by David Riccitelli <da...@insideout.io>.
Sure,

I'm also retesting changing the setting *
org.apache.stanbol.enhancer.engines.refactor.append.graphs* from *false* to
*true*.

Full strack-trace:
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)
        at
org.apache.clerezza.rdf.core.impl.AbstractTripleCollection$1.next(AbstractTripleCollection.java:72)
       at
org.apache.clerezza.rdf.core.access.LockingIterator.next(LockingIterator.java:57)
        at
org.apache.clerezza.rdf.core.access.LockingIterator.next(LockingIterator.java:31)
        at
org.apache.clerezza.rdf.core.impl.AbstractTripleCollection.removeAll(AbstractTripleCollection.java:145)
        at
org.apache.clerezza.rdf.core.access.LockableMGraphWrapper.removeAll(LockableMGraphWrapper.java:198)
        at
org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine.computeEnhancements(RefactorEnhancementEngine.java:390)
        at
org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler.processEvent(EnhancementJobHandler.java:228)
        at
org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler.handleEvent(EnhancementJobHandler.java:167)
        at
org.apache.felix.eventadmin.impl.tasks.HandlerTaskImpl.execute(HandlerTaskImpl.java:88)
        at
org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:221)
        at
org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:110)
       at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:662)
16.03.2012 09:03:29.929 *INFO* [688788755@qtp-426164500-0]
org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl
Finished EnhancementJob for ContentItem
<urn:content-item-sha1-2273ce74a6bc49a59a1e4b1c711d6dc63a8b0cd5> after
22029ms


On Fri, Mar 16, 2012 at 11:29 AM, Rupert Westenthaler <
rupert.westenthaler@gmail.com> wrote:

> Hi David
>
> can you please provide the whole stack trace?
>
> best
> Rupert
> On 16.03.2012, at 10:12, 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
> >
> >
> ********************************************************************************
>
>


-- 
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>
********************************************************************************

Re: ConcurrentModificationException when running default chain with Refactor Engine

Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi David

can you please provide the whole stack trace?

best
Rupert
On 16.03.2012, at 10:12, 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>
> ********************************************************************************


Re: ConcurrentModificationException when running default chain with Refactor Engine

Posted by David Riccitelli <da...@insideout.io>.
Thanks Rupert,

It worked.

David

On Fri, Mar 16, 2012 at 11:53 AM, Rupert Westenthaler <
rupert.westenthaler@gmail.com> 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 <ad...@cs.unibo.it>
> 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             rupert.westenthaler@gmail.com
> | 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>
********************************************************************************

Re: ConcurrentModificationException when running default chain with Refactor Engine

Posted by Rupert Westenthaler <ru...@gmail.com>.
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 <ad...@cs.unibo.it> 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             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Re: ConcurrentModificationException when running default chain with Refactor Engine

Posted by Alessandro Adamou <ad...@cs.unibo.it>.
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