[jboss-osgi-issues] [JBoss JIRA] Resolved: (JBOSGI-292) PackageAdmin cannot obtain classloading metadata
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Thu Feb 18 09:10:10 EST 2010
[ https://jira.jboss.org/jira/browse/JBOSGI-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler resolved JBOSGI-292.
-----------------------------------
Resolution: Done
BundleManager.addBundle is now called from AbstractOSGiClassLoadingDeployer after the CLMD has been attached
/**
* Add a bundle to the manager.
*
* Note, the bundle must be metadata complete when it is added to the manager.
* An extender might pickup the INSTALLED event and use PackageAdmin to examine the
* exported packages for example.
*
* @param bundleState the bundle state
* @throws IllegalArgumentException for a null bundle state
*/
public void addBundle(AbstractBundleState bundleState)
> PackageAdmin cannot obtain classloading metadata
> ------------------------------------------------
>
> Key: JBOSGI-292
> URL: https://jira.jboss.org/jira/browse/JBOSGI-292
> Project: JBoss OSGi
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Core Framework
> Reporter: Thomas Diesler
> Assignee: Thomas Diesler
> Fix For: JBossOSGi 1.0.0 Beta7
>
>
> [14:18:06] Thomas Diesler: There is an issue because the bundle manager fires the INSTALLED event before the CL metadata is available
> [14:18:06] Thomas Diesler: BM.addDeployemnt(DU) calls BM.addBundle(budleState) which fires the INSTALLED event asynchronously
> [14:18:25] Ales Justin: hmmm ... ugly
> [14:18:39] Thomas Diesler: an extender might pick up the event and examine the exported packages via package admin
> [14:19:03] Thomas Diesler: which fails because the CL metadata deployer was not executed
> Caused by: java.lang.IllegalStateException: Cannot obtain ClassLoadingMetaData
> at org.jboss.osgi.framework.packageadmin.PackageAdminImpl.getExportedPackages(PackageAdminImpl.java:149)
> at org.jboss.osgi.framework.packageadmin.PackageAdminImpl.getExportedPackages(PackageAdminImpl.java:176)
> at org.apache.aries.jmx.util.FrameworkUtils.getBundleImportedPackages(FrameworkUtils.java:265)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-osgi-issues
mailing list