-
Improvement
-
Resolution: Duplicate
-
Minor
-
Jenkins-2.265 and
Jenkins 2.266-SNAPSHOT with XStream unfork, Spring Security, and hidden page elements fix
Plugins as described in https://github.com/MarkEWaite/docker-lfs/tree/lts-with-plugins/ref/plugins 7 Nov 2020
I added a "Single source" branch source as the source for a multibranch pipeline to use the master branch of https://github.com/MarkEWaite/jenkins-bugs . I used a narrow refspec, honor refspec on initial clone, and a reference repository to keep the checkout process as fast as possible.
The steps work without a stack trace with Jenkins 2.263 on Java 8.
The steps failed with a stack trace with Jenkins 2.264, 2.265, and 2.266-SNAPSHOT.
2020-11-08 05:00:33.510+0000 [id=1796] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://testing-a.markwaite.net:8080/job/Bugs-Pipeline-Checks/job/Single-SCM-source-GitHub/configSubmit java.lang.ClassNotFoundException: ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] at jenkins.telemetry.impl.java11.CatcherClassLoader.findClass(CatcherClassLoader.java:47) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669) Caused: java.lang.IllegalArgumentException: Class ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] is specified in JSON, but no such class found in jenkins.telemetry.impl.java11.CatcherClassLoader@58cdb77e at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from {"stapler-class":["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"],"id":"bffd03ed-6b91-44ff-89ac-cd1ed4d73657","name":"master","":["0","0"],"scm":{"userRemoteConfigs":{"url":"https://github.com/MarkEWaite/jenkins-bugs","includeUser":"false","credentialsId":"MarkEWaite-github-username-password","name":"origin","refspec":"+refs/heads/master:refs/remotes/origin/master"},"branches":{"name":"*/master"},"gitTool":"Default","":"auto","extensions":{"noTags":true,"honorRefspec":true,"reference":"/var/lib/git/mwaite/bugs/jenkins-bugs.git","timeout":"","shallow":false,"depth":"","stapler-class":"hudson.plugins.git.extensions.impl.CloneOption","$class":"hudson.plugins.git.extensions.impl.CloneOption"},"stapler-class":"hudson.plugins.git.GitSCM","$class":"hudson.plugins.git.GitSCM"},"strategy":{"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"kind":"jenkins.branch.BranchSource"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512) at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:896) at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1363) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:414) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException
- is caused by
-
JENKINS-64069 Unable to select a branch source when creating new multi-branch item.
-
- Resolved
-
- is related to
-
JENKINS-64089 Saving job config fails with ClassNotFoundException
-
- Resolved
-
- links to
[JENKINS-64164] Single branch source multibranch pipeline fails to create on 2.264 and later
Attachment | New: branch-strategy-field-outside-form.png [ 53246 ] |
Description |
Original:
I added a "Single source" branch source as the source for a multibranch pipeline to use the master branch of https://github.com/MarkEWaite/jenkins-bugs . I used a narrow refspec, honor refspec on initial clone, and a reference repository to keep the checkout process as fast as possible. The steps worked as expected with Jenkins 2.263 on Java 8. The steps failed with a stack trace with Jenkins 2.266-SNAPSHOT on Java 11. {noformat} 2020-11-08 05:00:33.510+0000 [id=1796] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://testing-a.markwaite.net:8080/job/Bugs-Pipeline-Checks/job/Single-SCM-source-GitHub/configSubmit java.lang.ClassNotFoundException: ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] at jenkins.telemetry.impl.java11.CatcherClassLoader.findClass(CatcherClassLoader.java:47) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669) Caused: java.lang.IllegalArgumentException: Class ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] is specified in JSON, but no such class found in jenkins.telemetry.impl.java11.CatcherClassLoader@58cdb77e at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from {"stapler-class":["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"],"id":"bffd03ed-6b91-44ff-89ac-cd1ed4d73657","name":"master","":["0","0"],"scm":{"userRemoteConfigs":{"url":"https://github.com/MarkEWaite/jenkins-bugs","includeUser":"false","credentialsId":"MarkEWaite-github-username-password","name":"origin","refspec":"+refs/heads/master:refs/remotes/origin/master"},"branches":{"name":"*/master"},"gitTool":"Default","":"auto","extensions":{"noTags":true,"honorRefspec":true,"reference":"/var/lib/git/mwaite/bugs/jenkins-bugs.git","timeout":"","shallow":false,"depth":"","stapler-class":"hudson.plugins.git.extensions.impl.CloneOption","$class":"hudson.plugins.git.extensions.impl.CloneOption"},"stapler-class":"hudson.plugins.git.GitSCM","$class":"hudson.plugins.git.GitSCM"},"strategy":{"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"kind":"jenkins.branch.BranchSource"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512) at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:896) at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1363) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:414) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException {noformat} I've not yet bisected the problem to see if the issue is related to the XStream unfork or the tables to divs transition. |
New:
I added a "Single source" branch source as the source for a multibranch pipeline to use the master branch of https://github.com/MarkEWaite/jenkins-bugs . I used a narrow refspec, honor refspec on initial clone, and a reference repository to keep the checkout process as fast as possible. The steps worked as expected with Jenkins 2.263 on Java 8. The steps failed with a stack trace with Jenkins 2.266-SNAPSHOT on Java 11. {noformat} 2020-11-08 05:00:33.510+0000 [id=1796] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://testing-a.markwaite.net:8080/job/Bugs-Pipeline-Checks/job/Single-SCM-source-GitHub/configSubmit java.lang.ClassNotFoundException: ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] at jenkins.telemetry.impl.java11.CatcherClassLoader.findClass(CatcherClassLoader.java:47) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669) Caused: java.lang.IllegalArgumentException: Class ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] is specified in JSON, but no such class found in jenkins.telemetry.impl.java11.CatcherClassLoader@58cdb77e at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from {"stapler-class":["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"],"id":"bffd03ed-6b91-44ff-89ac-cd1ed4d73657","name":"master","":["0","0"],"scm":{"userRemoteConfigs":{"url":"https://github.com/MarkEWaite/jenkins-bugs","includeUser":"false","credentialsId":"MarkEWaite-github-username-password","name":"origin","refspec":"+refs/heads/master:refs/remotes/origin/master"},"branches":{"name":"*/master"},"gitTool":"Default","":"auto","extensions":{"noTags":true,"honorRefspec":true,"reference":"/var/lib/git/mwaite/bugs/jenkins-bugs.git","timeout":"","shallow":false,"depth":"","stapler-class":"hudson.plugins.git.extensions.impl.CloneOption","$class":"hudson.plugins.git.extensions.impl.CloneOption"},"stapler-class":"hudson.plugins.git.GitSCM","$class":"hudson.plugins.git.GitSCM"},"strategy":{"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"kind":"jenkins.branch.BranchSource"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512) at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:896) at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1363) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:414) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException {noformat} I've not yet bisected the problem to see if the issue is related to the XStream unfork or the tables to divs transition. !branch-strategy-field-outside-form.png|! |
Environment |
Original:
Jenkins 2.266-SNAPSHOT with XStream unfork, Spring Security, and hidden page elements fix Plugins as described in https://github.com/MarkEWaite/docker-lfs/tree/lts-with-plugins/ref/plugins 7 Nov 2020 |
New:
Jenkins 2.263 and Jenkins 2.266-SNAPSHOT with XStream unfork, Spring Security, and hidden page elements fix Plugins as described in https://github.com/MarkEWaite/docker-lfs/tree/lts-with-plugins/ref/plugins 7 Nov 2020 |
Description |
Original:
I added a "Single source" branch source as the source for a multibranch pipeline to use the master branch of https://github.com/MarkEWaite/jenkins-bugs . I used a narrow refspec, honor refspec on initial clone, and a reference repository to keep the checkout process as fast as possible. The steps worked as expected with Jenkins 2.263 on Java 8. The steps failed with a stack trace with Jenkins 2.266-SNAPSHOT on Java 11. {noformat} 2020-11-08 05:00:33.510+0000 [id=1796] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://testing-a.markwaite.net:8080/job/Bugs-Pipeline-Checks/job/Single-SCM-source-GitHub/configSubmit java.lang.ClassNotFoundException: ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] at jenkins.telemetry.impl.java11.CatcherClassLoader.findClass(CatcherClassLoader.java:47) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669) Caused: java.lang.IllegalArgumentException: Class ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] is specified in JSON, but no such class found in jenkins.telemetry.impl.java11.CatcherClassLoader@58cdb77e at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from {"stapler-class":["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"],"id":"bffd03ed-6b91-44ff-89ac-cd1ed4d73657","name":"master","":["0","0"],"scm":{"userRemoteConfigs":{"url":"https://github.com/MarkEWaite/jenkins-bugs","includeUser":"false","credentialsId":"MarkEWaite-github-username-password","name":"origin","refspec":"+refs/heads/master:refs/remotes/origin/master"},"branches":{"name":"*/master"},"gitTool":"Default","":"auto","extensions":{"noTags":true,"honorRefspec":true,"reference":"/var/lib/git/mwaite/bugs/jenkins-bugs.git","timeout":"","shallow":false,"depth":"","stapler-class":"hudson.plugins.git.extensions.impl.CloneOption","$class":"hudson.plugins.git.extensions.impl.CloneOption"},"stapler-class":"hudson.plugins.git.GitSCM","$class":"hudson.plugins.git.GitSCM"},"strategy":{"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"kind":"jenkins.branch.BranchSource"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512) at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:896) at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1363) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:414) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException {noformat} I've not yet bisected the problem to see if the issue is related to the XStream unfork or the tables to divs transition. !branch-strategy-field-outside-form.png|! |
New:
I added a "Single source" branch source as the source for a multibranch pipeline to use the master branch of https://github.com/MarkEWaite/jenkins-bugs . I used a narrow refspec, honor refspec on initial clone, and a reference repository to keep the checkout process as fast as possible. The steps work without a stack trace with Jenkins 2.263 on Java 8. The steps failed with a stack trace with Jenkins 2.266-SNAPSHOT on Java 11. {noformat} 2020-11-08 05:00:33.510+0000 [id=1796] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://testing-a.markwaite.net:8080/job/Bugs-Pipeline-Checks/job/Single-SCM-source-GitHub/configSubmit java.lang.ClassNotFoundException: ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] at jenkins.telemetry.impl.java11.CatcherClassLoader.findClass(CatcherClassLoader.java:47) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669) Caused: java.lang.IllegalArgumentException: Class ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] is specified in JSON, but no such class found in jenkins.telemetry.impl.java11.CatcherClassLoader@58cdb77e at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from {"stapler-class":["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"],"id":"bffd03ed-6b91-44ff-89ac-cd1ed4d73657","name":"master","":["0","0"],"scm":{"userRemoteConfigs":{"url":"https://github.com/MarkEWaite/jenkins-bugs","includeUser":"false","credentialsId":"MarkEWaite-github-username-password","name":"origin","refspec":"+refs/heads/master:refs/remotes/origin/master"},"branches":{"name":"*/master"},"gitTool":"Default","":"auto","extensions":{"noTags":true,"honorRefspec":true,"reference":"/var/lib/git/mwaite/bugs/jenkins-bugs.git","timeout":"","shallow":false,"depth":"","stapler-class":"hudson.plugins.git.extensions.impl.CloneOption","$class":"hudson.plugins.git.extensions.impl.CloneOption"},"stapler-class":"hudson.plugins.git.GitSCM","$class":"hudson.plugins.git.GitSCM"},"strategy":{"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"kind":"jenkins.branch.BranchSource"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512) at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:896) at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1363) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:414) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException {noformat} I've not yet bisected the problem to see if the issue is related to the XStream unfork or the tables to divs transition. The UI renders incorrectly on Jenkins 2.263 but is able to save the job and run the single branch job. The UI issue is not related to the tables to divs transition, since 2.263 is before the tables to divs transition. !branch-strategy-field-outside-form.png|! |
Description |
Original:
I added a "Single source" branch source as the source for a multibranch pipeline to use the master branch of https://github.com/MarkEWaite/jenkins-bugs . I used a narrow refspec, honor refspec on initial clone, and a reference repository to keep the checkout process as fast as possible. The steps work without a stack trace with Jenkins 2.263 on Java 8. The steps failed with a stack trace with Jenkins 2.266-SNAPSHOT on Java 11. {noformat} 2020-11-08 05:00:33.510+0000 [id=1796] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://testing-a.markwaite.net:8080/job/Bugs-Pipeline-Checks/job/Single-SCM-source-GitHub/configSubmit java.lang.ClassNotFoundException: ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] at jenkins.telemetry.impl.java11.CatcherClassLoader.findClass(CatcherClassLoader.java:47) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669) Caused: java.lang.IllegalArgumentException: Class ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] is specified in JSON, but no such class found in jenkins.telemetry.impl.java11.CatcherClassLoader@58cdb77e at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from {"stapler-class":["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"],"id":"bffd03ed-6b91-44ff-89ac-cd1ed4d73657","name":"master","":["0","0"],"scm":{"userRemoteConfigs":{"url":"https://github.com/MarkEWaite/jenkins-bugs","includeUser":"false","credentialsId":"MarkEWaite-github-username-password","name":"origin","refspec":"+refs/heads/master:refs/remotes/origin/master"},"branches":{"name":"*/master"},"gitTool":"Default","":"auto","extensions":{"noTags":true,"honorRefspec":true,"reference":"/var/lib/git/mwaite/bugs/jenkins-bugs.git","timeout":"","shallow":false,"depth":"","stapler-class":"hudson.plugins.git.extensions.impl.CloneOption","$class":"hudson.plugins.git.extensions.impl.CloneOption"},"stapler-class":"hudson.plugins.git.GitSCM","$class":"hudson.plugins.git.GitSCM"},"strategy":{"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"kind":"jenkins.branch.BranchSource"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512) at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:896) at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1363) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:414) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException {noformat} I've not yet bisected the problem to see if the issue is related to the XStream unfork or the tables to divs transition. The UI renders incorrectly on Jenkins 2.263 but is able to save the job and run the single branch job. The UI issue is not related to the tables to divs transition, since 2.263 is before the tables to divs transition. !branch-strategy-field-outside-form.png|! |
New:
I added a "Single source" branch source as the source for a multibranch pipeline to use the master branch of https://github.com/MarkEWaite/jenkins-bugs . I used a narrow refspec, honor refspec on initial clone, and a reference repository to keep the checkout process as fast as possible. The steps work without a stack trace with Jenkins 2.263 on Java 8. The steps failed with a stack trace with Jenkins 2.266-SNAPSHOT on Java 11. {noformat} 2020-11-08 05:00:33.510+0000 [id=1796] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://testing-a.markwaite.net:8080/job/Bugs-Pipeline-Checks/job/Single-SCM-source-GitHub/configSubmit java.lang.ClassNotFoundException: ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] at jenkins.telemetry.impl.java11.CatcherClassLoader.findClass(CatcherClassLoader.java:47) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669) Caused: java.lang.IllegalArgumentException: Class ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] is specified in JSON, but no such class found in jenkins.telemetry.impl.java11.CatcherClassLoader@58cdb77e at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from {"stapler-class":["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"],"id":"bffd03ed-6b91-44ff-89ac-cd1ed4d73657","name":"master","":["0","0"],"scm":{"userRemoteConfigs":{"url":"https://github.com/MarkEWaite/jenkins-bugs","includeUser":"false","credentialsId":"MarkEWaite-github-username-password","name":"origin","refspec":"+refs/heads/master:refs/remotes/origin/master"},"branches":{"name":"*/master"},"gitTool":"Default","":"auto","extensions":{"noTags":true,"honorRefspec":true,"reference":"/var/lib/git/mwaite/bugs/jenkins-bugs.git","timeout":"","shallow":false,"depth":"","stapler-class":"hudson.plugins.git.extensions.impl.CloneOption","$class":"hudson.plugins.git.extensions.impl.CloneOption"},"stapler-class":"hudson.plugins.git.GitSCM","$class":"hudson.plugins.git.GitSCM"},"strategy":{"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"kind":"jenkins.branch.BranchSource"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512) at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:896) at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1363) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:414) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException {noformat} I've not yet bisected the stack trace problem to see if the issue is related to the XStream unfork or the tables to divs transition. The UI renders incorrectly on Jenkins 2.263 but is able to save the job and run the single branch job. The UI rendering issue is not related to the tables to divs transition, since 2.263 is before the tables to divs transition. !branch-strategy-field-outside-form.png|! |
Remote Link | New: This issue links to "Job definition from Jenkins 2.263 (Web Link)" [ 26225 ] |
Description |
Original:
I added a "Single source" branch source as the source for a multibranch pipeline to use the master branch of https://github.com/MarkEWaite/jenkins-bugs . I used a narrow refspec, honor refspec on initial clone, and a reference repository to keep the checkout process as fast as possible. The steps work without a stack trace with Jenkins 2.263 on Java 8. The steps failed with a stack trace with Jenkins 2.266-SNAPSHOT on Java 11. {noformat} 2020-11-08 05:00:33.510+0000 [id=1796] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://testing-a.markwaite.net:8080/job/Bugs-Pipeline-Checks/job/Single-SCM-source-GitHub/configSubmit java.lang.ClassNotFoundException: ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] at jenkins.telemetry.impl.java11.CatcherClassLoader.findClass(CatcherClassLoader.java:47) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669) Caused: java.lang.IllegalArgumentException: Class ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] is specified in JSON, but no such class found in jenkins.telemetry.impl.java11.CatcherClassLoader@58cdb77e at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from {"stapler-class":["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"],"id":"bffd03ed-6b91-44ff-89ac-cd1ed4d73657","name":"master","":["0","0"],"scm":{"userRemoteConfigs":{"url":"https://github.com/MarkEWaite/jenkins-bugs","includeUser":"false","credentialsId":"MarkEWaite-github-username-password","name":"origin","refspec":"+refs/heads/master:refs/remotes/origin/master"},"branches":{"name":"*/master"},"gitTool":"Default","":"auto","extensions":{"noTags":true,"honorRefspec":true,"reference":"/var/lib/git/mwaite/bugs/jenkins-bugs.git","timeout":"","shallow":false,"depth":"","stapler-class":"hudson.plugins.git.extensions.impl.CloneOption","$class":"hudson.plugins.git.extensions.impl.CloneOption"},"stapler-class":"hudson.plugins.git.GitSCM","$class":"hudson.plugins.git.GitSCM"},"strategy":{"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"kind":"jenkins.branch.BranchSource"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512) at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:896) at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1363) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:414) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException {noformat} I've not yet bisected the stack trace problem to see if the issue is related to the XStream unfork or the tables to divs transition. The UI renders incorrectly on Jenkins 2.263 but is able to save the job and run the single branch job. The UI rendering issue is not related to the tables to divs transition, since 2.263 is before the tables to divs transition. !branch-strategy-field-outside-form.png|! |
New:
I added a "Single source" branch source as the source for a multibranch pipeline to use the master branch of https://github.com/MarkEWaite/jenkins-bugs . I used a narrow refspec, honor refspec on initial clone, and a reference repository to keep the checkout process as fast as possible. The steps work without a stack trace with Jenkins 2.263 on Java 8. The steps failed with a stack trace with Jenkins 2.266-SNAPSHOT on Java 11. {noformat} 2020-11-08 05:00:33.510+0000 [id=1796] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://testing-a.markwaite.net:8080/job/Bugs-Pipeline-Checks/job/Single-SCM-source-GitHub/configSubmit java.lang.ClassNotFoundException: ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] at jenkins.telemetry.impl.java11.CatcherClassLoader.findClass(CatcherClassLoader.java:47) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669) Caused: java.lang.IllegalArgumentException: Class ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] is specified in JSON, but no such class found in jenkins.telemetry.impl.java11.CatcherClassLoader@58cdb77e at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from {"stapler-class":["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"],"id":"bffd03ed-6b91-44ff-89ac-cd1ed4d73657","name":"master","":["0","0"],"scm":{"userRemoteConfigs":{"url":"https://github.com/MarkEWaite/jenkins-bugs","includeUser":"false","credentialsId":"MarkEWaite-github-username-password","name":"origin","refspec":"+refs/heads/master:refs/remotes/origin/master"},"branches":{"name":"*/master"},"gitTool":"Default","":"auto","extensions":{"noTags":true,"honorRefspec":true,"reference":"/var/lib/git/mwaite/bugs/jenkins-bugs.git","timeout":"","shallow":false,"depth":"","stapler-class":"hudson.plugins.git.extensions.impl.CloneOption","$class":"hudson.plugins.git.extensions.impl.CloneOption"},"stapler-class":"hudson.plugins.git.GitSCM","$class":"hudson.plugins.git.GitSCM"},"strategy":{"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"kind":"jenkins.branch.BranchSource"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512) at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:896) at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1363) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:414) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException {noformat} I've not yet bisected the stack trace problem to see if the issue is related to the XStream unfork or the tables to divs transition. The UI renders incorrectly on Jenkins 2.263 but is able to save the job and run the single branch job. The UI rendering issue is not related to the tables to divs transition, since 2.263 is before the tables to divs transition. !branch-strategy-field-outside-form.png|thumbnail! |
Summary | Original: Property strategy and build strategy drawn outside box to right of other items | New: Single branch source draws property & build strategy far to right of other items |
Environment |
Original:
Jenkins 2.263 and Jenkins 2.266-SNAPSHOT with XStream unfork, Spring Security, and hidden page elements fix Plugins as described in https://github.com/MarkEWaite/docker-lfs/tree/lts-with-plugins/ref/plugins 7 Nov 2020 |
New:
Jenkins 2.249.2 and Jenkins 2.263 and Jenkins 2.266-SNAPSHOT with XStream unfork, Spring Security, and hidden page elements fix Plugins as described in https://github.com/MarkEWaite/docker-lfs/tree/lts-with-plugins/ref/plugins 7 Nov 2020 |
Description |
Original:
I added a "Single source" branch source as the source for a multibranch pipeline to use the master branch of https://github.com/MarkEWaite/jenkins-bugs . I used a narrow refspec, honor refspec on initial clone, and a reference repository to keep the checkout process as fast as possible. The steps work without a stack trace with Jenkins 2.263 on Java 8. The steps failed with a stack trace with Jenkins 2.266-SNAPSHOT on Java 11. {noformat} 2020-11-08 05:00:33.510+0000 [id=1796] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://testing-a.markwaite.net:8080/job/Bugs-Pipeline-Checks/job/Single-SCM-source-GitHub/configSubmit java.lang.ClassNotFoundException: ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] at jenkins.telemetry.impl.java11.CatcherClassLoader.findClass(CatcherClassLoader.java:47) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669) Caused: java.lang.IllegalArgumentException: Class ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] is specified in JSON, but no such class found in jenkins.telemetry.impl.java11.CatcherClassLoader@58cdb77e at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from {"stapler-class":["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"],"id":"bffd03ed-6b91-44ff-89ac-cd1ed4d73657","name":"master","":["0","0"],"scm":{"userRemoteConfigs":{"url":"https://github.com/MarkEWaite/jenkins-bugs","includeUser":"false","credentialsId":"MarkEWaite-github-username-password","name":"origin","refspec":"+refs/heads/master:refs/remotes/origin/master"},"branches":{"name":"*/master"},"gitTool":"Default","":"auto","extensions":{"noTags":true,"honorRefspec":true,"reference":"/var/lib/git/mwaite/bugs/jenkins-bugs.git","timeout":"","shallow":false,"depth":"","stapler-class":"hudson.plugins.git.extensions.impl.CloneOption","$class":"hudson.plugins.git.extensions.impl.CloneOption"},"stapler-class":"hudson.plugins.git.GitSCM","$class":"hudson.plugins.git.GitSCM"},"strategy":{"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"kind":"jenkins.branch.BranchSource"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512) at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:896) at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1363) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:414) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException {noformat} I've not yet bisected the stack trace problem to see if the issue is related to the XStream unfork or the tables to divs transition. The UI renders incorrectly on Jenkins 2.263 but is able to save the job and run the single branch job. The UI rendering issue is not related to the tables to divs transition, since 2.263 is before the tables to divs transition. !branch-strategy-field-outside-form.png|thumbnail! |
New:
I added a ["Single source" branch source|https://github.com/MarkEWaite/docker-lfs/blob/lts-with-plugins/ref/jobs/Bugs-Pipeline-Checks/jobs/jenkins-bugs-single-source/config.xml] as the source for a multibranch pipeline to use the master branch of https://github.com/MarkEWaite/jenkins-bugs . I used a narrow refspec, honor refspec on initial clone, and a reference repository to keep the checkout process as fast as possible. The steps work without a stack trace with Jenkins 2.263 on Java 8. The steps failed with a stack trace with Jenkins 2.266-SNAPSHOT on Java 11. {noformat} 2020-11-08 05:00:33.510+0000 [id=1796] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://testing-a.markwaite.net:8080/job/Bugs-Pipeline-Checks/job/Single-SCM-source-GitHub/configSubmit java.lang.ClassNotFoundException: ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] at jenkins.telemetry.impl.java11.CatcherClassLoader.findClass(CatcherClassLoader.java:47) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:669) Caused: java.lang.IllegalArgumentException: Class ["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"] is specified in JSON, but no such class found in jenkins.telemetry.impl.java11.CatcherClassLoader@58cdb77e at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from {"stapler-class":["jenkins.scm.impl.SingleSCMSource","jenkins.branch.BranchSource"],"id":"bffd03ed-6b91-44ff-89ac-cd1ed4d73657","name":"master","":["0","0"],"scm":{"userRemoteConfigs":{"url":"https://github.com/MarkEWaite/jenkins-bugs","includeUser":"false","credentialsId":"MarkEWaite-github-username-password","name":"origin","refspec":"+refs/heads/master:refs/remotes/origin/master"},"branches":{"name":"*/master"},"gitTool":"Default","":"auto","extensions":{"noTags":true,"honorRefspec":true,"reference":"/var/lib/git/mwaite/bugs/jenkins-bugs.git","timeout":"","shallow":false,"depth":"","stapler-class":"hudson.plugins.git.extensions.impl.CloneOption","$class":"hudson.plugins.git.extensions.impl.CloneOption"},"stapler-class":"hudson.plugins.git.GitSCM","$class":"hudson.plugins.git.GitSCM"},"strategy":{"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"kind":"jenkins.branch.BranchSource"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512) at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:896) at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1363) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:414) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException {noformat} I've not yet bisected the stack trace problem to see if the issue is related to the XStream unfork or the tables to divs transition. The UI renders incorrectly on Jenkins 2.249.2 and Jenkins 2.263 but is able to save the job and run the single branch job. The UI rendering issue is not related to the tables to divs transition, since 2.249.2 and 2.263 are before the tables to divs transition. !branch-strategy-field-outside-form.png|thumbnail! |