tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Allison (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-2379) tika-bundle 1.15 has wrong import of org.sfl4j.event package which does not exists
Date Thu, 01 Jun 2017 19:20:04 GMT

    [ https://issues.apache.org/jira/browse/TIKA-2379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16033517#comment-16033517

Tim Allison commented on TIKA-2379:

Thank you [~bobpaulin]!

[~cibsen@e-ma.net], any chance you could try with a SNAPSHOT build (once we get a clean one)?

> tika-bundle 1.15 has wrong import of org.sfl4j.event package which does not exists
> ----------------------------------------------------------------------------------
>                 Key: TIKA-2379
>                 URL: https://issues.apache.org/jira/browse/TIKA-2379
>             Project: Tika
>          Issue Type: Bug
>    Affects Versions: 1.15
>            Reporter: Claus Ibsen
>            Assignee: Bob Paulin
>            Priority: Blocker
> The new release 1.15 now fails in Apache Camel when we run our OSGi tests
> {code}
> test(org.apache.camel.itest.karaf.CamelTikaTest)  Time elapsed: 7.212 sec  <<<
> org.ops4j.pax.exam.WrappedTestContainerException: [test(org.apache.camel.itest.karaf.CamelTikaTest):
Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-tika;
type=karaf.feature; version="[2.20.0.SNAPSHOT,2.20.0.SNAPSHOT]"; filter:="(&(osgi.identity=camel-tika)(type=karaf.feature)(version>=2.20.0.SNAPSHOT)(version<=2.20.0.SNAPSHOT))"
[caused by: Unable to resolve camel-tika/2.20.0.SNAPSHOT: missing requirement [camel-tika/2.20.0.SNAPSHOT]
osgi.identity; osgi.identity=org.apache.camel.camel-tika; type=osgi.bundle; version="[2.20.0.SNAPSHOT,2.20.0.SNAPSHOT]";
resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-tika/2.20.0.SNAPSHOT:
missing requirement [org.apache.camel.camel-tika/2.20.0.SNAPSHOT] osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.tika.parser.html)"
[caused by: Unable to resolve org.apache.tika.bundle/1.15.0: missing requirement [org.apache.tika.bundle/1.15.0]
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.slf4j.event)(version>=1.7.0)(!(version>=2.0.0)))"]]]]
> 	at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)
> 	at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:389)
> 	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)
> 	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:347)
> 	at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:218)
> 	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:285)
> 	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1170)
> 	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$0(FeaturesServiceImpl.java:1069)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:748)
> {code}
> The problem is that tika-bundle has an import on package
> {code}
> org.slf4j.event;version="[1.7,2)"
> {code}
> And that package does not exists in 1.7.x. It looks like its a new thing that comes in
slf4j 1.8 onwards but they have only alpha releases
> http://search.maven.org/#search%7Cga%7C1%7Cfc%3A%22org.slf4j.event%22
> It would be good to get this fixed. I wonder if that event package is really needed?
And if not then please remove that import in the OSGi manifest file.
> Otherwise you would need to depend on slf4j-api version 1.8 which is still not released
in GA and not widely in use. I would suggest to be compatible with slfj4 1.7 so the Tika upgrade
from eg 1.14 to 1.15 is a smooth upgrade for end users.

This message was sent by Atlassian JIRA

View raw message