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

After running IdentifiableOSGiServiceTest, portal shutdown will trigger java.lang.UnsupportedOperationException osgi log failure

    Details

      Description

      This is actually caused by trash compat jar. After removing all compat jar, this won't happen anymore, then the protection logic can be removed.

      Failure message is osgi log, like:

         [junit] java.lang.UnsupportedOperationException
          [junit] 	at com.liferay.portlet.trash.service.base.TrashEntryLocalServiceBaseImpl.getOSGiServiceIdentifier(TrashEntryLocalServiceBaseImpl.java)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
          [junit] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
          [junit] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
          [junit] 	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
          [junit] 	at com.sun.proxy.$Proxy114.getOSGiServiceIdentifier(Unknown Source)
          [junit] 	at com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiServiceUtil$IdentifiableOSGiServiceServiceTrackerCustomizer.removedService(IdentifiableOSGiServiceUtil.java:102)
          [junit] 	at com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiServiceUtil$IdentifiableOSGiServiceServiceTrackerCustomizer.removedService(IdentifiableOSGiServiceUtil.java:50)
          [junit] 	at com.liferay.registry.internal.ServiceTrackerCustomizerAdapter.removedService(ServiceTrackerCustomizerAdapter.java:51)
          [junit] 	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:969)
          [junit] 	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1)
          [junit] 	at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
          [junit] 	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:911)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:891)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:804)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
          [junit] 	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._unregisterApplicationContext(ModuleFrameworkImpl.java:1920)
          [junit] 	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.unregisterContext(ModuleFrameworkImpl.java:567)
          [junit] 	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.unregisterContext(ModuleFrameworkUtilAdapter.java:130)
          [junit] 	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:113)
          [junit] 	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4729)
          [junit] 	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5388)
          [junit] 	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
          [junit] 	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1393)
          [junit] 	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1382)
          [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          [junit] 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
          [junit] 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
          [junit] 	at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:969)
          [junit] 	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
          [junit] 	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1393)
          [junit] 	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1382)
          [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          [junit] 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
          [junit] 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
          [junit] 	at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:969)
          [junit] 	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
          [junit] 	at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:475)
          [junit] 	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
          [junit] 	at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:990)
          [junit] 	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
          [junit] 	at org.apache.catalina.startup.Catalina.stop(Catalina.java:707)
          [junit] 	at org.apache.catalina.startup.Catalina.start(Catalina.java:669)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
          [junit] 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      

        Attachments

          Activity

            People

            Assignee:
            kyle.miho Kyle Miho
            Reporter:
            shuyang.zhou Shuyang Zhou
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Shuyang Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 8 weeks, 4 days ago

                Packages

                Version Package
                7.2.10 DXP FP4
                7.2.X
                7.3.0 CE GA1
                7.3.10 DXP GA1
                7.4.13 DXP GA1
                Master