|
View:
New views
13 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandlerOccasional NPE in URLHandlersBundleStreamHandler
------------------------------------------------ Key: FELIX-1573 URL: https://issues.apache.org/jira/browse/FELIX-1573 Project: Felix Issue Type: Bug Components: Framework Affects Versions: felix-1.8.1 Reporter: Don Brown 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752872#action_12752872 ] Don Brown commented on FELIX-1573: ---------------------------------- I can't reproduce this on OSX, but can reliably on Linux, 1.5 JVM. > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1 > Reporter: Don Brown > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Issue Comment Edited: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752872#action_12752872 ] Don Brown edited comment on FELIX-1573 at 9/8/09 7:46 PM: ---------------------------------------------------------- I can't reproduce this on OSX (1.5 or 1.6), but can reliably on Linux (1.6.0_13) was (Author: mrdon): I can't reproduce this on OSX, but can reliably on Linux, 1.5 JVM. > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1 > Reporter: Don Brown > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Updated: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Don Brown updated FELIX-1573: ----------------------------- Affects Version/s: felix-2.0.0 > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1, felix-2.0.0 > Reporter: Don Brown > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752950#action_12752950 ] Don Brown commented on FELIX-1573: ---------------------------------- While there does seem to be a race condition here, there is fallback code that should handle the situation. In URLHandlers.getFrameworkFromContext(), if it can't determine the framework, it should go through the callstack to find a class loaded by the bundle class loader. Unfortunately, it matches based on the class name, which it mistakenly thinks should be "org.apache.felix.framework.searchpolicy.ModuleImpl.ModuleClassLoader". After much debugging, I realized the actual class name that will be returned from the classloader is "org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader". Since changing this string, I haven't seen the error occur again. > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1, felix-2.0.0 > Reporter: Don Brown > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Assigned: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Pauls reassigned FELIX-1573: --------------------------------- Assignee: Karl Pauls > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1, felix-2.0.0 > Reporter: Don Brown > Assignee: Karl Pauls > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753052#action_12753052 ] Karl Pauls commented on FELIX-1573: ----------------------------------- Yeah, it sounds like this is an oversight from the refactoring. It used to be different but now the ModuleClassLoader is an inner class so that doesn't get used correctly. I will fix it asap. > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1, felix-2.0.0 > Reporter: Don Brown > Assignee: Karl Pauls > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Resolved: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Pauls resolved FELIX-1573. ------------------------------- Resolution: Fixed Fix Version/s: felix-2.2.0 I just committed a fix for this. As I said, its an oversight from the refactoring. Please test and let us know whether it works for you. Thanks for reporting. > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1, felix-2.0.0 > Reporter: Don Brown > Assignee: Karl Pauls > Fix For: felix-2.2.0 > > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Reopened: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Don Brown reopened FELIX-1573: ------------------------------ I don't know how I missed this, but the class name is still wrong - should be: {code} org.apache.felix.framework.ModuleImpl$ModuleClassLoader {code} not, as it is now, {code} org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader {code} > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1, felix-2.0.0 > Reporter: Don Brown > Assignee: Karl Pauls > Fix For: felix-2.0.1 > > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Issue Comment Edited: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772419#action_12772419 ] Don Brown edited comment on FELIX-1573 at 11/2/09 4:57 AM: ----------------------------------------------------------- I don't know how I missed this, but the class name is still wrong - should be: org.apache.felix.framework.ModuleImpl$ModuleClassLoader not, as it is now, org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader was (Author: mrdon): I don't know how I missed this, but the class name is still wrong - should be: {code} org.apache.felix.framework.ModuleImpl$ModuleClassLoader {code} not, as it is now, {code} org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader {code} > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1, felix-2.0.0 > Reporter: Don Brown > Assignee: Karl Pauls > Fix For: felix-2.0.1 > > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772457#action_12772457 ] Karl Pauls commented on FELIX-1573: ----------------------------------- Did you try with the current trunk/2.0.2? This should be fixed by FELIX-1834 (as well as the other issue you mentioned on the 2.0.1 release - I hope). > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1, felix-2.0.0 > Reporter: Don Brown > Assignee: Karl Pauls > Fix For: felix-2.0.1 > > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772495#action_12772495 ] Don Brown commented on FELIX-1573: ---------------------------------- Yeah, seems fixed in trunk, but it is still broken in 2.0.1, so maybe just close this ticket against 2.0.2 instead. > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1, felix-2.0.0 > Reporter: Don Brown > Assignee: Karl Pauls > Fix For: felix-2.0.1 > > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Closed: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler[ https://issues.apache.org/jira/browse/FELIX-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard S. Hall closed FELIX-1573. ---------------------------------- Resolution: Fixed Closing this issue since there was a commit against 2.0.1 for this issue, so there is no reason to move this issue to 2.0.2 because it didn't fully resolve the bug. We have FELIX-1834 for the complete fix in 2.0.2. > Occasional NPE in URLHandlersBundleStreamHandler > ------------------------------------------------ > > Key: FELIX-1573 > URL: https://issues.apache.org/jira/browse/FELIX-1573 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1, felix-2.0.0 > Reporter: Don Brown > Assignee: Karl Pauls > Fix For: felix-2.0.1 > > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
| Free embeddable forum powered by Nabble | Forum Help |