aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Mitchell (Created) (JIRA)" <>
Subject [jira] [Created] (ARIES-816) Java 2 security AccesControlException when getting blueprint service
Date Wed, 25 Jan 2012 13:32:41 GMT
Java 2 security AccesControlException when getting blueprint service

                 Key: ARIES-816
             Project: Aries
          Issue Type: Bug
          Components: Blueprint
    Affects Versions: blueprint.core-0.4
            Reporter: Tim Mitchell

When getting a blueprint service in a security application server using Apache Aries, we are
getting the following exception: Access denied (org.osgi.framework.ServicePermission
( get)
	at java.lang.SecurityManager.checkPermission(
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.checkGetServicePermission(
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(
	at org.apache.aries.blueprint.container.ReferenceRecipe.getService(
	at org.apache.aries.blueprint.container.ReferenceRecipe.access$000(
	at org.apache.aries.blueprint.container.ReferenceRecipe$

The blueprint ReferenceRecipe needs a doPrivileged block around the getService() call.

I have attached the diff.txt for the changes needed to the ReferenceRecipe class.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message