-
Bug
-
Resolution: Fixed
-
Minor
-
None
Hello,
Past 2 months we were getting below error while deleting any PR's, builds, jobs, folders. Since none of the jobs are getting deleted Jenkins Master is constantly running out of space.
Looks like "org.marvelution.jji.SitesClient" is causing an issue during the delete process and Jenkins is throwing the below error.
A problem occurred while processing the request.
Logging ID=1969213f-374a-4e6d-9507-c0c9798e0f0a
ERROR: Unexpected exception occurred while performing delete-job command.
java.lang.ClassNotFoundException: javax.ws.rs.ext.MessageBodyReader
at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1417)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1372)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1127)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
Caused: java.lang.NoClassDefFoundError: javax/ws/rs/ext/MessageBodyReader
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1187)
at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1355)
at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1407)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1372)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1127)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1187)
at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1355)
at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1407)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1372)
at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:107)
at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:646)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1436)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1123)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at com.sun.jersey.core.reflection.ReflectionHelper$3.run(ReflectionHelper.java:289)
at com.sun.jersey.core.reflection.ReflectionHelper$3.run(ReflectionHelper.java:279)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.jersey.spi.service.ServiceFinder$AbstractLazyIterator.hasNext(ServiceFinder.java:697)
at com.sun.jersey.spi.service.ServiceFinder.toClassArray(ServiceFinder.java:549)
at com.sun.jersey.core.spi.component.ProviderServices.getServiceClasses(ProviderServices.java:345)
at com.sun.jersey.core.spi.component.ProviderServices.getServiceClasses(ProviderServices.java:338)
at com.sun.jersey.core.spi.component.ProviderServices.getServices(ProviderServices.java:162)
at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:176)
at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162)
at com.sun.jersey.api.client.Client.init(Client.java:343)
at com.sun.jersey.api.client.Client.access$000(Client.java:119)
at com.sun.jersey.api.client.Client$1.f(Client.java:192)
at com.sun.jersey.api.client.Client$1.f(Client.java:188)
at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)
at com.sun.jersey.api.client.Client.<init>(Client.java:188)
at com.sun.jersey.api.client.Client.<init>(Client.java:171)
at com.sun.jersey.api.client.Client.create(Client.java:683)
at org.marvelution.jji.JIRAUtils.createClient(JIRAUtils.java:82)
at java.base/java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:305)
at java.base/java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:195)
at java.base/java.lang.ThreadLocal.get(ThreadLocal.java:172)
at org.marvelution.jji.SitesClient.getResource(SitesClient.java:275)
at org.marvelution.jji.SitesClient.getResource(SitesClient.java:268)
at org.marvelution.jji.SitesClient.lambda$notifyJobDeleted$5(SitesClient.java:215)
at org.marvelution.jji.SitesClient.lambda$notifyDeletion$7(SitesClient.java:230)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1621)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at org.marvelution.jji.SitesClient.doWithSites(SitesClient.java:261)
at org.marvelution.jji.SitesClient.doWithSites(SitesClient.java:254)
at org.marvelution.jji.SitesClient.notifyDeletion(SitesClient.java:227)
at org.marvelution.jji.SitesClient.notifyJobDeleted(SitesClient.java:215)
at org.marvelution.jji.listener.JobListener.onDeleted(JobListener.java:61)
at hudson.model.listeners.ItemListener.lambda$fireOnDeleted$3(ItemListener.java:234)
at hudson.model.listeners.ItemListener.forAll(ItemListener.java:178)
at hudson.model.listeners.ItemListener.fireOnDeleted(ItemListener.java:232)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.onDeleted(AbstractFolder.java:1077)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.onDeleted(AbstractFolder.java:144)
at hudson.model.AbstractItem.delete(AbstractItem.java:800)
at hudson.model.Job.delete(Job.java:684)
at hudson.cli.DeleteJobCommand.run(DeleteJobCommand.java:72)
at hudson.cli.CLICommand.main(CLICommand.java:249)
at hudson.cli.CLIAction$ServerSideImpl.run(CLIAction.java:282)
at hudson.cli.CLIAction$1.lambda$opened$0(CLIAction.java:150)
at java.base/java.lang.Thread.run(Thread.java:829)
- links to