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

Solutions on the web

via liferay.com by Unknown author, 2 years ago
via liferay.com by Unknown author, 2 years ago
via Liferay Issues by Jonas Yuan, 1 year ago
java.util.ArrayList cannot be cast to java.util.Ma p
via Liferay Issues by Jonas Yuan, 1 year ago
java.util.ArrayList cannot be cast to java.util.Ma p
via Liferay Issues by Alex Weirig, 1 year ago
java.util.HashMap cannot be cast to java.util.List
via Liferay Issues by Alex Weirig, 1 year ago
java.util.HashMap cannot be cast to java.util.List
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Ma
p	at com.liferay.portal.kernel.servlet.DirectServletRegistry._reloadDependents(DirectServletRegistry.java:142)	at com.liferay.portal.kernel.servlet.DirectServletRegistry._getServlet(DirectServletRegistry.java:98)	at com.liferay.portal.kernel.servlet.DirectServletRegistry.getServlet(DirectServletRegistry.java:48)	at com.liferay.portal.kernel.servlet.DirectServletContext.getRequestDispatcher(DirectServletContext.java:92)	at com.liferay.taglib.util.VelocityTaglib.include(VelocityTaglib.java:375)	at sun.reflect.GeneratedMethodAccessor761.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)	at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342)	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)	at org.apache.velocity.Template.merge(Template.java:328)	at org.apache.velocity.Template.merge(Template.java:235)	at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:381)	at com.liferay.portal.velocity.VelocityEngineImpl.mergeTemplate(VelocityEngineImpl.java:184)	at com.liferay.portal.velocity.VelocityEngineImpl.mergeTemplate(VelocityEngineImpl.java:194)	at com.liferay.portal.kernel.velocity.VelocityEngineUtil.mergeTemplate(VelocityEngineUtil.java:71)	at com.liferay.taglib.util.ThemeUtil.includeVM(ThemeUtil.java:409)	at com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:99)	at com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:39)	at org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:476)	at org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:421)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)	at com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:79)	at com.liferay.portal.struts.PortalRequestProcessor.doForward(PortalRequestProcessor.java:280)	at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)	at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)	at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)	at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:533)	at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:510)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)	at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)	at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)	at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)	at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:304)	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)	at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)	at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)	at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)	at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:55)	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)	at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)	at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)	at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)	at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:208)	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:306)	at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:323)	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1719)	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)	at java.lang.Thread.run(Thread.java:662)