Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1220

Intermittent stacktrace when starting and exiting Roo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.1.0.M2
    • Fix Version/s: 1.1.0.M3
    • Component/s: @ CORE
    • Labels:
      None

      Description

      Occasionally, Roo will display a stacktrace upon startup. A stacktrace on shutdown will appear also if the startup issue appears.
      The problem is always connected with the SerializableMetadataProviderImpl (ie have not seen this problem with any other metadata provider or class)

      Startup:

      [email protected]:~/projects/roo-test/petclinic_orig$ roo.sh
      16/08/2010 11:37:38 AM org.springframework.roo.felix.JdkDelegatingLogListener logNow
      SEVERE: [org.springframework.roo.addon.serializable [35]] [org.springframework.roo.addon.serializable.SerializableMetadataProviderImpl] Cannot create component instance due to failure to bind reference metadataService
      16/08/2010 11:37:38 AM org.springframework.roo.felix.JdkDelegatingLogListener logNow
      SEVERE: [org.springframework.roo.addon.serializable [35]] FrameworkEvent ERROR
      org.apache.felix.log.LogException: org.osgi.framework.ServiceException: Service factory returned null.
      at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:338)
      at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220)
      at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322)
      at org.apache.felix.framework.Felix.getService(Felix.java:2913)
      at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330)
      at org.apache.felix.scr.impl.manager.DependencyManager.getService(DependencyManager.java:761)
      at org.apache.felix.scr.impl.manager.DependencyManager$1.getInstance(DependencyManager.java:1003)
      at org.apache.felix.scr.impl.helper.BindMethod.getParameters(BindMethod.java:436)
      at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:212)
      at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
      at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:542)
      at org.apache.felix.scr.impl.helper.BaseMethod$NotResolved.invoke(BaseMethod.java:500)
      at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:434)
      at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:991)
      at org.apache.felix.scr.impl.manager.DependencyManager.bind(DependencyManage
      at org.apache.felix.scr.impl.manager.DependencyManager.open(DependencyManager.java:831)
      at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:200)
      at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
      at org.apache.felix.scr.impl.manager.DelayedComponentManager.createRealComponent(DelayedComponentManager.java:91)
      at org.apache.felix.scr.impl.manager.AbstractComponentManager$Registered.getService(AbstractComponentManager.java:1139)
      at org.apache.felix.scr.impl.manager.DelayedComponentManager.getService(DelayedComponentManager.java:85)
      at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:306)
      at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220)
      at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322)
      at org.apache.felix.framework.Felix.getService(Felix.java:2913)
      at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330)
      at org.apache.felix.scr.impl.manager.DependencyManager.getService(DependencyManager.java:761)
      at org.apache.felix.scr.impl.manager.DependencyManager$1.getInstance(DependencyManager.java:1003)
      at org.apache.felix.scr.impl.helper.BindMethod.getParameters(BindMethod.java:436)
      at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:212)
      at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
      at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:542)
      at org.apache.felix.scr.impl.helper.BaseMethod$NotResolved.invoke(BaseMethod.java:500)
      at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:434)
      at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:991)
      at org.apache.felix.scr.impl.manager.DependencyManager.bind(DependencyManager.java:907)
      at org.apache.felix.scr.impl.manager.DependencyManager.open(DependencyManager.java:831)
      at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:200)
      at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
      at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:991)
      at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:298)
      at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.doRun(AbstractComponentManager.java:505)
      at org.apache.felix.scr.impl.ComponentActivatorTask.run(ComponentActivatorTask.java:67)
      at org.apache.felix.scr.impl.ComponentActorThread.run(ComponentActorThread.java:96)
      at java.lang.Thread.run(Thread.java:619)

      Shutdown:
      roo> q
      [Thread-3] [org.springframework.roo.addon.serializable [35]]
      FrameworkEvent ERROR
      org.apache.felix.log.LogException:
      org.osgi.framework.ServiceException: Service factory returned null.
      at
      org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:338)
      at
      org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220)
      at
      org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322)
      at
      org.apache.felix.framework.Felix.getService(Felix.java:2913)
      at
      org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330)
      at
      org.apache.felix.scr.impl.manager.DependencyManager.getService(DependencyManager.java:761)
      at
      org.apache.felix.scr.impl.manager.DependencyManager$3.getInstance(DependencyManager.java:1105)
      at
      org.apache.felix.scr.impl.helper.BindMethod.getParameters(BindMethod.java:436)
      at
      org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:212)
      at
      org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
      at
      org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:542)
      at
      org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:434)
      at
      org.apache.felix.scr.impl.manager.DependencyManager.invokeUnbindMethod(DependencyManager.java:1094)
      at
      org.apache.felix.scr.impl.manager.DependencyManager.serviceRemoved(DependencyManager.java:400)
      at
      org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:251)
      at
      org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:864)
      at
      org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:732)
      at
      org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
      at
      org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3619)
      at
      org.apache.felix.framework.Felix.access$000(Felix.java:39)
      at
      org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:667)
      at
      org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:124)
      at
      org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:129)
      at
      org.apache.felix.scr.impl.manager.AbstractComponentManager.unregisterComponentService(AbstractComponentManager.java:429)
      at
      org.apache.felix.scr.impl.manager.AbstractComponentManager$Satisfied.deactivate(AbstractComponentManager.java:1065)
      at
      org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:303)
      at
      org.apache.felix.scr.impl.manager.DependencyManager.serviceRemoved(DependencyManager.java:343)
      at
      org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:251)
      at
      org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:864)
      at
      org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:732)
      at
      org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
      at
      org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3619)
      at
      org.apache.felix.framework.Felix.access$000(Felix.java:39)
      at
      org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:667)
      at
      org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:124)
      at
      org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:129)
      at
      org.apache.felix.scr.impl.manager.AbstractComponentManager.unregisterComponentService(AbstractComponentManager.java:429)
      at
      org.apache.felix.scr.impl.manager.AbstractComponentManager$Satisfied.deactivate(AbstractComponentManager.java:1065)
      at
      org.apache.felix.scr.impl.manager.AbstractComponentManager.disposeInternal(AbstractComponentManager.java:322)
      at
      org.apache.felix.scr.impl.manager.AbstractComponentManager.dispose(AbstractComponentManager.java:185)
      at
      org.apache.felix.scr.impl.config.ConfiguredComponentHolder.disposeComponents(ConfiguredComponentHolder.java:275)
      at
      org.apache.felix.scr.impl.BundleComponentActivator.dispose(BundleComponentActivator.java:319)
      at
      org.apache.felix.scr.impl.Activator.disposeComponents(Activator.java:277)
      at
      org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:178)
      at
      org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)
      at
      org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)
      at
      org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
      at
      org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3608)
      at
      org.apache.felix.framework.Felix.stopBundle(Felix.java:2114)
      at
      org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
      at
      org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
      at java.lang.Thread.run(Thread.java:619)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              balex Ben Alex
              Reporter:
              stewarta Alan Stewart
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: