I got an concurentmodification exception in the greenpeace project.... i fixed this point but now I have a problem, i can't understand:
my graph: <rdf:Description rdf:about="http://clips.java.getunik.net/clip/c7168fda-b931-4a46-afd2-f53f8d1b0b18"> <rdf:type rdf:resource="http://www.getunik.com/2010/02/clips#ClipFeed"/> <j.0:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-04-28T10:57:56.636+02:00</j.0:created> <j.0:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">schweine1</j.0:title> <j.1:searchterm rdf:datatype="http://www.w3.org/2001/XMLSchema#string">schwein*</j.1:searchterm> <j.1:max_entries rdf:datatype="http://www.w3.org/2001/XMLSchema#string">10</j.1:max_entries> <j.0:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-04-30T09:12:28.647+02:00</j.0:modified> <j.1:send_mail rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</j.1:send_mail> <j.1:last_sending rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-04-29T00:00:35.9+02:00</j.1:last_sending> <j.1:last_sending rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-04-30T00:45:58.28+02:00</j.1:last_sending> <j.1:last_sending rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-04-30T00:51:58.40+02:00</j.1:last_sending> <j.1:last_sending rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-04-30T08:19:16.80+02:00</j.1:last_sending> <j.1:last_sending rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-04-30T09:11:49.983+02:00</j.1:last_sending> </rdf:Description> at the moment I send the email, i delete the property last_sending and set the current date.this worked in the past - but now i can do what I want - I can$t delete the property! I tried different ways to delete the property: LockableMGraph clips = getBundleGraph(); GraphNode feedTempNode = new GraphNode(feedNode.getNode(), clips); feedTempNode.deleteProperties(CLIPS.last_sending); Iterator<Date> dates = DateTools.parseLiterat(feedTempNode, CLIPS.last_sending); while (dates.hasNext()) { logger.info(dates.next().toGMTString()); } logger.info("-------------------------------------------1"); Lock lockWrite = clips.getLock().writeLock(); lockWrite.lock(); try { Iterator<Triple> triple = clips.filter((NonLiteral) feedTempNode.getNode(), CLIPS.last_sending, null); while (triple.hasNext()) { triple.next(); triple.remove(); } } finally { lockWrite.unlock(); } dates = DateTools.parseLiterat(feedTempNode, CLIPS.last_sending); while (dates.hasNext()) { logger.info(dates.next().toGMTString()); } logger.info("-------------------------------------------2"); Output console: [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 28 Apr 2010 22:00:35 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 29 Apr 2010 22:45:58 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 29 Apr 2010 22:51:58 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 30 Apr 2010 06:19:16 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - -------------------------------------------1 [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 28 Apr 2010 22:00:35 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 29 Apr 2010 22:45:58 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 29 Apr 2010 22:51:58 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 30 Apr 2010 06:19:16 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - -------------------------------------------2 [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 28 Apr 2010 22:00:35 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 29 Apr 2010 22:45:58 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 29 Apr 2010 22:51:58 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 30 Apr 2010 06:19:16 GMT [clips updater] INFO net.getunik.clerezza.app.clips.core.ClipsProvider - 30 Apr 2010 07:16:50 GMT btw: because the predicate wasn't deleted, the 1-min timer send every minute a mail to me ..... (I send a mail once a day - normaly - how you can see on the first two dates) --getunik ag------------------------------------------- oliver straesser [email protected]<mailto:[email protected]> hardturmstrasse 101 fon: +41 (0)44 388 55 88 ch-8005 zuerich fax: +41 (0)44 388 55 89 --aktuelles getunik projekt------------------------- Agieren Sie lokal! Geo Marketing für Ihre E-Mail Kampagne: www.geomarketing.com<http://www.geomarketing.com/> --best of swiss web awards 2009------------------ Gold & Silber für Connect2Earth / Bronze für WWF UK we make the web a better place - www.getunik.com<http://www.getunik.com/> ***************************************************************** P Bitte drucken Sie dieses E-Mail nur bei Bedarf aus. Die Umwelt dankt es Ihnen. *****************************************************************
