incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Strässer <oliver.straes...@getunik.com>
Subject AW: can't delete predicate after exception in tdb
Date Fri, 30 Apr 2010 08:26:04 GMT
The system runs without a problem a few days (3 or so).. in this days the predricate was deleted
every time - no problem.

Last night, while sending a new mail  the concurrent modification exception was thrown in
an iterator loop  (that I fixed now ;-)  ) and after that.... spaming beguns - because clerezza
couldn't delete the predicate.
Restart, uninstall,  various ways of deleting  ....  wasn't an help


But : I could delete other predicates ;-) - so I delete the graphnode and that was ok - no
problem.


How I said -I couldn't understand that.





-----Ursprüngliche Nachricht-----
Von: Reto Bachmann-Gmuer [mailto:reto.bachmann@trialox.org] 
Gesendet: Freitag, 30. April 2010 09:38
An: clerezza-dev@incubator.apache.org
Betreff: Re: can't delete predicate after exception in tdb

Hi Oli

That looks worrying, clerezza turning you app into a spam bot :(

The title says that you cannot delete after an exception, does this mean that before the exception
deletew roks as expected? is the exceptrion the concurrent modification exception you mentioned
in your recent post?

Cheers,
reto

On Fri, Apr 30, 2010 at 9:23 AM, Oliver Strässer < oliver.straesser@getunik.com> wrote:

> 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              oliver.straesser@getunik.com<mailto:
> oliver.straesser@getunik.com>
>  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.
> *****************************************************************
>
>
Mime
View raw message