You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by ext2 <xu...@tongtech.com> on 2011/06/02 06:14:55 UTC

IllegalStateException of ServiceMix4.3

Hi:    

         When I hot deploy a bundle  which contains a spring configured
camel route. Sometimes a Exception( java.lang.IllegalStateException: The
bundle is uninstalled);

 

       The problem maybe have nothing to do with camel, I have tried
camel-cxf as endpoint and camel-jms as endpoint; the two bundle both raise
such exceptions sometimes;

       But tracking the exception's stack overflow, It seems the
thread-context's class loader is switch to a invalid bundle's class loader
(it point to the uninstalled bundle , but not the updated new bundle's class
loader.  In a details: while hot-deploy , the bundle will be updated, so in
a short period maybe old bundle 's class will still exists , and the new
bundle also installed.)

       Does anyone experienced such a problem? And any suggestion ?

 

 

       Following is  stack overflow  of the bundle which using Camel-CXF :

 

Caused by: java.lang.IllegalStateException: The bundle is uninstalled. 
at org.apache.felix.framework.Felix.getBundleResource(Felix.java:1414) 
at org.apache.felix.framework.BundleImpl.getResource(BundleImpl.java:598) 
at
org.springframework.osgi.util.BundleDelegatingClassLoader.findResource(Bundl
eDelegatingClassLoader.java:124) 
at
org.springframework.osgi.util.BundleDelegatingClassLoader.getResource(Bundle
DelegatingClassLoader.java:146) 
at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159) 
at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:110) 
at java.security.AccessController.doPrivileged(Native Method) 
at
javax.xml.parsers.SecuritySupport.getResourceAsStream(SecuritySupport.java:1
03) 
at
javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:26
4) 
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:237) 
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
java:137)