Quantcast

Problem with bundle org.apache.servicemix.bundles : org.apache.servicemix.bundles.solr-solrj : 6.2.1_1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem with bundle org.apache.servicemix.bundles : org.apache.servicemix.bundles.solr-solrj : 6.2.1_1

MarcinT
This post was updated on .
Hi,

I have a following feature

<feature name="solr-solrj" version="${solr-solrj.version}" description="">
        <bundle>mvn:org.apache.httpcomponents/httpcore-osgi/${httpcore-osgi.version}</bundle>
        <bundle>mvn:org.apache.httpcomponents/httpclient-osgi/${httpclient-osgi.version}</bundle>
        <bundle>mvn:org.apache.zookeeper/zookeeper/${zookeeper.version}</bundle>
        <bundle>mvn:commons-codec/commons-codec/${commons-codec.version}</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient/${commons-httpclient.version}</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-io/${commons-io.version}</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.noggit/${noggit-bundle.version}</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.solr-solrj/${solr-solrj.version}</bundle>
    </feature>

When I try to install this feature I got an exception

2016-11-30 14:18:28,094 | ERROR | console user smx | ShellUtil                        | 24 - org.apache.karaf.shell.core - 4.0.7 | Exception caught while executing comm
java.lang.IllegalArgumentException: Unknown operator:
        at org.apache.karaf.features.internal.resolver.SimpleFilter.subfilter(SimpleFilter.java:303)[13:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.resolver.SimpleFilter.parse(SimpleFilter.java:232)[13:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.service.RequirementSort.collectDependencies(RequirementSort.java:78)[13:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.service.RequirementSort.visit(RequirementSort.java:66)[13:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.service.RequirementSort.sort(RequirementSort.java:56)[13:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.service.Deployer.getBundlesToStart(Deployer.java:1313)[13:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:842)[13:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)[13:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)[13:org.apache.karaf.features.core:4.0.7]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_51]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_51]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_51]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_51]

Finally all bundles are active except solr-solrj (solr-solrj is resolved).

I've noticed there is a problem with a header Bundle-NativeCode: * in MANIFEST.MF of bundle solr-solrj.  In my opinion this is because this bundle doesn't contains any native libraries so header Bundle-NativeCode: * is unnecessary.

Cheers,
Marcin
Loading...