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

            markewaite Mark Waite added a comment -

            Tibor, I think you'll get better results with a new bug report rather than asking questions on this closed report

            markewaite Mark Waite added a comment - Tibor, I think you'll get better results with a new bug report rather than asking questions on this closed report
            tibor17 Tibor Digana added a comment -

            olamy
            Now my build does not hang but I have a new issue with Jira plugin because when I commit with messages which matches a pattern, the Jira plugin times out immediately. Maybe in less than one second. In the Management are two sections: JIRA and JIRA Sites. The first has successful login but the second fails. Why this happens?

            tibor17 Tibor Digana added a comment - olamy Now my build does not hang but I have a new issue with Jira plugin because when I commit with messages which matches a pattern, the Jira plugin times out immediately. Maybe in less than one second. In the Management are two sections: JIRA and JIRA Sites. The first has successful login but the second fails. Why this happens?

            Code changed in jenkins
            User: Olivier Lamy
            Path:
            README.md
            pom.xml
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/ApacheAsyncHttpClient.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/CommonBuilder.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/DefaultHttpClientFactory.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/DefaultMessage.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/DefaultRequest.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/DefaultResponse.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/EntityByteArrayInputStream.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/Headers.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/MavenUtils.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/PromiseHttpAsyncClient.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/RedirectStrategy.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/RequestEntityEffect.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/SettableFuturePromiseHttpPromiseAsyncClient.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/proxy/ProvidedProxyConfig.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/proxy/ProxyConfig.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/proxy/ProxyConfigFactory.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/proxy/ProxyCredentialsProvider.java
            src/main/java/com/atlassian/httpclient/apache/httpcomponents/proxy/SystemPropertiesProxyConfig.java
            src/main/java/com/atlassian/httpclient/base/event/AbstractHttpRequestEvent.java
            src/main/java/com/atlassian/httpclient/base/event/HttpRequestCompletedEvent.java
            src/main/java/com/atlassian/httpclient/base/event/HttpRequestFailedEvent.java
            src/main/resources/atlassian-httpclient-plugin-0.23.0.pom
            http://jenkins-ci.org/commit/jira-plugin/abd092848b1e617ceb31b16de07b1445d34c4d03
            Log:
            JENKINS-48357 get rid of atlassian http client (#145)

            JENKINS-48357

            • import sources from Atlassian Async HttpClient so we can use whatever we want as apache httpclient version

            Signed-off-by: olivier lamy <olamy@apache.org>

            • remove non used imported classes

            Signed-off-by: olivier lamy <olamy@apache.org>

            • get rid of this class

            Signed-off-by: olivier lamy <olamy@apache.org>

            • modern

            Signed-off-by: olivier lamy <olamy@apache.org>

            • add note on Atlassian sources import

            Signed-off-by: olivier lamy <olamy@apache.org>

            • add Atlassian pom for history purpose

            Signed-off-by: olivier lamy <olamy@apache.org>

            Signed-off-by: olivier lamy <olamy@apache.org>

            • get rid of this httpasyncclient-cache

            Signed-off-by: olivier lamy <olamy@apache.org>

            • use last apache-httpcomponents-client-4-api 4.5.5-2.0 which include asynchttpclient now

            Signed-off-by: olivier lamy <olamy@apache.org>

            • add back jenkins-ci repo

            Signed-off-by: olivier lamy <olamy@apache.org>

            • exclude atlassian classes from coverage

            Signed-off-by: olivier lamy <olamy@apache.org>

            *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

            Functionality will be removed from GitHub.com on January 31st, 2019.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: README.md pom.xml src/main/java/com/atlassian/httpclient/apache/httpcomponents/ApacheAsyncHttpClient.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/CommonBuilder.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/DefaultHttpClientFactory.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/DefaultMessage.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/DefaultRequest.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/DefaultResponse.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/EntityByteArrayInputStream.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/Headers.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/MavenUtils.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/PromiseHttpAsyncClient.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/RedirectStrategy.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/RequestEntityEffect.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/SettableFuturePromiseHttpPromiseAsyncClient.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/proxy/ProvidedProxyConfig.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/proxy/ProxyConfig.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/proxy/ProxyConfigFactory.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/proxy/ProxyCredentialsProvider.java src/main/java/com/atlassian/httpclient/apache/httpcomponents/proxy/SystemPropertiesProxyConfig.java src/main/java/com/atlassian/httpclient/base/event/AbstractHttpRequestEvent.java src/main/java/com/atlassian/httpclient/base/event/HttpRequestCompletedEvent.java src/main/java/com/atlassian/httpclient/base/event/HttpRequestFailedEvent.java src/main/resources/atlassian-httpclient-plugin-0.23.0.pom http://jenkins-ci.org/commit/jira-plugin/abd092848b1e617ceb31b16de07b1445d34c4d03 Log: JENKINS-48357 get rid of atlassian http client (#145) JENKINS-48357 import sources from Atlassian Async HttpClient so we can use whatever we want as apache httpclient version Signed-off-by: olivier lamy <olamy@apache.org> remove non used imported classes Signed-off-by: olivier lamy <olamy@apache.org> get rid of this class Signed-off-by: olivier lamy <olamy@apache.org> modern Signed-off-by: olivier lamy <olamy@apache.org> add note on Atlassian sources import Signed-off-by: olivier lamy <olamy@apache.org> add Atlassian pom for history purpose Signed-off-by: olivier lamy <olamy@apache.org> JENKINS-48357 get rid of non used class Signed-off-by: olivier lamy <olamy@apache.org> get rid of this httpasyncclient-cache Signed-off-by: olivier lamy <olamy@apache.org> use last apache-httpcomponents-client-4-api 4.5.5-2.0 which include asynchttpclient now Signed-off-by: olivier lamy <olamy@apache.org> add back jenkins-ci repo Signed-off-by: olivier lamy <olamy@apache.org> exclude atlassian classes from coverage Signed-off-by: olivier lamy <olamy@apache.org> * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
            tibor17 Tibor Digana added a comment -

            olamy
            vivek
            After I have downgraded Git Client back to 2.7.1 release and still used Olivier's SNAPSHOT of JIRA plugin the build did not hang, hopefully it's fine.

            tibor17 Tibor Digana added a comment - olamy vivek After I have downgraded Git Client back to 2.7.1 release and still used Olivier's SNAPSHOT of JIRA plugin the build did not hang, hopefully it's fine.
            vivek Vivek Pandey added a comment -

            tibor17 Thanks for confirming jira plugin fixes the issue. olamy another data point to go ahead with merge and release jira plugin

            vivek Vivek Pandey added a comment - tibor17 Thanks for confirming jira plugin fixes the issue. olamy another data point to go ahead with merge and release jira plugin

            People

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

              Dates

                Created:
                Updated:
                Resolved: