Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 22970 invoked from network); 3 May 2010 11:18:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 May 2010 11:18:24 -0000 Received: (qmail 7819 invoked by uid 500); 3 May 2010 11:18:23 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 7778 invoked by uid 500); 3 May 2010 11:18:23 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 7770 invoked by uid 99); 3 May 2010 11:18:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 11:18:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 11:18:19 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o43BHvsb025914 for ; Mon, 3 May 2010 11:17:58 GMT Message-ID: <5133357.12631272885477915.JavaMail.jira@thor> Date: Mon, 3 May 2010 07:17:57 -0400 (EDT) From: =?utf-8?Q?Oliver_Str=C3=A4sser_=28JIRA=29?= To: clerezza-dev@incubator.apache.org Subject: [jira] Issue Comment Edited: (CLEREZZA-197) TDB + ConcurrentModificationException In-Reply-To: <20284862.58751272468875750.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLEREZZA-197?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12= 863306#action_12863306 ]=20 Oliver Str=C3=A4sser edited comment on CLEREZZA-197 at 5/3/10 7:17 AM: ------------------------------------------------------------------ I lock the graph, but get ConcurrentModificationException @GET @Path("restorePDF") public Response restorePDF() { logger.info("restorePDF"); LockableMGraph graph =3D googleAlertsProvider.getBundleGraph(); UriRef pdfFile =3D new UriRef("http://clerezza.org/2009/12/googleAl= erts#pdfFile"); Lock lockW =3D graph.getLock().writeLock(); lockW.lock(); try { Iterator pdfFileIter =3D graph.filter(null, pdfFile, nu= ll); while (pdfFileIter.hasNext()) { GraphNode entry =3D new GraphNode(pdfFileIter.next().getSub= ject(), graph); Iterator pdfFiles =3D entry.getUriRefObjects(pdfFil= e); while (pdfFiles.hasNext()) { UriRef uriRef =3D pdfFiles.next(); UriRef uriRefTested =3D (UriRef) entry.getNode(); logger.info(uriRefTested.getUnicodeString()); entry.deleteProperties(PDFCREATOR.pdfFile); entry.addProperty(PDFCREATOR.pdfFile, uriRef); entry.deleteProperties(pdfFile); entry.addProperty(PDFCREATOR.pdfFileTested, uriRefTeste= d); } } } finally { lockW.unlock(); logger.info("fertig"); } return Response.status(Status.ACCEPTED).build(); } The String "fertig" is printed on at the console java.util.ConcurrentModificationException =09at com.hp.hpl.jena.tdb.store.GraphTDBBase$MapperIteratorTriples.checkCou= rrentModification(GraphTDBBase.java:209) =09at com.hp.hpl.jena.tdb.store.GraphTDBBase$MapperIteratorTriples.hasNext(= GraphTDBBase.java:217) =09at org.apache.clerezza.rdf.jena.storage.JenaGraphAdaptor$1.hasNext(JenaG= raphAdaptor.java:80) =09at org.apache.clerezza.rdf.core.impl.AbstractTripleCollection$1.hasNext(= AbstractTripleCollection.java:77) =09at org.apache.clerezza.rdf.core.access.LockingIterator.hasNext(LockingIt= erator.java:47) =09at net.getunik.clerezza.app.google.alerts.gui.GoogleAlertsGui.restorePDF= (GoogleAlertsGui.java:774) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:39) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:25) =09at java.lang.reflect.Method.invoke(Method.java:597) =09at org.apache.clerezza.triaxrs.RootResourceExecutorImpl.handleWithMethod= (RootResourceExecutorImpl.java:471) =09at org.apache.clerezza.triaxrs.RootResourceExecutorImpl.execute(RootReso= urceExecutorImpl.java:121) =09at org.apache.clerezza.triaxrs.JaxRsHandler.handle(JaxRsHandler.java:502= ) =09at org.wymiwyg.wrhapi.util.pathmappings.PathMappingHandler$RegisteredHan= dler.handle(PathMappingHandler.java:127) =09at org.wymiwyg.wrhapi.util.pathmappings.PathMappingHandler.handle(PathMa= ppingHandler.java:102) =09at org.apache.clerezza.platform.security.auth.AuthenticatingFilter$1.run= (AuthenticatingFilter.java:94) =09at java.security.AccessController.doPrivileged(Native Method) =09at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) =09at org.apache.clerezza.platform.security.auth.AuthenticatingFilter.handl= e(AuthenticatingFilter.java:90) =09at org.wymiwyg.wrhapi.filter.impl.FilterRunner.handle(FilterRunner.java:= 56) =09at org.apache.clerezza.platform.xhtml2html.Xhtml2HtmlFilter.handle(Xhtml= 2HtmlFilter.java:73) =09at org.wymiwyg.wrhapi.filter.impl.FilterRunner.handle(FilterRunner.java:= 56) =09at org.wymiwyg.wrhapi.osgi.OsgiWebServerFactory$1.service(OsgiWebServerF= actory.java:76) =09at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) =09at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502= ) =09at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3= 89) =09at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.ha= ndle(HttpServiceServletHandler.java:64) =09at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1= 81) =09at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7= 65) =09at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(Ht= tpServiceContext.java:111) =09at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection= .handle(JettyServerHandlerCollection.java:64) =09at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1= 52) =09at org.mortbay.jetty.Server.handle(Server.java:326) =09at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:53= 4) =09at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCo= nnection.java:864) =09at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) =09at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) =09at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) =09at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja= va:409) =09at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.j= ava:520) was (Author: osr): java.util.ConcurrentModificationException =09at com.hp.hpl.jena.tdb.store.GraphTDBBase$MapperIteratorTriples.checkCou= rrentModification(GraphTDBBase.java:209) =09at com.hp.hpl.jena.tdb.store.GraphTDBBase$MapperIteratorTriples.hasNext(= GraphTDBBase.java:217) =09at org.apache.clerezza.rdf.jena.storage.JenaGraphAdaptor$1.hasNext(JenaG= raphAdaptor.java:80) =09at org.apache.clerezza.rdf.core.impl.AbstractTripleCollection$1.hasNext(= AbstractTripleCollection.java:77) =09at org.apache.clerezza.rdf.core.access.LockingIterator.hasNext(LockingIt= erator.java:47) =09at net.getunik.clerezza.app.google.alerts.gui.GoogleAlertsGui.restorePDF= (GoogleAlertsGui.java:774) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:39) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:25) =09at java.lang.reflect.Method.invoke(Method.java:597) =09at org.apache.clerezza.triaxrs.RootResourceExecutorImpl.handleWithMethod= (RootResourceExecutorImpl.java:471) =09at org.apache.clerezza.triaxrs.RootResourceExecutorImpl.execute(RootReso= urceExecutorImpl.java:121) =09at org.apache.clerezza.triaxrs.JaxRsHandler.handle(JaxRsHandler.java:502= ) =09at org.wymiwyg.wrhapi.util.pathmappings.PathMappingHandler$RegisteredHan= dler.handle(PathMappingHandler.java:127) =09at org.wymiwyg.wrhapi.util.pathmappings.PathMappingHandler.handle(PathMa= ppingHandler.java:102) =09at org.apache.clerezza.platform.security.auth.AuthenticatingFilter$1.run= (AuthenticatingFilter.java:94) =09at java.security.AccessController.doPrivileged(Native Method) =09at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) =09at org.apache.clerezza.platform.security.auth.AuthenticatingFilter.handl= e(AuthenticatingFilter.java:90) =09at org.wymiwyg.wrhapi.filter.impl.FilterRunner.handle(FilterRunner.java:= 56) =09at org.apache.clerezza.platform.xhtml2html.Xhtml2HtmlFilter.handle(Xhtml= 2HtmlFilter.java:73) =09at org.wymiwyg.wrhapi.filter.impl.FilterRunner.handle(FilterRunner.java:= 56) =09at org.wymiwyg.wrhapi.osgi.OsgiWebServerFactory$1.service(OsgiWebServerF= actory.java:76) =09at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) =09at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502= ) =09at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3= 89) =09at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.ha= ndle(HttpServiceServletHandler.java:64) =09at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1= 81) =09at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7= 65) =09at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(Ht= tpServiceContext.java:111) =09at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection= .handle(JettyServerHandlerCollection.java:64) =09at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1= 52) =09at org.mortbay.jetty.Server.handle(Server.java:326) =09at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:53= 4) =09at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCo= nnection.java:864) =09at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) =09at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) =09at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) =09at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja= va:409) =09at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.j= ava:520) =20 > TDB + ConcurrentModificationException > ------------------------------------- > > Key: CLEREZZA-197 > URL: https://issues.apache.org/jira/browse/CLEREZZA-197 > Project: Clerezza > Issue Type: Bug > Reporter: Oliver Str=C3=A4sser > Priority: Blocker > > After I changed the Actioncenter from sesame to tdb, i got the following = Error: > java.util.ConcurrentModificationException > at com.hp.hpl.jena.tdb.store.GraphTDBBase$MapperIteratorTriples.c= heckCourrentModification(GraphTDBBase.java:209) > at com.hp.hpl.jena.tdb.store.GraphTDBBase$MapperIteratorTriples.h= asNext(GraphTDBBase.java:217) > at org.apache.clerezza.rdf.jena.storage.JenaGraphAdaptor$1.hasNex= t(JenaGraphAdaptor.java:80) > at org.apache.clerezza.rdf.core.impl.AbstractTripleCollection$1.h= asNext(AbstractTripleCollection.java:77) > at org.apache.clerezza.rdf.core.access.LockingIterator.hasNext(Lo= ckingIterator.java:47) > at=20 > This problem occurs many times on different places and variations.=20 > An error in the same category (i can't reproduce the situation) - occurs = while reading the graph an iterating through the graph - with hasnext / nex= t > the exceptions was something like "elemntmnotfound" at the next(method). --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.