Hi Rupert,

Sure, the text is the body of this article:
http://wordlift.insideout.io/?p=32

This is the log right before the exception:

01.09.2011 12:11:36.654 *WARN* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
Value null is not valied for property markup_limit[required]
01.09.2011 12:11:36.654 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
sending data to Zemanta:
method=zemanta.suggest&format=rdfxml&return_rdf_links=1&return_categories=dmoz&return_images=0&personal_scope=0&api_key=9bkv6z94vy4ehzfg5tm87jud&text=After+three+days+of+rioting+and+looting+in+the+streets%2C+London%27s+unrest+is+moving+to+the+Web.Research+in+Motion%27s%C2%A0Inside+BlackBerry+blog%C2%A0was+hacked+Tuesday+after+the+Canadian+smartphone+maker+suggested+it+would+cooperate+with+London+police+to+help+identify+rioters+who+may+have+used+a+BlackBerry+messenging+service+to+plan+mayhem.A+hacking+group+calling+itself%C2%A0TeaMp0isoN%C2%A0took+credit+for+the+attack%2C+which+involved+posting+a+statement+on+the+BlackBerry+blog+before+RIM+removed+it.Dear+Rim%3B+You+Will+_NOT_+assist+the+UK+Police+because+if+u+do+innocent+members+of+the+public+who+were+at+the+wrong+place+at+the+wrong+time+and+owned+a+blackberry+will+get+charged+for+no+reason+at+all%2C+the+statement+read+in+part.+It+then+threatened+to+make+public+a+database+of+RIM+employees%27+personal+information.Security+blogger+Graham+Cluley+said+Tuesday%C2%A0it+wasn%27t+clear+whether+the+hackers+managed+to+post+on+BlackBerry%27s+blog+because+of+a+software+vulnerability+or+because+one+of+their+administrators+had+his+password+cracked.The+hack+followed+a+statement+Monday+night+on%C2%A0UK+BlackBerry%27s+Twitter+feed%C2%A0that+said%2C+We+feel+for+those+impacted+by+the+riots+in+London.+We+have+engaged+with+the+authorities+to+assist+in+any+way+we+can.A+RIM+spokesman+issued+a+statement+to%C2%A0the+Guardian%C2%A0and+other+UK+media+saying+the+company+would+comply+with+a+British+law+compelling+it+to+hand+over+to+authorities+information+from+its+encrypted+network.According+to+various+news+reports%2C+many+UK+rioters+have+organized+via+BlackBerry+Messenger%2C+a+free+instant+messaging+tool+that+allows+groups+of+smartphone+users+to+communicate+in+private.+The+phones%27+relatively+low+price+have+made+them+popular+with+British+youth%3B%C2%A0a+recent+survey%C2%A0by+UK+telecom+research+firm+Ofcom+found+that+37%25+of+British+teenagers+prefer+BlackBerrys+to+other+smartphones.Some+London+public+officials+have+asked+RIM+to+shut+down+BlackBerry+Messenger+temporarily+to+stem+further+unrest.+A+representative+for+RIM+did+not+immediately+respond+to+a+request+for+comment.Meanwhile%2C+on+Tuesday+the+London+Metropolitan+Police+began+posting+photos+of+suspected+looters%C2%A0on+their+Flickr+page%C2%A0and+asking+the+public+to+help+identify+them.+Someone+else+created+a+blog+filled+with+images+of+suspected+criminals%2C%C2%A0Catch+a+Looter%2C+on+Tumblr+but+was+overwhelmed+with+submissions+and+stopped+updating+it+Tuesday+evening.Other+online+groups%C2%A0are+even+vowing+to+use+facial-recognition+software+to+identify+London+rioters+from+public+images+captured+by+surveillance+cameras.
01.09.2011 12:11:39.017 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
process recognition <
http://d.zemanta.com/rid/f3e91bd5-1079-4c10-9f39-a43a6b89c5f9#Recognition1>
01.09.2011 12:11:39.017 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine  >
confidence :0.6838
01.09.2011 12:11:39.018 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine  >
anchor :RIM
01.09.2011 12:11:39.020 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine  >
number of textAnnotations :5
01.09.2011 12:11:39.020 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine  >
object :<http://s.zemanta.com/obj/17ba4b16f89a296b6d39ba0e936b7e60>
01.09.2011 12:11:39.020 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine  >
sameAs :[<http://rdf.freebase.com/ns/en/research_in_motion>, <
http://dbpedia.org/resource/Research_In_Motion>]
01.09.2011 12:11:39.020 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
  -  target :<http://dbpedia.org/resource/Research_In_Motion>
01.09.2011 12:11:39.020 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
     o type :<http://s.zemanta.com/targets#rdf>
01.09.2011 12:11:39.020 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
     o title :Research In Motion
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
  -  target :<http://rdf.freebase.com/ns/en/research_in_motion>
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
     o type :<http://s.zemanta.com/targets#rdf>
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
     o title :Research In Motion
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
  -  target :<http://en.wikipedia.org/wiki/Research_In_Motion>
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
     o type :<http://s.zemanta.com/targets#wikipedia>
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
  -  target :<http://www.crunchbase.com/company/research-in-motion>
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
     o type :<http://s.zemanta.com/targets#crunchbase>
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
  -  target :<http://www.wikinvest.com/stock/Research_in_Motion_%28RIMM%29>
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
     o type :<http://s.zemanta.com/targets#wikinvest>
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
  -  target :<http://rim.com>
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
     o type :<http://s.zemanta.com/targets#homepage>
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
  -  target :<http://www.google.com/finance?q=NASDAQ:RIMM>
01.09.2011 12:11:39.021 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
     o type :<http://s.zemanta.com/targets#googlefinance>
01.09.2011 12:11:39.022 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
process recognition <
http://d.zemanta.com/rid/f3e91bd5-1079-4c10-9f39-a43a6b89c5f9#Recognition2>
01.09.2011 12:11:39.022 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine  >
confidence :0.7432
01.09.2011 12:11:39.022 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine  >
anchor :Inside BlackBerry
01.09.2011 12:11:39.022 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine  >
number of textAnnotations :1
01.09.2011 12:11:39.022 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine  >
object :<
http://d.zemanta.com/rid/f3e91bd5-1079-4c10-9f39-a43a6b89c5f9#Object2>
01.09.2011 12:11:39.022 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine  >
sameAs :[]
01.09.2011 12:11:39.022 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
  -  target :<http://blogs.blackberry.com/>
01.09.2011 12:11:39.022 *INFO* [2069902626@qtp-1397067211-0]
org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
     o type :<http://s.zemanta.com/targets#homepage>
01.09.2011 12:11:39.024 *WARN* [2069902626@qtp-1397067211-0]
org.apache.felix.http.jetty /engines/ (java.lang.NullPointerException)
java.lang.NullPointerException




Thanks
David

On Thu, Sep 1, 2011 at 4:02 PM, Rupert Westenthaler <
[email protected]> wrote:

> Hi
>
> This would happen if Zemanta returns an Recognition where the
> "http://s.zemanta.com/ns#Target"; instance does not define a value for
> the "http://s.zemanta.com/ns#title";.
> (see http://wiki.iks-project.eu/index.php/ZemantaEnhancementEngine
> Section "Recognition" and "Mapping of Recognitions").
>
> The Code assumes that a value this property MUST BE returned by Zemanta.
> Can you provide also the logging above this Error and or the Text sent
> resulting in this. I would like to make some tests before deciding
> what todo in case of an missing value of the title property.
>
> best
> Rupert
>
>
>
> On Thu, Sep 1, 2011 at 2:20 PM, David Riccitelli
> <[email protected]> wrote:
> > Dears,
> >
> > I'm getting an exception when using the Zemanta engine (r1164032):
> >
> > (many infos with the response from Zemanta, then)
> >
> > 01.09.2011 12:16:54.602 *WARN* [639264024@qtp-303243765-0]
> > org.apache.felix.http.jetty /engines/ (java.lang.NullPointerException)
> > java.lang.NullPointerException        at
> >
> org.apache.clerezza.rdf.core.impl.SimpleLiteralFactory.createTypedLiteral(SimpleLiteralFactory.java:267)
> >        at
> >
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine.processRecognition(ZemantaEnhancementEngine.java:347)
> >        at
> >
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine.computeEnhancements(ZemantaEnhancementEngine.java:213)
> >        at
> >
> org.apache.stanbol.enhancer.jobmanager.impl.InMemoryJobManager.enhanceContent(InMemoryJobManager.java:78)
> >        at
> >
> org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceAndBuildResponse(EnginesRootResource.java:179)
> >        at
> >
> org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceFromForm(EnginesRootResource.java:143)
> > (...)
> >
> > What could lead to this exception?
> >
> > BR
> > David
> >
> >
> > --
> > David Riccitelli
> > -----
> > Skype: ziodave
> > Twitter: @ziodave
> > LinkedIn: http://it.linkedin.com/in/riccitelli
> > -----
> > Interact SpA
> > Via A. Bargoni 78 (scala F)
> > 00153 Roma
> >
> > T +39 06 58318 301
> > F +39 06 58318 303
> >
>
>
>
> --
> | Rupert Westenthaler             [email protected]
> | Bodenlehenstraße 11                             ++43-699-11108907
> | A-5500 Bischofshofen
>



-- 
David Riccitelli
-----
Skype: ziodave
Twitter: @ziodave
LinkedIn: http://it.linkedin.com/in/riccitelli
-----
Interact SpA
Via A. Bargoni 78 (scala F)
00153 Roma

T +39 06 58318 301
F +39 06 58318 303

Reply via email to