Skip to content

[JENKINS-74814] java.lang.UnsupportedOperationException: This stack walker does not have RETAIN_CLASS_REFERENCE access #16588

@jenkins-infra-bot

Description

@jenkins-infra-bot

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)


Originally reported by basil, imported from: java.lang.UnsupportedOperationException: This stack walker does not have RETAIN_CLASS_REFERENCE access
  • assignee: basil
  • status: Closed
  • priority: Minor
  • component(s): core
  • label(s): 2.479.2-fixed
  • resolution: Fixed
  • resolved: 2024-11-08T13:50:15+00:00
  • votes: 0
  • watchers: 1
  • imported: 2025-11-24
Raw content of original issue

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions