-
1. Re: what is JBOSGI011283: Revision content already closed?
thomas.diesler Mar 12, 2013 5:08 AM (in response to jrantav)It most likely means that something that was holding on to a reference to a bundle tries to access that bundle's content when the target bundle was already unistalled from the framework. Who is accessing that URL?
-
2. Re: what is JBOSGI011283: Revision content already closed?
jrantav Mar 12, 2013 7:01 AM (in response to thomas.diesler)Only JBoss deployer is...
Basically, that is a bundle exposing OSGi services that are needed by some other services in another bundle, and those services are used by an osgified war. Gemini Blueprint is used for the wiring. But nothing is accessing the war. So the whole osgi bundle should be replaceable.
-
3. Re: what is JBOSGI011283: Revision content already closed?
thomas.diesler Mar 12, 2013 7:35 AM (in response to jrantav)Still, I stale reference is being accessed. You could try to set a breakpoint in RevisionContent to what is closing that BundleRevision.
-
4. Re: what is JBOSGI011283: Revision content already closed?
sumit.gampawar Jun 3, 2013 1:14 AM (in response to jrantav)In new JBOSS EAP there are regular checks on every resource whether it is already closed or not, if it finds this reosurce is closed and tries to access it then this exception occurs.You can see RevisionContent and RevisionContentResourceLoader classes in jbosgi-framework.jar in jboss modules. While undeploying bundle , undeploy method need to close all the Singleton classes and release all the resources.This will resolve the issue.
-
5. Re: what is JBOSGI011283: Revision content already closed?
jrantav Jun 4, 2013 2:57 AM (in response to sumit.gampawar)Sumit Gampawar wrote:
In new JBOSS EAP there are regular checks on every resource whether it is already closed or not, if it finds this reosurce is closed and tries to access it then this exception occurs.You can see RevisionContent and RevisionContentResourceLoader classes in jbosgi-framework.jar in jboss modules. While undeploying bundle , undeploy method need to close all the Singleton classes and release all the resources.This will resolve the issue.
Isn't this undeploy method called by JBoss and not something an app developer should worry about?
-
6. Re: what is JBOSGI011283: Revision content already closed?
sumit.gampawar Jun 4, 2013 3:12 AM (in response to jrantav)While undeploying OSGI bundle stop method of Activator is called , release resources. In my case one Singleton factory class was the reason so on simply closing and nullifying that object solved this problem