Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
framework-1.8.1, framework-2.0.0
-
None
Description
I'm occasionally seeing startup failures in my integration tests due to an NPE in URLHandlersBundleStreamHandler that looks like some sort of race condition:
- Started bundle org.springframework (5)
08-Sep-2009 02:54:37 - Loading XML bean definitions from OSGi resource[bundle://6.0:0/META-INF/spring/extender/spring-event-bridge.xml|bnd.id=6|bnd.sym=org.springframework.osgi.extender]
08-Sep-2009 02:54:37 - Unable to process extender configuration
08-Sep-2009 02:54:37 org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resource[bundle://6.0:0/META-INF/spring/extender/spring-event-bridge.xml|bnd.id=6|bnd.sym=org.springframework.osgi.extender]; nested exception is java.io.IOException: No framework context found
08-Sep-2009 02:54:37 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
08-Sep-2009 02:54:37 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
08-Sep-2009 02:54:37 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
08-Sep-2009 02:54:37 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
08-Sep-2009 02:54:37 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
08-Sep-2009 02:54:37 at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)
08-Sep-2009 02:54:37 at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)
08-Sep-2009 02:54:37 at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
08-Sep-2009 02:54:37 at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
08-Sep-2009 02:54:37 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
08-Sep-2009 02:54:37 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:69)
08-Sep-2009 02:54:37 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:186)
08-Sep-2009 02:54:37 at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
08-Sep-2009 02:54:37 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:182)
08-Sep-2009 02:54:37 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:89)
08-Sep-2009 02:54:37 at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
08-Sep-2009 02:54:37 at org.springframework.osgi.extender.internal.support.ExtenderConfiguration.<init>(ExtenderConfiguration.java:169)
08-Sep-2009 02:54:37 at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.start(ContextLoaderListener.java:380)
08-Sep-2009 02:54:37 at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
08-Sep-2009 02:54:37 at org.apache.felix.framework.Felix.startBundle(Felix.java:1461)
08-Sep-2009 02:54:37 at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
08-Sep-2009 02:54:37 at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
08-Sep-2009 02:54:37 at java.lang.Thread.run(Thread.java:595)
08-Sep-2009 02:54:37 Caused by: java.io.IOException: No framework context found
08-Sep-2009 02:54:37 at org.apache.felix.framework.URLHandlersBundleStreamHandler.openConnection(URLHandlersBundleStreamHandler.java:72)
08-Sep-2009 02:54:37 at java.net.URL.openConnection(URL.java:943)
08-Sep-2009 02:54:37 at org.springframework.osgi.io.OsgiBundleResource.getInputStream(OsgiBundleResource.java:180)
08-Sep-2009 02:54:37 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
08-Sep-2009 02:54:37 ... 22 more
Attachments
Issue Links
- is part of
-
FELIX-1834 java.io.IOException: No framework context found when embedding felix frameworks as bundles
- Resolved