Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » java.lang.IllegalStateException: Module has been uninstalled(issue with org.eclipse.osgi.internal.framework.EquinoxBundle)
java.lang.IllegalStateException: Module has been uninstalled [message #1748835] Tue, 29 November 2016 08:45 Go to next message
Mayur Mohan is currently offline Mayur MohanFriend
Messages: 2
Registered: November 2016
Junior Member
Hi all,

i am running a solution based on Equinox OSGI runtime. i recently started seeing issue with framework, i could see below exceptions:

first i get below Error:

[EXCEPTION]
java.util.concurrent.ExecutionException: com.sun.org.apache.xerces.internal.utils.ConfigurationError: Provider com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl could not be instantiated: java.lang.IllegalStateException: Module has been uninstalled.
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:206)
at com.sap.iotservices.connector.component.esp.ESPConnector.isConnected(ESPConnector.java:752)
at com.sap.iotservices.connector.component.esp.ESPEndpoint.processIoTEvent(ESPEndpoint.java:220)
at com.sap.iotservices.connector.component.esp.IoTEventDispatcher.run(IoTEventDispatcher.java:103)
Caused by: com.sun.org.apache.xerces.internal.utils.ConfigurationError: Provider com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl could not be instantiated: java.lang.IllegalStateException: Module has been uninstalled.
at com.sun.org.apache.xerces.internal.utils.ObjectFactory.newInstance(ObjectFactory.java:166)
at com.sun.org.apache.xerces.internal.utils.ObjectFactory.newInstance(ObjectFactory.java:143)
at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:64)
at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:49)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.<init>(XML11Configuration.java:578)
at com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.<init>(XIncludeAwareParserConfiguration.java:130)
at com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.<init>(XIncludeAwareParserConfiguration.java:91)
at com.sun.org.apache.xerces.internal.parsers.SAXParser.<init>(SAXParser.java:111)
at com.sun.org.apache.xerces.internal.parsers.SAXParser.<init>(SAXParser.java:96)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.<init>(SAXParserImpl.java:412)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.<init>(SAXParserImpl.java:136)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:81)
at org.apache.xmlrpc.util.SAXParsers.newXMLReader(SAXParsers.java:57)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.newXMLReader(XmlRpcStreamTransport.java:176)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:181)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
at com.sybase.esp.sdk.internal.ProjectGateway.isQuiesced(Unknown Source)
at com.sybase.esp.sdk.impl.ProjectImpl.checkConnection(Unknown Source)
at com.sybase.esp.sdk.impl.ProjectImpl.isConnected(Unknown Source)


followed by :
[EXCEPTION]
java.lang.IllegalStateException: Module has been uninstalled.
at org.eclipse.osgi.internal.framework.EquinoxBundle.checkValid(EquinoxBundle.java:928)
at org.eclipse.osgi.internal.framework.EquinoxBundle.getResources(EquinoxBundle.java:618)
at org.springframework.osgi.util.BundleDelegatingClassLoader.findResources(BundleDelegatingClassLoader.java:137)
at java.lang.ClassLoader.getResources(ClassLoader.java:1139)
at java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.java:348)
at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:393)
at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:474)
at javax.xml.parsers.FactoryFinder$1.run(FactoryFinder.java:293)
at java.security.AccessController.doPrivileged(Native Method)
at javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:289)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:267)
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:120)

what could be the issue and how to fix this problem?

Regards,
Mayur

Re: java.lang.IllegalStateException: Module has been uninstalled [message #1748879 is a reply to message #1748835] Tue, 29 November 2016 16:33 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
You would need to have a look at org.springframework.osgi.util.BundleDelegatingClassLoader

It appears this class loader has a reference to a bundle that has been uninstalled.
Re: java.lang.IllegalStateException: Module has been uninstalled [message #1748910 is a reply to message #1748879] Wed, 30 November 2016 04:24 Go to previous messageGo to next message
Mayur Mohan is currently offline Mayur MohanFriend
Messages: 2
Registered: November 2016
Junior Member
Thanks Thomas,

here trigger point looks like Sybase ESP SDK ->xml rpc library-> JDK. i am wondering how org.springframework.osgi.util.BundleDelegatingClassLoader refers to an uninstalled bundle!!

what might be possible way i can find this out? , any traces i can generate for BundleDelegatingClassLoader?

Regards,
Mayur
Re: java.lang.IllegalStateException: Module has been uninstalled [message #1748960 is a reply to message #1748910] Wed, 30 November 2016 14:09 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
Sorry, I am unsure where org.springframework.osgi.util.BundleDelegatingClassLoader is maintained. It is not part of Equinox. I know there is (was?) a project at spring for OSGi integration. I am unsure what the state of that project is though.
Previous Topic:Multiple versions of a dependency
Next Topic:site.xml - controlling "feature url" attribute in a headless build
Goto Forum:
  


Current Time: Thu Oct 03 19:37:45 GMT 2024

Powered by FUDForum. Page generated in 0.06048 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top