Could you please raise a JIRA issue with the steps to reproduce the problem. I'll try to have a look asap.
2010/3/6 Peter Gardfjäll <[email protected]>: > Hi, > > I've run into a potential bug in karaf 1.4.0 (I downloaded the latest > distribution from > https://repository.apache.org/content/repositories/orgapachefelix-003/). > The problem is that I cannot "drop-in deploy" a feature descriptor > that contains spring-dm bundles. > > The error can be reproduced as follows: > (1) Start a fresh instance of Karaf > (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 > > > On the other hand, the exact same steps with the following feature > descriptor work just fine: > > <features> > <feature name='org.osgi.sample.sample.dependencies'> > <bundle>mvn:org.apache.derby/derby/10.5.3.0_1</bundle> > <bundle>mvn:org.springframework/spring-core/3.0.0.RELEASE</bundle> > <bundle>mvn:org.springframework/spring-expression/3.0.0.RELEASE</bundle> > <bundle>mvn:org.springframework/spring-beans/3.0.0.RELEASE</bundle> > <bundle>mvn:org.springframework/spring-aop/3.0.0.RELEASE</bundle> > <bundle>mvn:org.springframework/spring-context/3.0.0.RELEASE</bundle> > <bundle>mvn:org.springframework/spring-tx/3.0.0.RELEASE</bundle> > <bundle>mvn:org.springframework/spring-jdbc/3.0.0.RELEASE</bundle> > <bundle>mvn:org.springframework/spring-orm/3.0.0.RELEASE</bundle> > <bundle>mvn:org.aopalliance/com.springsource.org.aopalliance/1.0.0</bundle> > </feature> > </features> > > I am not sure what to make of this. Maybe someone on this list does? > BTW, I know that a spring-dm feature is shipped with karaf, however it > uses version 1.2.0 of the bundles and I'd like to use 1.2.1. > > best regards, Peter > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

