Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Model] Concurrent modification exception #164

Open
luis100 opened this issue Nov 9, 2012 · 1 comment
Open

[Model] Concurrent modification exception #164

luis100 opened this issue Nov 9, 2012 · 1 comment
Assignees
Labels
Milestone

Comments

@luis100
Copy link
Member

luis100 commented Nov 9, 2012

When the system was in high load on the first run of PRONOM and C3PO, the following error occurred.

18:08:46,271 ERROR [org.quartz.core.JobRunShell] (CoreScheduler_Worker-2) Job adaptors.fce6cd05-5726-4d35-935e-3b19e99ef10d threw an unhandled Exception: : java.util.ConcurrentModificationException: Reader = 3, Writer = 1
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:157) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:152) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.checkConcurrency(DatasetControlMRSW.java:79) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.startUpdate(DatasetControlMRSW.java:60) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.nodetable.NodeTupleTableConcrete.startWrite(NodeTupleTableConcrete.java:64) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.nodetable.NodeTupleTableConcrete.addRow(NodeTupleTableConcrete.java:81) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.store.TripleTable.add(TripleTable.java:58) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.store.TripleTable.add(TripleTable.java:53) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.store.GraphTriplesTDB._performAdd(GraphTriplesTDB.java:56) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.store.GraphTDBBase.performAdd(GraphTDBBase.java:92) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.sparql.graph.GraphBase2.add(GraphBase2.java:211) [jena-arq-2.9.3.jar:2.9.3]
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.add(ModelCom.java:1089) [jena-core-2.7.3.jar:2.7.3]
    at com.hp.hpl.jena.rdf.model.impl.ResourceImpl.addProperty(ResourceImpl.java:280) [jena-core-2.7.3.jar:2.7.3]
    at thewebsemantic.Bean2RDF.saveOrUpdate(Bean2RDF.java:188) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.write(Bean2RDF.java:176) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF._write(Bean2RDF.java:137) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.setPropertyValue(Bean2RDF.java:226) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.saveOrUpdate(Bean2RDF.java:190) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.write(Bean2RDF.java:176) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF._write(Bean2RDF.java:137) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.setPropertyValue(Bean2RDF.java:226) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.saveOrUpdate(Bean2RDF.java:190) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.write(Bean2RDF.java:176) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF._write(Bean2RDF.java:137) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.write(Bean2RDF.java:130) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.save(Bean2RDF.java:96) [jenabean-1.0.6.jar:]
    at thewebsemantic.binding.RdfBean.save(RdfBean.java:29) [jenabean-1.0.6.jar:]
    at eu.scape_project.watch.dao.PropertyValueDAO.save(PropertyValueDAO.java:381) [scout-model-0.0.2.jar:]
    at eu.scape_project.watch.dao.PropertyValueDAO.save(PropertyValueDAO.java:304) [scout-model-0.0.2.jar:]
    at eu.scape_project.watch.merging.DefaultMergeRule.mergePropertyValue(DefaultMergeRule.java:23) [scout-core-0.0.2.jar:]
    at eu.scape_project.watch.merging.DataMerger.merge(DataMerger.java:112) [scout-core-0.0.2.jar:]
    at eu.scape_project.watch.utils.AllDataResultListener.initiateMerging(AllDataResultListener.java:92) [scout-core-0.0.2.jar:]
    at eu.scape_project.watch.utils.AllDataResultListener.notify(AllDataResultListener.java:77) [scout-core-0.0.2.jar:]
    at eu.scape_project.watch.scheduling.quartz.QuartzListenerManager.notify(QuartzListenerManager.java:38) [scout-core-0.0.2.jar:]
    at eu.scape_project.watch.scheduling.quartz.QuartzAdaptorJob.execute(QuartzAdaptorJob.java:66) [scout-core-0.0.2.jar:]
    at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz-2.1.6.jar:]
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz-2.1.6.jar:]

18:08:46,295 ERROR [org.quartz.core.ErrorLogger] (CoreScheduler_Worker-2) Job (adaptors.fce6cd05-5726-4d35-935e-3b19e99ef10d threw an exception.: org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.util.ConcurrentModificationException: Reader = 3, Writer = 1]
    at org.quartz.core.JobRunShell.run(JobRunShell.java:224) [quartz-2.1.6.jar:]
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz-2.1.6.jar:]
Caused by: java.util.ConcurrentModificationException: Reader = 3, Writer = 1
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:157) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:152) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.checkConcurrency(DatasetControlMRSW.java:79) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.startUpdate(DatasetControlMRSW.java:60) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.nodetable.NodeTupleTableConcrete.startWrite(NodeTupleTableConcrete.java:64) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.nodetable.NodeTupleTableConcrete.addRow(NodeTupleTableConcrete.java:81) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.store.TripleTable.add(TripleTable.java:58) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.store.TripleTable.add(TripleTable.java:53) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.store.GraphTriplesTDB._performAdd(GraphTriplesTDB.java:56) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.tdb.store.GraphTDBBase.performAdd(GraphTDBBase.java:92) [jena-tdb-0.9.3.jar:0.9.3]
    at com.hp.hpl.jena.sparql.graph.GraphBase2.add(GraphBase2.java:211) [jena-arq-2.9.3.jar:2.9.3]
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.add(ModelCom.java:1089) [jena-core-2.7.3.jar:2.7.3]
    at com.hp.hpl.jena.rdf.model.impl.ResourceImpl.addProperty(ResourceImpl.java:280) [jena-core-2.7.3.jar:2.7.3]
    at thewebsemantic.Bean2RDF.saveOrUpdate(Bean2RDF.java:188) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.write(Bean2RDF.java:176) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF._write(Bean2RDF.java:137) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.setPropertyValue(Bean2RDF.java:226) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.saveOrUpdate(Bean2RDF.java:190) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.write(Bean2RDF.java:176) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF._write(Bean2RDF.java:137) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.setPropertyValue(Bean2RDF.java:226) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.saveOrUpdate(Bean2RDF.java:190) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.write(Bean2RDF.java:176) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF._write(Bean2RDF.java:137) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.write(Bean2RDF.java:130) [jenabean-1.0.6.jar:]
    at thewebsemantic.Bean2RDF.save(Bean2RDF.java:96) [jenabean-1.0.6.jar:]
    at thewebsemantic.binding.RdfBean.save(RdfBean.java:29) [jenabean-1.0.6.jar:]
    at eu.scape_project.watch.dao.PropertyValueDAO.save(PropertyValueDAO.java:381) [scout-model-0.0.2.jar:]
    at eu.scape_project.watch.dao.PropertyValueDAO.save(PropertyValueDAO.java:304) [scout-model-0.0.2.jar:]
    at eu.scape_project.watch.merging.DefaultMergeRule.mergePropertyValue(DefaultMergeRule.java:23) [scout-core-0.0.2.jar:]
    at eu.scape_project.watch.merging.DataMerger.merge(DataMerger.java:112) [scout-core-0.0.2.jar:]
    at eu.scape_project.watch.utils.AllDataResultListener.initiateMerging(AllDataResultListener.java:92) [scout-core-0.0.2.jar:]
    at eu.scape_project.watch.utils.AllDataResultListener.notify(AllDataResultListener.java:77) [scout-core-0.0.2.jar:]
    at eu.scape_project.watch.scheduling.quartz.QuartzListenerManager.notify(QuartzListenerManager.java:38) [scout-core-0.0.2.jar:]
    at eu.scape_project.watch.scheduling.quartz.QuartzAdaptorJob.execute(QuartzAdaptorJob.java:66) [scout-core-0.0.2.jar:]
    at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz-2.1.6.jar:]
    ... 1 more

18:08:46,309 ERROR [org.quartz.core.ErrorLogger] (CoreScheduler_Worker-2) Unable to notify JobListener(s) of Job that was executed: (error will be ignored). trigger= DEFAULT.6da64b5bd2ee-d3d2c8d6-17c3-424e-aaaa-2df05dc8c7e5 job= adaptors.fce6cd05-5726-4d35-935e-3b19e99ef10d: org.quartz.SchedulerException: JobListener 'QuartzExecutionListener' threw exception: null [See nested exception: java.lang.NullPointerException]
    at org.quartz.core.QuartzScheduler.notifyJobListenersWasExecuted(QuartzScheduler.java:1939) [quartz-2.1.6.jar:]
    at org.quartz.core.JobRunShell.notifyJobListenersComplete(JobRunShell.java:361) [quartz-2.1.6.jar:]
    at org.quartz.core.JobRunShell.run(JobRunShell.java:235) [quartz-2.1.6.jar:]
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz-2.1.6.jar:]
Caused by: java.lang.NullPointerException
    at eu.scape_project.watch.scheduling.quartz.QuartzExecutionListener.jobWasExecuted(QuartzExecutionListener.java:83) [scout-core-0.0.2.jar:]
    at org.quartz.core.QuartzScheduler.notifyJobListenersWasExecuted(QuartzScheduler.java:1937) [quartz-2.1.6.jar:]
    ... 3 more


@ghost ghost assigned luis100 Nov 9, 2012
@luis100
Copy link
Member Author

luis100 commented Feb 21, 2013

Error in eu.scape_project.watch.main.ScoutManagerTest test class, on the lifecycleBySchedulingTest method:

java.util.ConcurrentModificationException: Reader = 1, Writer = 1
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:157)
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:152)
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.checkConcurrency(DatasetControlMRSW.java:79)
    at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.startUpdate(DatasetControlMRSW.java:60)
    at com.hp.hpl.jena.tdb.nodetable.NodeTupleTableConcrete.startWrite(NodeTupleTableConcrete.java:64)
    at com.hp.hpl.jena.tdb.nodetable.NodeTupleTableConcrete.addRow(NodeTupleTableConcrete.java:81)
    at com.hp.hpl.jena.tdb.store.TripleTable.add(TripleTable.java:58)
    at com.hp.hpl.jena.tdb.store.TripleTable.add(TripleTable.java:53)
    at com.hp.hpl.jena.tdb.store.GraphTriplesTDB._performAdd(GraphTriplesTDB.java:56)
    at com.hp.hpl.jena.tdb.store.GraphTDBBase.performAdd(GraphTDBBase.java:92)
    at com.hp.hpl.jena.sparql.graph.GraphBase2.add(GraphBase2.java:211)
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.add(ModelCom.java:1089)
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.add(ModelCom.java:157)
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.add(ModelCom.java:145)
    at com.hp.hpl.jena.rdf.model.impl.ResourceImpl.addProperty(ResourceImpl.java:244)
    at thewebsemantic.Bean2RDF.getRDFSClass(Bean2RDF.java:163)
    at thewebsemantic.Bean2RDF.toResource(Bean2RDF.java:143)
    at thewebsemantic.Bean2RDF._write(Bean2RDF.java:137)
    at thewebsemantic.Bean2RDF.write(Bean2RDF.java:130)
    at thewebsemantic.Bean2RDF.save(Bean2RDF.java:96)
    at thewebsemantic.binding.RdfBean.save(RdfBean.java:29)
    at eu.scape_project.watch.dao.PropertyValueDAO.save(PropertyValueDAO.java:410)
    at eu.scape_project.watch.dao.PropertyValueDAO.save(PropertyValueDAO.java:305)
    at eu.scape_project.watch.main.ScoutManagerTest.lifecycleBySchedulingTest(ScoutManagerTest.java:140)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    (...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant