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

Errors in LDAP authentication with Hudson 5.5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: Linux

      I set up Hudson, deployed via Tomcat 5.5, on a Debian Lenny box using deb-pkgs only:

      hudson:~# aptitude search tomcat
      i A libtomcat5.5-java

      • Java Servlet engine – core libraries

      p solr-tomcat5.5

      • enterprise search server based on Lucene - Tomcat integration

      i tomcat5.5

      • Servlet and JSP engine

      i tomcat5.5-admin

      • Java Servlet engine – admin & manager web interfaces

      i tomcat5.5-webapps

      • Java Servlet engine – documentation and example web applications

      When attempting to set up LDAP auth, I get the following error when saving:
      javax.servlet.ServletException:
      org/codehaus/groovy/runtime/callsite/PogoInterceptableSite
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:498)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
      org.kohsuke.stapler.Stapler.service(Stapler.java:117)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
      java.security.AccessController.doPrivileged(Native Method)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
      java.security.AccessController.doPrivileged(Native Method)
      hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
      java.security.AccessController.doPrivileged(Native Method)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)
      sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)

      root cause

      java.lang.NoClassDefFoundError:
      org/codehaus/groovy/runtime/callsite/PogoInterceptableSite
      Script1.$createCallSiteArray(Script1.groovy)
      Script1.$getCallSiteArray(Script1.groovy)
      Script1.<init>(Script1.groovy)
      sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      java.lang.Class.newInstance0(Class.java:355)
      java.lang.Class.newInstance(Class.java:308)
      org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:395)
      groovy.lang.GroovyShell.parse(GroovyShell.java:602)
      groovy.lang.GroovyShell.parse(GroovyShell.java:582)
      groovy.lang.GroovyShell.parse(GroovyShell.java:641)
      hudson.util.spring.BeanBuilder.parse(BeanBuilder.java:133)
      hudson.security.LDAPSecurityRealm.createSecurityComponents(LDAPSecurityRealm.java:336)
      hudson.security.SecurityRealm.getSecurityComponents(SecurityRealm.java:340)
      hudson.security.HudsonFilter.reset(HudsonFilter.java:125)
      hudson.model.Hudson.setSecurityRealm(Hudson.java:1656)
      hudson.model.Hudson.doConfigSubmit(Hudson.java:2185)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:176)
      org.kohsuke.stapler.Function.bindAndInvoke(Function.java:92)
      org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:53)
      org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
      org.kohsuke.stapler.Stapler.service(Stapler.java:117)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
      java.security.AccessController.doPrivileged(Native Method)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
      java.security.AccessController.doPrivileged(Native Method)
      hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
      java.security.AccessController.doPrivileged(Native Method)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)
      sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)

      root cause

      java.lang.ClassNotFoundException:
      org.codehaus.groovy.runtime.callsite.PogoInterceptableSite
      org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
      org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
      java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      Script1.$createCallSiteArray(Script1.groovy)
      Script1.$getCallSiteArray(Script1.groovy)
      Script1.<init>(Script1.groovy)
      sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      java.lang.Class.newInstance0(Class.java:355)
      java.lang.Class.newInstance(Class.java:308)
      org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:395)
      groovy.lang.GroovyShell.parse(GroovyShell.java:602)
      groovy.lang.GroovyShell.parse(GroovyShell.java:582)
      groovy.lang.GroovyShell.parse(GroovyShell.java:641)
      hudson.util.spring.BeanBuilder.parse(BeanBuilder.java:133)
      hudson.security.LDAPSecurityRealm.createSecurityComponents(LDAPSecurityRealm.java:336)
      hudson.security.SecurityRealm.getSecurityComponents(SecurityRealm.java:340)
      hudson.security.HudsonFilter.reset(HudsonFilter.java:125)
      hudson.model.Hudson.setSecurityRealm(Hudson.java:1656)
      hudson.model.Hudson.doConfigSubmit(Hudson.java:2185)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:176)
      org.kohsuke.stapler.Function.bindAndInvoke(Function.java:92)
      org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:53)
      org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
      org.kohsuke.stapler.Stapler.service(Stapler.java:117)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
      java.security.AccessController.doPrivileged(Native Method)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
      java.security.AccessController.doPrivileged(Native Method)
      hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
      java.security.AccessController.doPrivileged(Native Method)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)
      sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)

      If I refresh the page, hudson comes up, but with that same stack trace in the
      center of the page. If I remove my config.xml from ~hudson/.hudson/, it returns
      to functioning as normal.

      I verified that Groovy is installed with aptitude:
      hudson:~# aptitude search groovy
      i groovy

      • Agile dynamic language for the Java Virtual Machine

      i groovy-doc

      • Agile dynamic language for the Java Virtual Machine

            Unassigned Unassigned
            kmwhite kmwhite
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: