-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Job DSL 1.39
Jenkins 1.631
We've been tracing some errors since upgrading to 1.39 where certain classes no longer appeared to exist.
We have a jar file which we add via "additionalClasspath" on our seed job.
On inspection of the jar, the closure files do exist.
```
16:37:06 java.lang.NoClassDefFoundError: com/freelancer/jobdsl/dsl/helpers/FreelancerToxWorkflowContext$_init_closure2_closure3
16:37:06 at com.freelancer.jobdsl.dsl.helpers.FreelancerToxWorkflowContext$_init_closure2.doCall(FreelancerToxWorkflowContext.groovy:60)
```
The weird thing is that we tried make some changes to the source code, but the errors still point to the same location (says line 60) where it can't find the class.
Furthermore, we tried to track down which commit this started happening, and found it started happening when trying to clean up the classloader: https://github.com/jenkinsci/job-dsl-plugin/commit/98ad52ac530dc58156807cd7dca29f323301042c?w=1
[JENKINS-30832] Seed job encounters `NoClassDefFoundError`
Description |
Original:
We've been tracing some errors since upgrading to 1.39 where certain classes no longer appeared to exist. We have a jar file which we add via "additionalClasspath" on our seed job. On inspection of the jar, the closure files do exist. ``` 16:37:06 java.lang.NoClassDefFoundError: com/freelancer/jobdsl/dsl/helpers/FreelancerToxWorkflowContext$_init_closure2_closure3 16:37:06 at com.freelancer.jobdsl.dsl.helpers.FreelancerToxWorkflowContext$_init_closure2.doCall(FreelancerToxWorkflowContext.groovy:60) ``` The weird thing is that we will make some changes to the source code, but the errors still point to the same location (line 60) where it can't find the class. We suspect there'ssome nasty caching going on. Furthermore, we tried to track down which commit this started happening, and found it started happening when trying to clean up the classloader: https://github.com/jenkinsci/job-dsl-plugin/commit/98ad52ac530dc58156807cd7dca29f323301042c |
New:
We've been tracing some errors since upgrading to 1.39 where certain classes no longer appeared to exist. We have a jar file which we add via "additionalClasspath" on our seed job. On inspection of the jar, the closure files do exist. ``` 16:37:06 java.lang.NoClassDefFoundError: com/freelancer/jobdsl/dsl/helpers/FreelancerToxWorkflowContext$_init_closure2_closure3 16:37:06 at com.freelancer.jobdsl.dsl.helpers.FreelancerToxWorkflowContext$_init_closure2.doCall(FreelancerToxWorkflowContext.groovy:60) ``` The weird thing is that we tried make some changes to the source code, but the errors still point to the same location (says line 60) where it can't find the class. Furthermore, we tried to track down which commit this started happening, and found it started happening when trying to clean up the classloader: https://github.com/jenkinsci/job-dsl-plugin/commit/98ad52ac530dc58156807cd7dca29f323301042c?w=1 |
Workflow | Original: JNJira [ 165959 ] | New: JNJira + In-Review [ 182227 ] |
Assignee | Original: Daniel Spilker [ daspilker ] | New: Jamie Tanna [ jamietanna ] |