Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70807

applitools plugin - java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpMethod

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • applitools-eyes-plugin
    • None
    • Jenkins 2.387.1

      We are suddently getting the following errors for 5 days now.  it used to work ok prior to that

       
      java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpMethod
      at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
      at jenkins.util.URLClassLoader2.findClass(URLClassLoader2.java:35)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
      at com.applitools.jenkins.ApplitoolsStep$ApplitoolsStepExecution.start(ApplitoolsStep.java:65)
      at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:322)
      at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:196)
      at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124)
      at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1295)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1184)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:41)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
      Caused: java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
      at com.applitools.jenkins.ApplitoolsStep$ApplitoolsStepExecution.start(ApplitoolsStep.java:65)
      at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:322)
      at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:196)
      at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124)
      at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1295)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1184)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:41)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
      at JTE_testcommon_executeTests.call(JTE_testcommon_executeTests:5)
      at __cps.transform__(Native Method)
      at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:90)
      at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:116)
      at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:85)
      at jdk.internal.reflect.GeneratedMethodAccessor190.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
      at com.cloudbees.groovy.cps.impl.ClosureBlock.eval(ClosureBlock.java:46)
      at com.cloudbees.groovy.cps.Next.step(Next.java:83)
      at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:158)
      at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:152)
      at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:136)
      at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:275)
      at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:152)
      at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
      at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
      at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:187)
      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:420)
      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:95)
      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:330)
      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:294)
      at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
      at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
      at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:834)
      Finished: FAILURE
       

          [JENKINS-70807] applitools plugin - java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpMethod

          trhia added a comment - - edited

          when I upgraded to Jenkins 2.387.1,  the library for commons-httpclient-3.1-jenkins-3.jar. went missing from the lib folder.    I can confirm that we still have commons-httpclient3-api:3.1-3 plugin installed.  

           

          It looks like this is already eof of life ... maybe applitools plugin needs to be updated to use Apache HttpComponents ?

           

           

          HttpClient - HttpClient Home (apache.org)

           

           

           

           

          trhia added a comment - - edited when I upgraded to Jenkins 2.387.1 ,  the library for commons-httpclient-3.1-jenkins-3.jar. went missing from the lib folder.    I can confirm that we still have commons-httpclient3-api:3.1-3 plugin installed.     It looks like this is already eof of life ... maybe applitools plugin needs to be updated to use Apache HttpComponents ?     HttpClient - HttpClient Home (apache.org)        

          Aman added a comment -

          If you are getting the isssue. Try add the below dependency in your pom file

          <dependency>
          <groupId>org.apache.httpcomponents</groupId>
          <artifactId>httpclient</artifactId>
          <version>4.3.4</version>
          </dependency>

          Aman added a comment - If you are getting the isssue. Try add the below dependency in your pom file <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.3.4</version> </dependency>

          Aman added a comment -

          Let me know what exactly you are getting after this also

          Aman added a comment - Let me know what exactly you are getting after this also

          trhia added a comment -

          Hi aura_aman , I am assuming that you mean for me to add this to the project that my the job is building?  I added the following line to the gradle file 

           

          testRuntimeOnly 'org.apache.httpcomponents:httpclient:4.3.4'

           

          and I still get the same error.    

           

          Looking at the source code of applitools plugin, this issue seems to be fixed.   applitools-eyes-plugin/pom.xml at master · jenkinsci/applitools-eyes-plugin · GitHub

           

          When will a new release be available to download the latest changes? 

          trhia added a comment - Hi aura_aman , I am assuming that you mean for me to add this to the project that my the job is building?  I added the following line to the gradle file    testRuntimeOnly 'org.apache.httpcomponents:httpclient:4.3.4'   and I still get the same error.       Looking at the source code of applitools plugin, this issue seems to be fixed.   applitools-eyes-plugin/pom.xml at master · jenkinsci/applitools-eyes-plugin · GitHub   When will a new release be available to download the latest changes? 

          trhia added a comment - - edited

          Copying comment from duplicate issue here by Basil Crow:

           
          applitools-eyes-plugin was fixed in https://github.com/jenkinsci/applitools-eyes-plugin/pull/11 and that thread contains a discussion where another user also requested a release from the maintainer.
           

          trhia added a comment - - edited Copying comment from duplicate issue here by Basil Crow:   applitools-eyes-plugin  was fixed in  https://github.com/jenkinsci/applitools-eyes-plugin/pull/11  and that thread contains a discussion where another user also requested a release from the maintainer.  

            applitools Applitools Team
            trhia trhia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: