felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (FELIX-1573) Occasional NPE in URLHandlersBundleStreamHandler
Date Mon, 02 Nov 2009 04:57:01 GMT

     [ 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.


Mime
View raw message