Want more features on Pastebin? Sign Up, it's FREE!
Guest

SpringSecurity Bug

By: a guest on Jan 12th, 2013  |  syntax: None  |  size: 13.11 KB  |  views: 66  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. SEVERE: Error Rendering View[/welcome.xhtml]
  2. java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
  3.         at org.primefaces.component.autocomplete.AutoCompleteRenderer.encodeMultipleMarkup(AutoCompleteRenderer.java:278)
  4.         at org.primefaces.component.autocomplete.AutoCompleteRenderer.encodeMarkup(AutoCompleteRenderer.java:121)
  5.         at org.primefaces.component.autocomplete.AutoCompleteRenderer.encodeEnd(AutoCompleteRenderer.java:101)
  6.         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
  7.         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
  8.         at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
  9.         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
  10.         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
  11.         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
  12.         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
  13.         at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:424)
  14.         at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
  15.         at org.springframework.faces.webflow.FlowViewHandler.renderView(FlowViewHandler.java:99)
  16.         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
  17.         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
  18.         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
  19.         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
  20.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
  21.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  22.         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:349)
  23.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  24.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  25.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
  26.         at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
  27.         at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
  28.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  29.         at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
  30.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  31.         at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
  32.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  33.         at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
  34.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  35.         at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
  36.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  37.         at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
  38.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  39.         at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
  40.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  41.         at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
  42.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  43.         at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
  44.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  45.         at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)
  46.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  47.         at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
  48.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  49.         at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
  50.         at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
  51.         at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
  52.         at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
  53.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  54.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  55.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
  56.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
  57.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
  58.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
  59.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
  60.         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
  61.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  62.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
  63.         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)
  64.         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
  65.         at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
  66.         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  67.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  68.         at java.lang.Thread.run(Unknown Source)
  69.  
  70. Jan 12, 2013 9:27:59 PM org.apache.catalina.core.StandardWrapperValve invoke
  71. SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/Dorian] threw exception [java.lang.String cannot be cast to java.util.List] with root cause
  72. java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
  73.         at org.primefaces.component.autocomplete.AutoCompleteRenderer.encodeMultipleMarkup(AutoCompleteRenderer.java:278)
  74.         at org.primefaces.component.autocomplete.AutoCompleteRenderer.encodeMarkup(AutoCompleteRenderer.java:121)
  75.         at org.primefaces.component.autocomplete.AutoCompleteRenderer.encodeEnd(AutoCompleteRenderer.java:101)
  76.         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
  77.         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
  78.         at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
  79.         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
  80.         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
  81.         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
  82.         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
  83.         at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:424)
  84.         at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
  85.         at org.springframework.faces.webflow.FlowViewHandler.renderView(FlowViewHandler.java:99)
  86.         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
  87.         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
  88.         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
  89.         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
  90.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
  91.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  92.         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:349)
  93.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  94.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  95.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
  96.         at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
  97.         at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
  98.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  99.         at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
  100.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  101.         at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
  102.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  103.         at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
  104.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  105.         at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
  106.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  107.         at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
  108.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  109.         at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
  110.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  111.         at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
  112.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  113.         at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
  114.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  115.         at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)
  116.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  117.         at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
  118.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
  119.         at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
  120.         at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
  121.         at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
  122.         at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
  123.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  124.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  125.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
  126.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
  127.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
  128.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
  129.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
  130.         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
  131.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  132.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
  133.         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)
  134.         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
  135.         at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
  136.         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  137.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  138.         at java.lang.Thread.run(Unknown Source)
clone this paste RAW Paste Data