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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Liferay Issues by Brian Chiu, 1 year ago
[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 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 java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.