Details

      Description

      The EventAdminTestCase.testEventHandler fails consistently in the Hudson remote Runtime test with

      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)
      

      The reason is that the EventAdmin service is not registered. When I enable TRACE logging I see

      [tdiesler@tdbell jbosgi]$ cat ~/Desktop/server.log | grep org.osgi.service.event.EventAdmin | grep REGISTER
      2010-06-18 10:44:04,991 DEBUG [org.jboss.osgi.framework.plugins.internal.FrameworkEventsPluginImpl] Service REGISTERED: Service

      Unknown macro: {id=85,classes=[org.osgi.service.event.EventAdmin]}


      2010-06-18 10:44:05,107 DEBUG [org.jboss.osgi.framework.plugins.internal.FrameworkEventsPluginImpl] Service UNREGISTERING: Service

      2010-06-18 10:45:05,221 DEBUG [org.jboss.osgi.framework.plugins.internal.FrameworkEventsPluginImpl] Service REGISTERED: Service

      Unknown macro: {id=112,classes=[org.osgi.service.event.EventAdmin]}

      [tdiesler@tdbell jbosgi]$ cat ~/Desktop/server.log | grep getServiceReference | grep org.osgi.service.event.EventAdmin
      2010-06-18 10:44:04,264 TRACE [org.jboss.osgi.framework.bundle.ServiceManagerPluginImpl] getServiceReferences(Bundle

      Unknown macro: {jboss-osgi-blueprint-1.0.0.Beta2}

      ,org.osgi.service.event.EventAdmin,null,true)
      2010-06-18 10:44:41,167 TRACE [org.jboss.osgi.framework.bundle.ServiceManagerPluginImpl] getServiceReferences(Bundle

      Unknown macro: {system.bundle-0.0.0}

      ,org.osgi.service.event.EventAdmin,null,true)
      2010-06-18 10:44:41,852 TRACE [org.jboss.osgi.framework.bundle.ServiceManagerPluginImpl] getServiceReferences(Bundle

      Unknown macro: {example-event-0.0.0}

      ,org.osgi.service.event.EventAdmin,null,true)

      In the log I also see

      2010-06-18 10:44:05,107 DEBUG [org.jboss.osgi.framework.plugins.internal.FrameworkEventsPluginImpl] Service UNREGISTERING: Service

      {id=85,classes=[org.osgi.service.event.EventAdmin]}

      2010-06-18 10:44:05,108 TRACE [org.jboss.osgi.framework.bundle.ServiceManagerPluginImpl] getServiceReferences(Bundle

      {org.apache.felix.eventadmin-1.2.2}

      ,org.osgi.framework.hooks.service.FindHook,null,true)
      2010-06-18 10:44:05,108 TRACE [org.jboss.osgi.framework.bundle.ServiceManagerPluginImpl] Considered contexts: : 108
      2010-06-18 10:44:05,107 DEBUG [org.apache.felix.configadmin] Running task ManagedService Update: pid=org.apache.felix.eventadmin.impl.EventAdmin
      2010-06-18 10:44:05,113 TRACE [org.jboss.osgi.framework.bundle.ServiceManagerPluginImpl] Remaining contexts: : 0

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                thomas.diesler Thomas Diesler
                Reporter:
                thomas.diesler Thomas Diesler
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: