[jboss-osgi-issues] [JBoss JIRA] Commented: (JBOSGI-338) Cannot obtain EventAdmin service

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Thu Jun 10 07:01:38 EDT 2010


    [ https://jira.jboss.org/browse/JBOSGI-338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12534923#action_12534923 ] 

Thomas Diesler commented on JBOSGI-338:
---------------------------------------

Bundle-Activator: org.apache.felix.eventadmin.impl.Activator


Import-Package: 
org.osgi.framework;version="1.3",
org.osgi.service.cm;r
esolution:=optional;version="[1.2,2)",
org.osgi.service.event;version=
"1.2",
org.osgi.service.metatype;resolution:=optional;version="[1.1,2)
"


Export-Package: 
org.osgi.service.event;uses:="org.osgi.framework";vers
ion="1.2"


Bundle-Version: 1.2.2

Bundle-Name: Apache Felix EventAdmin

Bundle-Description: This bundle provides an implementation of the OSGi
 R4 EventAdmin service.

Bundle-SymbolicName: org.apache.felix.eventadmin

Bundle-ManifestVersion: 2

Export-Service: org.osgi.service.event.EventAdmin
Import-Service: org.osgi.service.event.EventHandler, org.osgi.service.
log.LogService, org.osgi.service.log.LogReaderService


DynamicImport-Package: org.osgi.service.log



> Cannot obtain EventAdmin service
> --------------------------------
>
>                 Key: JBOSGI-338
>                 URL: https://jira.jboss.org/browse/JBOSGI-338
>             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 Beta8
>
>
> java.lang.IllegalArgumentException: Null reference
> 	at org.jboss.osgi.framework.bundle.ServiceManagerPluginImpl.getService(ServiceManagerPluginImpl.java:195)
> 	at org.jboss.osgi.framework.bundle.AbstractBundleState.getService(AbstractBundleState.java:521)
> 	at org.jboss.osgi.framework.bundle.OSGiBundleContextWrapper.getService(OSGiBundleContextWrapper.java:145)
> 	at org.jboss.test.osgi.example.event.EventAdminTestCase.testEventHandler(EventAdminTestCase.java:106)
> It seems that the test bundle and the service bundle wire to different exporters of the eventadmin API

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-osgi-issues mailing list