Drop-in deployment of feature descriptor with spring-dm bundles fails
---------------------------------------------------------------------

                 Key: FELIX-2191
                 URL: https://issues.apache.org/jira/browse/FELIX-2191
             Project: Felix
          Issue Type: Bug
          Components: Karaf
    Affects Versions: karaf-1.4.0
         Environment: Windows 7
Java 1.6.0_16
            Reporter: Peter GardfjÀll


Drop-in deployment of a feature descriptor in the deploy/ directory fails when 
the feature descriptor contains spring-dm 1.2.1 bundles.

Reproduce as follows:

(1) Start a fresh instance of Karaf 1.4.0 (unzip a new distribution and run 
bin\karaf.bat) 
(2) Copy a feature.xml file with the following contents to the deploy/ directory

<features>
  <feature name="org.osgi.sample.sample.dependencies">
    <bundle>mvn:org.springframework.osgi/spring-osgi-extender/1.2.1</bundle>
    <bundle>mvn:org.springframework.osgi/spring-osgi-core/1.2.1</bundle>
    <bundle>mvn:org.springframework.osgi/spring-osgi-io/1.2.1</bundle>
    <bundle>mvn:org.springframework.osgi/spring-osgi-web/1.2.1</bundle>
  </feature>
</features>

This fails and gives the following error entry in the log:

20:09:20,819 | ERROR | lixDispatchQueue | FeatureDeploymentListener
    | atures.FeatureDeploymentListener  136 | Unable to install
features
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.geronimo.blueprint.container.AbstractServiceReferenceRecipe$JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:561)
        at $Proxy4.installFeatures(Unknown Source)
        at 
org.apache.felix.karaf.deployer.features.FeatureDeploymentListener.bundleChanged(FeatureDeploymentListener.java:132)
        at 
org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)
        at 
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)
        at 
org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:942)
        at 
org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
        at 
org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
        at 
org.apache.felix.karaf.features.internal.FeaturesServiceImpl.getFeaturesContainingBundle(FeaturesServiceImpl.java:899)
        at 
org.apache.felix.karaf.features.internal.FeaturesServiceImpl.getFeaturesContainingBundleList(FeaturesServiceImpl.java:910)
        at 
org.apache.felix.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:296)
        ... 13 more


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to