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

Reply via email to