Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46993

NullPointer with CAS Plugin 1.4.0 and Jenkins 2.76

XMLWordPrintable

      We have been upgrading the CI enviroment, starting on Jenkins and his plugins and we have a problem with CAS Plugin.

       

      We have 1.1.2 version of CAS Plugin that runs with Spring Security 3.0.7.RELEASE.

      We try to update to 1.2.0 (Spring Security 3.2.7.RELEASE), 1.3.0 and 1.4.0 (Spring Security 3.2.9.RELEASE) and we get the following error when after login come back to jenkins.

       

      We were looking for it and it seems a bug into Spring Security.

      http://forum.spring.io/forum/spring-projects/security/106901-logout-causes-nullpointerexception

       

      Shall you help me?

       

      Thx in advance.

      Javi Mármol.

       

       

      java.lang.NullPointerException

      at java.util.Hashtable.get(Hashtable.java:363)

      at org.apache.tomcat.util.http.Parameters.getParameterValues(Parameters.java:195)

      at org.apache.tomcat.util.http.Parameters.getParameter(Parameters.java:240)

      at org.apache.catalina.connector.Request.getParameter(Request.java:1065)

      at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:355)

      at org.jenkinsci.plugins.cas.spring.security.SessionUrlAuthenticationSuccessHandler.determineTargetUrl(SessionUrlAuthenticationSuccessHandler.java:41)

      at org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler.handle(AbstractAuthenticationTargetUrlRequestHandler.java:69)

      at org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler.onAuthenticationSuccess(SimpleUrlAuthenticationSuccessHandler.java:42)

      at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.successfulAuthentication(AbstractAuthenticationProcessingFilter.java:331)

      at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.successfulAuthentication(AbstractAuthenticationProcessingFilter.java:298)

      at org.springframework.security.cas.web.CasAuthenticationFilter.successfulAuthentication(CasAuthenticationFilter.java:201)

      at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:235)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at org.jenkinsci.plugins.cas.spring.security.CasSingleSignOutFilter.doFilter(CasSingleSignOutFilter.java:44)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)

      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)

      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

      at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)

      at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)

      at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:774)

      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)

      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:896)

      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)

      at java.lang.Thread.run(Thread.java:745)

            fcrespel Fabien Crespel
            javimarmol Javi Mármol
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: