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

Shutdown error - java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String

    Details

      Description

      I tested this at the following commit:

      commit a57f8ea00f17808daabc0c4131a5d3dd0342d60f
      Author: shuyangzhou <[email protected]>
      Date:   Thu Jun 25 16:53:25 2015 -0700
      
          LPS-56280 Inline those methods is more readable

      Steps to reproduce:

      1. Start Liferay
      2. Shut down Liferay

      Expected result:
      Liferay should shut down without exceptions.

      Actual result:
      The following exception + stacktrace will appear.

      17:26:55,200 ERROR [localhost-startStop-1][MainServlet:164] java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String
      java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCCommandCache$MVCCommandServiceTrackerCustomizer.removedService(MVCCommandCache.java:194)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCCommandCache$MVCCommandServiceTrackerCustomizer.removedService(MVCCommandCache.java:158)
              at com.liferay.registry.internal.ServiceTrackerCustomizerAdapter.removedService(ServiceTrackerCustomizerAdapter.java:51)
              at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:967)
              at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1)
              at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
              at org.osgi.util.tracker.ServiceTracker.close(ServiceTracker.java:377)
              at com.liferay.registry.internal.ServiceTrackerWrapper.close(ServiceTrackerWrapper.java:46)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCCommandCache.close(MVCCommandCache.java:70)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.destroy(MVCPortlet.java:63)
              at com.liferay.portlet.InvokerPortletImpl.destroy(InvokerPortletImpl.java:211)
              at com.liferay.portlet.MonitoringPortlet.destroy(MonitoringPortlet.java:67)
              at com.liferay.portlet.PortletInstanceFactoryImpl.clear(PortletInstanceFactoryImpl.java:63)
              at com.liferay.portlet.PortletInstanceFactoryImpl.clear(PortletInstanceFactoryImpl.java:48)
              at com.liferay.portlet.PortletInstanceFactoryImpl.destroy(PortletInstanceFactoryImpl.java:208)
              at com.liferay.portlet.PortletInstanceFactoryUtil.destroy(PortletInstanceFactoryUtil.java:49)
              at com.liferay.portal.servlet.MainServlet.destroyPortlets(MainServlet.java:658)
              at com.liferay.portal.servlet.MainServlet.destroy(MainServlet.java:161)
              at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1486)
              at org.apache.catalina.core.StandardWrapper.stopInternal(StandardWrapper.java:1847)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
              at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5711)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
              at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1591)
              at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1580)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)

      For a more full console output, see Jenkins:
      https://test-1-2.liferay.com/view/test-portal-acceptance-upstream(master)/job/test-portal-acceptance-upstream-frontend-tomcat-hsql(master)/label_exp=!test-1-2,test=PortalSmoke%23Smoke/lastCompletedBuild/console

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chiu Brian Chiu (Inactive)
              Reporter:
              brian.chiu Brian Chiu (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 13 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 M7