Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-96060

NullPointerExceptions thrown when stopping a test class after test execution

    Details

      Description

      NullPointerExceptions are being thrown from the PortletTracker when stopping a test class that has completed execution.

           [exec] 23:43:46,037 ERROR [Framework Event Dispatcher: Equinox Container: a6a6e81a-c7c6-4486-b13d-78d609bcab59][com_liferay_portal_osgi_web_portlet_tracker:97] FrameworkEvent ERROR 
           [exec] java.lang.NullPointerException
           [exec] 	at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker.removedService(PortletTracker.java:233)
           [exec] 	at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker.removedService(PortletTracker.java:111)
           [exec] 	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:969)
           [exec] 	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1)
           [exec] 	at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
           [exec] 	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:911)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:891)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:804)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
           [exec] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.unregister(AbstractComponentManager.java:927)
           [exec] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.unregister(AbstractComponentManager.java:892)
           [exec] 	at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:135)
           [exec] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.unregisterService(AbstractComponentManager.java:969)
           [exec] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.doDeactivate(AbstractComponentManager.java:823)
           [exec] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:805)
           [exec] 	at org.apache.felix.scr.impl.manager.DependencyManager.deactivateComponentManager(DependencyManager.java:2332)
           [exec] 	at org.apache.felix.scr.impl.manager.DependencyManager.access$400(DependencyManager.java:56)
           [exec] 	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.removedService(DependencyManager.java:1125)
           [exec] 	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.removedService(DependencyManager.java:1007)
           [exec] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1242)
           [exec] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1137)
           [exec] 	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.untrack(ServiceTracker.java:997)
           [exec] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1176)
           [exec] 	at org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:125)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:891)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:804)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
           [exec] 	at com.liferay.portal.spring.extender.internal.bean.ApplicationContextServicePublisherUtil.unregisterContext(ApplicationContextServicePublisherUtil.java:105)
           [exec] 	at com.liferay.portal.spring.extender.internal.context.ModuleApplicationContextRegistrator.stop(ModuleApplicationContextRegistrator.java:130)
           [exec] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec] 	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec] 	at org.apache.felix.dm.InvocationUtil.invokeMethod(InvocationUtil.java:111)
           [exec] 	at org.apache.felix.dm.InvocationUtil.invokeCallbackMethod(InvocationUtil.java:66)
           [exec] 	at org.apache.felix.dm.impl.ComponentImpl.invokeCallbackMethod(ComponentImpl.java:769)
           [exec] 	at org.apache.felix.dm.impl.ComponentImpl.invoke(ComponentImpl.java:760)
           [exec] 	at org.apache.felix.dm.impl.ComponentImpl.unbindService(ComponentImpl.java:737)
           [exec] 	at org.apache.felix.dm.impl.ComponentImpl.access$500(ComponentImpl.java:54)
           [exec] 	at org.apache.felix.dm.impl.ComponentImpl$14.run(ComponentImpl.java:247)
           [exec] 	at org.apache.felix.dm.impl.SerialExecutor.runTask(SerialExecutor.java:137)
           [exec] 	at org.apache.felix.dm.impl.SerialExecutor.runTasks(SerialExecutor.java:119)
           [exec] 	at org.apache.felix.dm.impl.SerialExecutor.execute(SerialExecutor.java:85)
           [exec] 	at org.apache.felix.dm.impl.ComponentImpl.calculateStateChanges(ComponentImpl.java:252)
           [exec] 	at org.apache.felix.dm.impl.ComponentImpl.stop(ComponentImpl.java:459)
           [exec] 	at org.apache.felix.dm.DependencyManager.remove(DependencyManager.java:177)
           [exec] 	at com.liferay.portal.spring.extender.internal.context.ModuleApplicationContextExtender$ModuleApplicationContextExtension.destroy(ModuleApplicationContextExtender.java:116)
           [exec] 	at com.liferay.portal.spring.extender.internal.context.ModuleApplicationContextExtender.removedBundle(ModuleApplicationContextExtender.java:102)
           [exec] 	at com.liferay.portal.spring.extender.internal.context.ModuleApplicationContextExtender.removedBundle(ModuleApplicationContextExtender.java:59)
           [exec] 	at org.osgi.util.tracker.BundleTracker$Tracked.customizerRemoved(BundleTracker.java:501)
           [exec] 	at org.osgi.util.tracker.BundleTracker$Tracked.customizerRemoved(BundleTracker.java:1)
           [exec] 	at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
           [exec] 	at org.osgi.util.tracker.BundleTracker.close(BundleTracker.java:195)
           [exec] 	at com.liferay.portal.spring.extender.internal.context.ModuleApplicationContextExtender.deactivate(ModuleApplicationContextExtender.java:257)
           [exec] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec] 	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228)
           [exec] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41)
           [exec] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664)
           [exec] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510)
           [exec] 	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:317)
           [exec] 	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:307)
           [exec] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.disposeImplementationObject(SingleComponentManager.java:408)
           [exec] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.deleteComponent(SingleComponentManager.java:163)
           [exec] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.doDeactivate(AbstractComponentManager.java:831)
           [exec] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:805)
           [exec] 	at org.apache.felix.scr.impl.manager.DependencyManager.deactivateComponentManager(DependencyManager.java:2332)
           [exec] 	at org.apache.felix.scr.impl.manager.DependencyManager.access$400(DependencyManager.java:56)
           [exec] 	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.removedService(DependencyManager.java:1125)
           [exec] 	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.removedService(DependencyManager.java:1007)
           [exec] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1242)
           [exec] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1137)
           [exec] 	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.untrack(ServiceTracker.java:997)
           [exec] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1176)
           [exec] 	at org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:125)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:891)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:804)
           [exec] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
           [exec] 	at com.liferay.registry.internal.ServiceRegistrationWrapper.unregister(ServiceRegistrationWrapper.java:77)
           [exec] 	at com.liferay.portal.internal.servlet.MainServlet.destroy(MainServlet.java:151)
           [exec] 	at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1280)
           [exec] 	at org.apache.catalina.core.StandardWrapper.stopInternal(StandardWrapper.java:1581)
           [exec] 	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
           [exec] 	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5376)
           [exec] 	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
           [exec] 	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1393)
           [exec] 	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1382)
           [exec] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           [exec] 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
           [exec] 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
           [exec] 	at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:969)
           [exec] 	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
           [exec] 	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1393)
           [exec] 	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1382)
           [exec] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           [exec] 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
           [exec] 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
           [exec] 	at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:969)
           [exec] 	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
           [exec] 	at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:475)
           [exec] 	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
           [exec] 	at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:990)
           [exec] 	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
           [exec] 	at org.apache.catalina.startup.Catalina.stop(Catalina.java:707)
           [exec] 	at org.apache.catalina.startup.Catalina.start(Catalina.java:669)
           [exec] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec] 	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec] 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
           [exec] 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              anthony.chu Anthony Chu
              Reporter:
              anthony.chu Anthony Chu
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 26 weeks, 5 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP12
                  7.1.X
                  7.2.X
                  Master