[JBoss JIRA] Created: (JBOSGI-211) Cannot run Microcontainer, Blueprint example on Equinox
by Thomas Diesler (JIRA)
Cannot run Microcontainer, Blueprint example on Equinox
-------------------------------------------------------
Key: JBOSGI-211
URL: https://jira.jboss.org/jira/browse/JBOSGI-211
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Integration (Equinox)
Reporter: Thomas Diesler
Fix For: JBossOSGi 1.0.x
java.lang.ClassCastException: org.jboss.osgi.microcontainer.internal.MicrocontainerDeployerServiceImpl cannot be cast to org.jboss.osgi.deployment.deployer.DeployerService
at org.jboss.osgi.testing.internal.EmbeddedRuntime.installBundle(EmbeddedRuntime.java:80)
at org.jboss.test.osgi.example.microcontainer.MicrocontainerTestCase.setUpClass(MicrocontainerTestCase.java:61)
This only happens when all the examples are run together. Individual test runs succeed with equinox-3.5.1
--
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
16 years, 1 month
[JBoss JIRA] Created: (JBOSGI-295) NullPointerException in ExportedPackageHelper constructor
by Andreas Scheerer (JIRA)
NullPointerException in ExportedPackageHelper constructor
---------------------------------------------------------
Key: JBOSGI-295
URL: https://jira.jboss.org/jira/browse/JBOSGI-295
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: jboss-osgi-spi
Reporter: Andreas Scheerer
In case of a null BundleContext the constructor org.jboss.osgi.spi.util.ExportedPackageHelper.ExportedPackageHelper(BundleContext) throws a NullPointerException. I think an IllegalStateException should be thrown instead.
Currently this NullPointerException occurs when the EmbeddedBundle.start() method is called for a bundle having a higher startlevel than the active framework start level. In this case the expression bundle.getBundleContext() will return null (passed to the ExportedPackageHelper) even if the bundle.start() was invoked before.
--
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
16 years, 2 months
[JBoss JIRA] Resolved: (JBOSGI-267) Allow multiple bundles to change state at once
by Thomas Diesler (JIRA)
[ https://jira.jboss.org/jira/browse/JBOSGI-267?page=com.atlassian.jira.plu... ]
Thomas Diesler resolved JBOSGI-267.
-----------------------------------
Resolution: Done
Bundle resolution is now all done in PackageAdminImpl
// Advance the bundles to stage CLASSLOADER and check at the end
advanceBundlesToClassloader(resolvableBundles);
try
{
DeployerClient deployerClient = getBundleManager().getDeployerClient();
deployerClient.checkComplete();
}
catch (DeploymentException ex)
{
log.error("Error resolving bundles: " + resolvableBundles, ex);
allResolved = false;
}
We only check for completness at the end when all bundles have been moved to CLASSLOADER
> Allow multiple bundles to change state at once
> ----------------------------------------------
>
> Key: JBOSGI-267
> URL: https://jira.jboss.org/jira/browse/JBOSGI-267
> Project: JBoss OSGi
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Core Framework
> Reporter: Thomas Diesler
> Assignee: Thomas Diesler
> Fix For: Framework 1.0.0 Alpha4
>
>
> Currently the BundleManager can only reslove bundles one-by-one
> deployerClient.change(unit.getName(), DeploymentStages.CLASSLOADER);
> deployerClient.checkComplete(unit.getName());
> bundleState.changeState(Bundle.RESOLVED);
> this results in uglyness in PackageAdmin
> int resolved = 1;
> while (resolved > 0)
> {
> resolved = 0;
> Iterator<OSGiBundleState> it = resolvableBundles.iterator();
> while (it.hasNext())
> {
> OSGiBundleState bundleState = it.next();
> if (bundleManager.resolveBundle(bundleState, false))
> {
> it.remove();
> resolved++;
> }
> }
> }
> PackageAdmin should be able to use an API that resolves multiple deployemnts at once.
--
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
16 years, 2 months