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

Binary Compatibility between JIRA Plugin and Apache HttpComponents Client 4.x API

    XMLWordPrintable

Details

    • Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 3, Blue Ocean 1.6 - beta 2

    Description

      java.lang.IllegalAccessError: org/apache/http/impl/client/cache/BasicHttpCache
          at org.apache.http.impl.client.cache.CachingHttpAsyncClient.<init>(CachingHttpAsyncClient.java:173)
          at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:239)
          at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:123)
          at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.doCreate(DefaultHttpClientFactory.java:68)
          at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.create(DefaultHttpClientFactory.java:35)
          at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:63)
          at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35)
          at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.createWithBasicHttpAuthentication(AsynchronousJiraRestClientFactory.java:42)
          at hudson.plugins.jira.JiraSite.createSession(JiraSite.java:280)
          at hudson.plugins.jira.JiraSite$DescriptorImpl.doValidate(JiraSite.java:782)
          at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
          at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
      Caused: java.lang.reflect.InvocationTargetException
      
      [WARNING] Error while serving http://localhost:8090/jenkins/descriptorByName/hudson.plugins.jira.JiraSite/validate
      java.lang.reflect.InvocationTargetException
      	at ...
      Caused by: java.lang.IllegalAccessError: tried to access class org.apache.http.impl.client.cache.BasicHttpCache from class org.apache.http.impl.client.cache.CachingHttpAsyncClient
      	at org.apache.http.impl.client.cache.CachingHttpAsyncClient.<init>(CachingHttpAsyncClient.java:173)
      	at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:239)
      	at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:123)
      	at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.doCreate(DefaultHttpClientFactory.java:68)
      	at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.create(DefaultHttpClientFactory.java:35)
      	at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:63)
      	at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35)
      	at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.createWithBasicHttpAuthentication(AsynchronousJiraRestClientFactory.java:42)
      	at hudson.plugins.jira.JiraSite.createSession(JiraSite.java:303)
      	at hudson.plugins.jira.JiraSite$DescriptorImpl.doValidate(JiraSite.java:805)
      	... 65 more
      

      Attachments

        Issue Links

          Activity

            jamesdumay James Dumay created issue -
            jamesdumay James Dumay made changes -
            Field Original Value New Value
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jamesdumay James Dumay made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal CD-262 (Web Link)" [ 18307 ]
            jamesdumay James Dumay made changes -
            Comment [ [~oleg_nenashev] I pulled this from an CloudBees internal support request

            {noformat}
            c.a.j.r.c.i.a.AsynchronousHttpClientFactory$MavenUtils#getVersion: Could not find version for maven artifact com.atlassian.jira:jira-rest-java-com.atlassian.jira.rest.client
            2017-11-19 05:06:29.723+0000 [id=108901] FINE c.a.j.r.c.i.a.AsynchronousHttpClientFactory$MavenUtils#getVersion: Got the following exception
            java.lang.NullPointerException
                at java.util.Properties$LineReader.readLine(Properties.java:434)
                at java.util.Properties.load0(Properties.java:353)
                at java.util.Properties.load(Properties.java:341)
                at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory$MavenUtils.getVersion(AsynchronousHttpClientFactory.java:185)
                at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory$RestClientApplicationProperties.getVersion(AsynchronousHttpClientFactory.java:146)
                at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient$DefaultApplicationNameSupplier.get(ApacheAsyncHttpClient.java:531)
                at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient$DefaultApplicationNameSupplier.get(ApacheAsyncHttpClient.java:517)
                at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.getUserAgent(ApacheAsyncHttpClient.java:332)
                at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:208)
                at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:123)
                at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.doCreate(DefaultHttpClientFactory.java:68)
                at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.create(DefaultHttpClientFactory.java:35)
                at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:63)
                at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35)
                at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.createWithBasicHttpAuthentication(AsynchronousJiraRestClientFactory.java:42)
                at hudson.plugins.jira.JiraSite.createSession(JiraSite.java:280)
                at hudson.plugins.jira.JiraSite.getSession(JiraSite.java:255)
                at io.jenkins.blueocean.service.embedded.jira.JiraSCMListener.onChangeLogParsed(JiraSCMListener.java:38)
                at hudson.model.listeners.SCMListener.onChangeLogParsed(SCMListener.java:120)
                at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:620)
                at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
                at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
                at hudson.model.Run.execute(Run.java:1728)
                at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
                at hudson.model.ResourceController.execute(ResourceController.java:98)
                at hudson.model.Executor.run(Executor.java:405)
            {noformat} ]
            warden Radek Antoniuk made changes -
            Attachment log.gz [ 41017 ]
            jamesdumay James Dumay made changes -
            Sprint Blue Ocean 1.4 - beta 3 [ 416 ] Blue Ocean 1.4 - beta 3, Blue Ocean 1.4 - beta 5 [ 416, 451 ]
            warden Radek Antoniuk made changes -
            Status In Review [ 10005 ] In Progress [ 3 ]
            warden Radek Antoniuk made changes -
            Link This issue is duplicated by JENKINS-49214 [ JENKINS-49214 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee James Dumay [ jamesdumay ] Oleg Nenashev [ oleg_nenashev ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is duplicated by JENKINS-49208 [ JENKINS-49208 ]
            oleg_nenashev Oleg Nenashev made changes -
            Remote Link This issue links to "CloudBees Internal CD-262 (Web Link)" [ 18307 ]
            oleg_nenashev Oleg Nenashev made changes -
            Remote Link This issue links to "CloudBees Internal CD-362 (Web Link)" [ 19977 ]
            oleg_nenashev Oleg Nenashev made changes -
            Summary Older version of httpclient-cache causing IllegalAccessError Binary Compatibility issues in JIRA Plugin 2.5.1
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue relates to JENKINS-49231 [ JENKINS-49231 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue relates to JENKINS-49234 [ JENKINS-49234 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ]
            oleg_nenashev Oleg Nenashev made changes -
            Priority Minor [ 4 ] Blocker [ 1 ]
            oleg_nenashev Oleg Nenashev made changes -
            Component/s apache-httpcomponents-client-4-api-plugin [ 23052 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            oleg_nenashev Oleg Nenashev made changes -
            Summary Binary Compatibility issues in JIRA Plugin 2.5.1 Binary Compatibility between JIRA Plugin 2.5.1 and Apache HttpComponents Client 4.x API
            oleg_nenashev Oleg Nenashev made changes -
            Summary Binary Compatibility between JIRA Plugin 2.5.1 and Apache HttpComponents Client 4.x API Binary Compatibility between JIRA Plugin and Apache HttpComponents Client 4.x API
            oleg_nenashev Oleg Nenashev made changes -
            Remote Link This issue links to "Partial fix/revert: https://github.com/jenkinsci/jira-plugin/pull/139 (Web Link)" [ 19995 ]
            oleg_nenashev Oleg Nenashev made changes -
            Remote Link This issue links to "2.5.1 blacklisting: https://github.com/jenkins-infra/backend-update-center2/pull/182 (Web Link)" [ 19997 ]
            warden Radek Antoniuk made changes -
            Link This issue is duplicated by JENKINS-49231 [ JENKINS-49231 ]
            oleg_nenashev Oleg Nenashev made changes -
            Remote Link This issue links to "Blacklist PR #2 (Web Link)" [ 20002 ]
            ariele Ariel Einfeld made changes -
            Attachment image-2018-02-01-13-32-12-104.png [ 41306 ]
            ariele Ariel Einfeld made changes -
            Attachment image-2018-02-01-13-32-45-807.png [ 41307 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is duplicated by JENKINS-49346 [ JENKINS-49346 ]
            vivek Vivek Pandey made changes -
            Sprint Blue Ocean 1.4 - beta 3, Blue Ocean 1.4 - beta 5 [ 416, 451 ] Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 1 [ 416, 456 ]
            vivek Vivek Pandey made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Assignee Vivek Pandey [ vivek ]
            alexey_larsky Alexey Larsky made changes -
            Link This issue is related to JENKINS-49234 [ JENKINS-49234 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-43106 [ JENKINS-43106 ]
            vivek Vivek Pandey made changes -
            Status In Review [ 10005 ] In Progress [ 3 ]
            vivek Vivek Pandey made changes -
            Sprint Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 1 [ 416, 456 ] Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 2 [ 416, 481 ]
            vivek Vivek Pandey made changes -
            Rank Ranked lower
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is duplicated by JENKINS-49975 [ JENKINS-49975 ]
            vivek Vivek Pandey made changes -
            Sprint Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 2 [ 416, 481 ] Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 3 [ 416, 491 ]
            vivek Vivek Pandey made changes -
            Rank Ranked higher
            gmshake Zhenlei Huang made changes -
            Link This issue is duplicated by JENKINS-50140 [ JENKINS-50140 ]
            vivek Vivek Pandey made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            vivek Vivek Pandey made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            oleg_nenashev Oleg Nenashev made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            cleclerc Cyrille Le Clerc made changes -
            Description

            {noformat}
            java.lang.IllegalAccessError: org/apache/http/impl/client/cache/BasicHttpCache
                at org.apache.http.impl.client.cache.CachingHttpAsyncClient.<init>(CachingHttpAsyncClient.java:173)
                at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:239)
                at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:123)
                at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.doCreate(DefaultHttpClientFactory.java:68)
                at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.create(DefaultHttpClientFactory.java:35)
                at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:63)
                at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35)
                at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.createWithBasicHttpAuthentication(AsynchronousJiraRestClientFactory.java:42)
                at hudson.plugins.jira.JiraSite.createSession(JiraSite.java:280)
                at hudson.plugins.jira.JiraSite$DescriptorImpl.doValidate(JiraSite.java:782)
                at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
                at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
            Caused: java.lang.reflect.InvocationTargetException
            {noformat}
            {noformat}
            java.lang.IllegalAccessError: org/apache/http/impl/client/cache/BasicHttpCache
                at org.apache.http.impl.client.cache.CachingHttpAsyncClient.<init>(CachingHttpAsyncClient.java:173)
                at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:239)
                at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:123)
                at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.doCreate(DefaultHttpClientFactory.java:68)
                at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.create(DefaultHttpClientFactory.java:35)
                at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:63)
                at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35)
                at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.createWithBasicHttpAuthentication(AsynchronousJiraRestClientFactory.java:42)
                at hudson.plugins.jira.JiraSite.createSession(JiraSite.java:280)
                at hudson.plugins.jira.JiraSite$DescriptorImpl.doValidate(JiraSite.java:782)
                at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
                at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
            Caused: java.lang.reflect.InvocationTargetException
            {noformat}

            {noformat}
            [WARNING] Error while serving http://localhost:8090/jenkins/descriptorByName/hudson.plugins.jira.JiraSite/validate
            java.lang.reflect.InvocationTargetException
            at ...
            Caused by: java.lang.IllegalAccessError: tried to access class org.apache.http.impl.client.cache.BasicHttpCache from class org.apache.http.impl.client.cache.CachingHttpAsyncClient
            at org.apache.http.impl.client.cache.CachingHttpAsyncClient.<init>(CachingHttpAsyncClient.java:173)
            at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:239)
            at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(ApacheAsyncHttpClient.java:123)
            at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.doCreate(DefaultHttpClientFactory.java:68)
            at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.create(DefaultHttpClientFactory.java:35)
            at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:63)
            at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35)
            at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.createWithBasicHttpAuthentication(AsynchronousJiraRestClientFactory.java:42)
            at hudson.plugins.jira.JiraSite.createSession(JiraSite.java:303)
            at hudson.plugins.jira.JiraSite$DescriptorImpl.doValidate(JiraSite.java:805)
            ... 65 more
            {noformat}
            gmshake Zhenlei Huang made changes -
            Link This issue is related to JENKINS-41827 [ JENKINS-41827 ]
            gmshake Zhenlei Huang made changes -
            Link This issue relates to JENKINS-41827 [ JENKINS-41827 ]
            gmshake Zhenlei Huang made changes -
            Link This issue is related to JENKINS-41827 [ JENKINS-41827 ]
            vivek Vivek Pandey made changes -
            Link This issue relates to JENKINS-50885 [ JENKINS-50885 ]
            vivek Vivek Pandey made changes -
            Assignee Vivek Pandey [ vivek ] olamy [ olamy ]
            vivek Vivek Pandey made changes -
            Sprint Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 3 [ 416, 491 ] Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 3, Blue Ocean 1.6 - beta 2 [ 416, 491, 546 ]
            jbriden Jenn Briden made changes -
            Status Reopened [ 4 ] In Progress [ 3 ]
            vivek Vivek Pandey made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            gmshake Zhenlei Huang made changes -
            Remote Link This issue links to "Bundle HttpAsyncClient (Web Link)" [ 20600 ]
            gmshake Zhenlei Huang made changes -
            Remote Link This issue links to "Acceptance test: https://github.com/jenkinsci/jira-plugin/pull/146 (Web Link)" [ 20601 ]
            gmshake Zhenlei Huang made changes -
            Remote Link This issue links to "WIP fix: https://github.com/jenkinsci/jira-plugin/pull/145 (Web Link)" [ 20602 ]
            olamy Olivier Lamy made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            olamy Olivier Lamy made changes -
            Labels jira-plugin-2.5.2
            vivek Vivek Pandey made changes -
            Link This issue relates to JENKINS-51058 [ JENKINS-51058 ]
            jbriden Jenn Briden made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            abayer Andrew Bayer made changes -
            Link This issue is duplicated by JENKINS-46503 [ JENKINS-46503 ]

            People

              olamy Olivier Lamy
              jamesdumay James Dumay
              Votes:
              40 Vote for this issue
              Watchers:
              61 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: