Does it fail locally? Did you try Java 17 (we are currently in the process of 
testing Java 21, so nobody is looking at Java 11 JDK anymore).

> Am 06.11.2023 um 22:01 schrieb Anna Karyakina <[email protected]>:
> 
> Hi everyone,
> 
> I got stuck with upgrading my plugin build from java 8 to java 11. It 
> compiles, but several tests that used to pass with java 8 now fail with 
> "org.jvnet.hudson.reactor.ReactorException: 
> java.lang.IllegalArgumentException: Unable to inject class 
> hudson.model.UserIdMapper". Here's a link to the complete stack trace: 
> Plugins » fortify-plugin » master #2 Console [Jenkins] 
> <https://ci.jenkins.io/job/plugins/job/fortify-plugin/job/master/2/console>. 
> Could someone please share their thoughts/experience?
> 
> I have a suspicion that it has something to do with the more restrictive 
> classloading security, and something like add-opens (what package?) might 
> help, but the strange thing is that I can't find any reference to others 
> running into the same issue. I searched this group's archive as well.
> 
> Here's my pom.xml: fortify-plugin/pom.xml at master · 
> jenkinsci/fortify-plugin (github.com) 
> <https://github.com/jenkinsci/fortify-plugin/blob/master/pom.xml>. 
> I've already tried updating parent pom and jenkins versions to the latest. I 
> also tried to rewrite the JCASC test to the new @ConfiguredWithCode way. 
> Here's the pull request with the recent updates:  <>Jenkins latest version 
> upgrade by akaryakina · Pull Request #71 · jenkinsci/fortify-plugin 
> (github.com) <https://github.com/jenkinsci/fortify-plugin/pull/71> None of 
> these actions really changed anything, so I am feeling a little stuck. <>  <>
> 
> Thanks,
> Ann.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CAGST4yi5zBN9vW%3DF-Se9zGLick1rkuA0KW8wAMJbaoV9PpRrsA%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/CAGST4yi5zBN9vW%3DF-Se9zGLick1rkuA0KW8wAMJbaoV9PpRrsA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CC977D0A-8C09-4067-BC21-06913D8AD752%40gmail.com.

Reply via email to