Hi Andriy,

On Mon, Nov 19, 2012 at 10:25 AM, Andriy Nikolov
<[email protected]> wrote:
> Dear all,
>
> I have a question about the use of tika engine to detect the content-type
> of uploaded document. Does it require any special configuration of stanbol?

No it does not as Stanbol directly forwards the parsed content to the
Tika Mime Magic Detction if the Content-Type header is not set in the
request.

> <p>Problem accessing /enhancer/engine/tika. Reason:
> <pre>    Enhancement Chain failed because of required Engine 'tika' failed
> with Message: Unable to process ContentItem
> '&lt;urn:content-item-sha1-445158f36b9d4c42842c1f190950891524ba957f&gt;'
> with Enhancement Engine 'tika' because the engine is currently not
> active(Reason: Unexpected Exception while processing ContentItem
> &lt;urn:content-item-sha1-445158f36b9d4c42842c1f190950891524ba957f&gt; with
> EnhancementJobManager: class
> org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl)!</pre></p><h3>Caused
> by:</h3><pre>org.apache.stanbol.enhancer.servicesapi.ChainException:
> Enhancement Chain failed because of required Engine 'tika' failed with
> Message: Unable to process ContentItem
> '&lt;urn:content-item-sha1-445158f36b9d4c42842c1f190950891524ba957f&gt;'
> with Enhancement Engine 'tika' because the engine is currently not
> active(Reason: Unexpected Exception while processing ContentItem
> &lt;urn:content-item-sha1-445158f36b9d4c42842c1f190950891524ba957f&gt; with
> EnhancementJobManager: class
> org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl)!
>     at
> org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl.enhanceContent(EventJobManagerImpl.java:153)
>     at
> org.apache.stanbol.enhancer.jersey.resource.AbstractEnhancerResource.enhance(AbstractEnhancerResource.java:233)
>     at
> org.apache.stanbol.enhancer.jersey.resource.AbstractEnhancerResource.enhanceFromData(AbstractEnhancerResource.java:215)
>

This is the reason why it does not work for your. However to determine
the problem I would need the whole stack trace including all 'caused
by' sections.

The other error referenced in your mail seems unrelated.

best
Rupert

--
| Rupert Westenthaler             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to