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

java.lang.UnsupportedOperationException: This stack walker does not have RETAIN_CLASS_REFERENCE access

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • 2.485, 2.479.2

      When attempting to use the zero-argument version of jenkins.util.SetContextClassLoader in ldap-plugin, I got this exception:

      java.lang.UnsupportedOperationException: This stack walker does not have RETAIN_CLASS_REFERENCE access
      	at java.base/java.lang.StackWalker.getCallerClass(StackWalker.java:687)
      	at jenkins.util.SetContextClassLoader.<init>(SetContextClassLoader.java:65)
      	at PluginClassLoader for ldap//hudson.security.LDAPSecurityRealm$LDAPAuthenticationManager.authenticate(LDAPSecurityRealm.java:989)
      	at org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFilter.java:85)
      	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:231)
      	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:221)
      	at hudson.security.ChainedServletFilter2$1.doFilter(ChainedServletFilter2.java:99)
      

            basil Basil Crow
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: