java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Ma p

Liferay Issues | Jonas Yuan | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    [LPS-19547] Stacktrace on java.lang.ClassCastException - Liferay Issues

    liferay.com | 1 year ago
    java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.List

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.util.ArrayList cannot be cast to java.util.Ma p

      at com.liferay.portal.kernel.servlet.DirectServletRegistry._reloadDependents()
    2. Liferay Portal Service
      DirectServletContext.getRequestDispatcher
      1. com.liferay.portal.kernel.servlet.DirectServletRegistry._reloadDependents(DirectServletRegistry.java:142)
      2. com.liferay.portal.kernel.servlet.DirectServletRegistry._getServlet(DirectServletRegistry.java:98)
      3. com.liferay.portal.kernel.servlet.DirectServletRegistry.getServlet(DirectServletRegistry.java:48)
      4. com.liferay.portal.kernel.servlet.DirectServletContext.getRequestDispatcher(DirectServletContext.java:92)
      4 frames
    3. Liferay Util Taglib
      VelocityTaglib.include
      1. com.liferay.taglib.util.VelocityTaglib.include(VelocityTaglib.java:375)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor761.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    5. Apache Velocity
      VelocityEngine.mergeTemplate
      1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
      2. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
      3. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
      4. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
      5. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342)
      6. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
      7. org.apache.velocity.Template.merge(Template.java:328)
      8. org.apache.velocity.Template.merge(Template.java:235)
      9. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:381)
      9 frames
    6. Liferay Portal Impl
      VelocityEngineImpl.mergeTemplate
      1. com.liferay.portal.velocity.VelocityEngineImpl.mergeTemplate(VelocityEngineImpl.java:184)
      2. com.liferay.portal.velocity.VelocityEngineImpl.mergeTemplate(VelocityEngineImpl.java:194)
      2 frames
    7. Liferay Portal Kernel
      VelocityEngineUtil.mergeTemplate
      1. com.liferay.portal.kernel.velocity.VelocityEngineUtil.mergeTemplate(VelocityEngineUtil.java:71)
      1 frame
    8. Liferay Util Taglib
      IncludeTag.doEndTag
      1. com.liferay.taglib.util.ThemeUtil.includeVM(ThemeUtil.java:409)
      2. com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:99)
      3. com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:39)
      3 frames
    9. org.apache.jsp
      portal_jsp._jspService
      1. org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:476)
      2. org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:421)
      2 frames
    10. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    11. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      1 frame
    12. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      3 frames
    13. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      1 frame
    14. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    15. Liferay Portal Service
      InvokerFilter.doFilter
      1. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
      2 frames
    16. Glassfish Core
      ApplicationDispatcher.forward
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
      5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
      6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
      6 frames
    17. Liferay Portal Impl
      PortalRequestProcessor.doForward
      1. com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:79)
      2. com.liferay.portal.struts.PortalRequestProcessor.doForward(PortalRequestProcessor.java:280)
      2 frames
    18. struts
      RequestProcessor.process
      1. org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
      2. org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
      3. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
      3 frames
    19. Liferay Portal Impl
      PortalRequestProcessor.process
      1. com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)
      1 frame
    20. struts
      ActionServlet.doGet
      1. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      2. org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      2 frames
    21. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      1 frame
    22. Liferay Portal Impl
      MainServlet.service
      1. com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:533)
      2. com.liferay.portal.servlet.MainServlet.service(MainServlet.java:510)
      2 frames
    23. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      1 frame
    24. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    25. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
      4. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      4 frames
    26. Liferay Portal Impl
      SecureFilter.processFilter
      1. com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)
      1 frame
    27. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      4. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      4 frames
    28. Liferay Portal Impl
      AutoLoginFilter.processFilter
      1. com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)
      1 frame
    29. Liferay Portal Service
      InvokerFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      4. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
      4 frames
    30. Glassfish Core
      ApplicationDispatcher.forward
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
      5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
      6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
      6 frames
    31. Liferay Portal Impl
      FriendlyURLServlet.service
      1. com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135)
      1 frame
    32. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      1 frame
    33. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    34. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
      2. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      2 frames
    35. Liferay Portal Impl
      StripFilter.processFilter
      1. com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:304)
      1 frame
    36. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      4. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      4 frames
    37. Liferay Portal Impl
      GZipFilter.processFilter
      1. com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
      1 frame
    38. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      4. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      4 frames
    39. Liferay Portal Impl
      SecureFilter.processFilter
      1. com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)
      1 frame
    40. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      4. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      4 frames
    41. Liferay Portal Impl
      I18nFilter.processFilter
      1. com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
      1 frame
    42. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      4. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
      5. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      5 frames
    43. Liferay Portal Impl
      ETagFilter.processFilter
      1. com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:55)
      1 frame
    44. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      4. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      4 frames
    45. Liferay Portal Impl
      AutoLoginFilter.processFilter
      1. com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)
      1 frame
    46. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      4. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      4 frames
    47. Liferay Portal Impl
      NtlmPostFilter.processFilter
      1. com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
      1 frame
    48. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      4. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      4 frames
    49. Liferay Portal Impl
      SharepointFilter.processFilter
      1. com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
      1 frame
    50. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      4. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      4 frames
    51. Liferay Portal Impl
      VirtualHostFilter.processFilter
      1. com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:208)
      1 frame
    52. Liferay Portal Service
      InvokerFilterChain.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      4. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
      5. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
      5 frames
    53. UrlRewriteFilter
      UrlRewriteFilter.doFilter
      1. org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
      1 frame
    54. Liferay Portal Service
      InvokerFilter.doFilter
      1. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
      4. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
      5. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
      6. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
      7. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
      8. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
      9. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
      9 frames
    55. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
      10 frames
    56. Grizzly HTTP
      AprEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:306)
      2. org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:323)
      3. org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1719)
      3 frames
    57. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames