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 ]

            Code changed in jenkins
            User: James Dumay
            Path:
            pom.xml
            http://jenkins-ci.org/commit/jira-plugin/3380f40a93c161363b9f0c81133725be0abb7e89
            Log:
            JENKINS-48357 Older version of httpclient-cache causing IllegalAccessError

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: James Dumay Path: pom.xml http://jenkins-ci.org/commit/jira-plugin/3380f40a93c161363b9f0c81133725be0abb7e89 Log: JENKINS-48357 Older version of httpclient-cache causing IllegalAccessError

            Code changed in jenkins
            User: Radek Antoniuk
            Path:
            pom.xml
            http://jenkins-ci.org/commit/jira-plugin/51932a02f90becda9c0404ca40df035b42eccc91
            Log:
            Merge pull request #133 from i386/bug/JENKINS-48357

            JENKINS-48357 Older version of httpclient-cache causing IllegalAccessError and use httpclient
            Switch to using org.jenkins-ci.plugins.apache-httpcomponents-client-4-api plugin.

            Compare: https://github.com/jenkinsci/jira-plugin/compare/4c7dcde762b5...51932a02f90b

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Radek Antoniuk Path: pom.xml http://jenkins-ci.org/commit/jira-plugin/51932a02f90becda9c0404ca40df035b42eccc91 Log: Merge pull request #133 from i386/bug/ JENKINS-48357 JENKINS-48357 Older version of httpclient-cache causing IllegalAccessError and use httpclient Switch to using org.jenkins-ci.plugins.apache-httpcomponents-client-4-api plugin. Compare: https://github.com/jenkinsci/jira-plugin/compare/4c7dcde762b5...51932a02f90b

            After reverting PR 133 with PR 137 testing with hpi Jenkins 2.7.3 I'm still getting:

            [WARNING] Error while serving http://localhost:8090/jenkins/descriptorByName/hudson.plugins.jira.JiraSite/validate
            java.lang.reflect.InvocationTargetException
            	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:498)
            	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
            	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
            	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100)
            	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
            	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
            	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
            	at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233)
            	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
            	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
            	at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
            	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
            	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
            	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
            	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
            	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
            	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
            	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
            	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
            	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
            	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
            	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
            	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
            	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
            	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
            	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
            	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
            	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
            	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
            	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
            	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
            	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
            	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
            	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
            	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
            	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
            	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)
            	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
            	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
            	at org.eclipse.jetty.server.Server.handle(Server.java:564)
            	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)
            	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
            	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
            	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
            	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
            	at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
            	at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
            	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
            	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
            	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
            	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
            	at java.lang.Thread.run(Thread.java:745)
            Caused by: 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:303)
            	at hudson.plugins.jira.JiraSite$DescriptorImpl.doValidate(JiraSite.java:805)
            	... 65 more
            

            I am not getting the error when I remove:

                <dependency>
                  <groupId>org.jenkins-ci.plugins</groupId>
                  <artifactId>apache-httpcomponents-client-4-api</artifactId>
                  <version>4.5.3-2.0</version>
                </dependency>
            

            So, there's something fishy here, as I understand jamesdumay you're getting this without this dependency? Can you try with current master?
            cc oleg_nenashev

            warden Radek Antoniuk added a comment - After reverting PR 133 with PR 137 testing with hpi Jenkins 2.7.3 I'm still getting: [WARNING] Error while serving http: //localhost:8090/jenkins/descriptorByName/hudson.plugins.jira.JiraSite/validate java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:564) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128) at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) at java.lang. Thread .run( Thread .java:745) Caused by: 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:303) at hudson.plugins.jira.JiraSite$DescriptorImpl.doValidate(JiraSite.java:805) ... 65 more I am not getting the error when I remove: <dependency> <groupId>org.jenkins-ci.plugins</groupId> <artifactId>apache-httpcomponents-client-4-api</artifactId> <version>4.5.3-2.0</version> </dependency> So, there's something fishy here, as I understand jamesdumay you're getting this without this dependency? Can you try with current master? cc oleg_nenashev
            oleg_nenashev Oleg Nenashev added a comment -

            Having a full stacktrace would be useful

            oleg_nenashev Oleg Nenashev added a comment - Having a full stacktrace would be useful
            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} ]
            gmshake Zhenlei Huang added a comment - - edited

            oleg_nenashev It sounds like class loading conflict. 

            MAVEN_DEBUG_OPTS="-verbose:class" mvn hpi:run -Denforcer.skip
            

            I'm getting this.

            [Loaded org.apache.http.impl.client.cache.CacheConfig from file:/Users/zlei/Downloads/jira-plugin/work/plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar]
            [Loaded org.apache.http.impl.client.cache.CacheConfig$Builder from file:/Users/zlei/Downloads/jira-plugin/work/plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar]
            ...
            [Loaded org.apache.http.impl.client.cache.CachingHttpAsyncClient from file:/Users/zlei/.m2/repository/com/atlassian/httpclient/atlassian-httpclient-plugin/0.23.0/atlassian-httpclient-plugin-0.23.0.jar]
            [Loaded org.apache.http.impl.client.cache.HttpCache from file:/Users/zlei/Downloads/jira-plugin/work/plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar]
            [Loaded org.apache.http.client.cache.ResourceFactory from file:/Users/zlei/Downloads/jira-plugin/work/plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar]
            [Loaded org.apache.http.impl.client.cache.BasicHttpCache from file:/Users/zlei/Downloads/jira-plugin/work/plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar]
            

            The package 'org.apache.http.impl.client.cache' is loaded from two jars 'plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar', and '.m2/repository/com/atlassian/httpclient/atlassian-httpclient-plugin/0.23.0/atlassian-httpclient-plugin-0.23.0.jar'.

            I'm not sure whether the two jars are loaded from different class loaders or not. Hope this helps

            gmshake Zhenlei Huang added a comment - - edited oleg_nenashev It sounds like class loading conflict.  MAVEN_DEBUG_OPTS="-verbose:class" mvn hpi:run -Denforcer.skip I'm getting this. [Loaded org.apache.http.impl.client.cache.CacheConfig from file:/Users/zlei/Downloads/jira-plugin/work/plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar] [Loaded org.apache.http.impl.client.cache.CacheConfig$Builder from file:/Users/zlei/Downloads/jira-plugin/work/plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar] ... [Loaded org.apache.http.impl.client.cache.CachingHttpAsyncClient from file:/Users/zlei/.m2/repository/com/atlassian/httpclient/atlassian-httpclient-plugin/0.23.0/atlassian-httpclient-plugin-0.23.0.jar] [Loaded org.apache.http.impl.client.cache.HttpCache from file:/Users/zlei/Downloads/jira-plugin/work/plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar] [Loaded org.apache.http.client.cache.ResourceFactory from file:/Users/zlei/Downloads/jira-plugin/work/plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar] [Loaded org.apache.http.impl.client.cache.BasicHttpCache from file:/Users/zlei/Downloads/jira-plugin/work/plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar] The package 'org.apache.http.impl.client.cache' is loaded from two jars 'plugins/apache-httpcomponents-client-4-api/WEB-INF/lib/httpclient-cache-4.5.3.jar', and '.m2/repository/com/atlassian/httpclient/atlassian-httpclient-plugin/0.23.0/atlassian-httpclient-plugin-0.23.0.jar'. I'm not sure whether the two jars are loaded from different class loaders or not. Hope this helps
            jamesdumay James Dumay added a comment -

            warden its not happening directly on my system but its happening on one of my customers.

            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.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)
            

            Plugins

            ace-editor:1.1:not-pinned
            allure-jenkins-plugin:2.15:not-pinned
            analysis-core:1.86:not-pinned
            AnchorChain:1.0:not-pinned
            android-emulator:2.15:not-pinned
            ansible:0.6.2:not-pinned
            ansicolor:0.5.0:not-pinned
            ant:1.5:not-pinned
            antisamy-markup-formatter:1.5:not-pinned
            apache-httpcomponents-client-4-api:4.5.3-2.0:not-pinned
            artifactory:2.9.1:not-pinned
            async-http-client:1.7.24.1:not-pinned
            audit-trail:2.2:not-pinned
            authentication-tokens:1.3:not-pinned
            aws-beanstalk-publisher-plugin:1.7.2:not-pinned
            aws-credentials:1.16:not-pinned
            aws-java-sdk:1.11.226:not-pinned
            aws-lambda:0.5.10:not-pinned
            blueocean:1.3.1:not-pinned
            blueocean-autofavorite:1.0.0:not-pinned
            blueocean-bitbucket-pipeline:1.3.1:not-pinned
            blueocean-commons:1.3.1:not-pinned
            blueocean-config:1.3.1:not-pinned
            blueocean-dashboard:1.3.1:not-pinned
            blueocean-display-url:2.1.1:not-pinned
            blueocean-events:1.3.1:not-pinned
            blueocean-git-pipeline:1.3.1:not-pinned
            blueocean-github-pipeline:1.3.1:not-pinned
            blueocean-i18n:1.3.1:not-pinned
            blueocean-jira:1.3.1:not-pinned
            blueocean-jwt:1.3.1:not-pinned
            blueocean-personalization:1.3.1:not-pinned
            blueocean-pipeline-api-impl:1.3.1:not-pinned
            blueocean-pipeline-editor:1.3.1:not-pinned
            blueocean-pipeline-scm-api:1.3.1:not-pinned
            blueocean-rest:1.3.1:not-pinned
            blueocean-rest-impl:1.3.1:not-pinned
            blueocean-web:1.3.1:not-pinned
            bouncycastle-api:2.16.1:not-pinned
            branch-api:2.0.15:not-pinned
            build-metrics:1.3:not-pinned
            build-monitor-plugin:1.11+build.201701152243:not-pinned
            build-name-setter:1.6.5:not-pinned
            build-pipeline-plugin:1.5.7.1:not-pinned
            build-timeout:1.18:not-pinned
            build-user-vars-plugin:1.5:not-pinned
            build-with-parameters:1.3:not-pinned
            built-on-column:1.1:not-pinned
            checkstyle:3.48:not-pinned
            claim:2.9:not-pinned
            clone-workspace-scm:0.6:not-pinned
            cloudbees-aborted-builds:1.9:not-pinned
            cloudbees-assurance:2.46.2.2:not-pinned
            cloudbees-aws-cli:1.5.7:not-pinned
            cloudbees-bitbucket-branch-source:2.2.5:not-pinned
            cloudbees-even-scheduler:3.7:not-pinned
            cloudbees-folder:6.1.2:not-pinned
            cloudbees-folders-plus:3.1:not-pinned
            cloudbees-jsync-archiver:5.5:not-pinned
            cloudbees-label-throttling-plugin:3.4:not-pinned
            cloudbees-license:9.11:not-pinned
            cloudbees-long-running-build:1.9:not-pinned
            cloudbees-monitoring:2.5:not-pinned
            cloudbees-nodes-plus:1.14:not-pinned
            cloudbees-plugin-usage:1.6:not-pinned
            cloudbees-quiet-start:1.2:not-pinned
            cloudbees-request-filter:1.2:not-pinned
            cloudbees-secure-copy:3.9:not-pinned
            cloudbees-ssh-slaves:1.7:not-pinned
            cloudbees-support:3.9:not-pinned
            cloudbees-template:4.29:not-pinned
            cloudbees-workflow-template:2.6:not-pinned
            cloudbees-workflow-ui:2.1:not-pinned
            clover:4.7.1:not-pinned
            cobertura:1.10:not-pinned
            conditional-buildstep:1.3.5:not-pinned
            config-file-provider:2.15.7:not-pinned
            configurationslicing:1.45:not-pinned
            copyartifact:1.38.1:not-pinned
            coverity:1.9.1:not-pinned
            credentials:2.1.16:not-pinned
            credentials-binding:1.11:not-pinned
            crowd2:1.8:not-pinned
            cucumber-testresult-plugin:0.9.7:not-pinned
            custom-tools-plugin:0.5:not-pinned
            cvs:2.13:not-pinned
            dashboard-view:2.9.10:not-pinned
            delivery-pipeline-plugin:1.0.5:not-pinned
            deployed-on-column:1.7:not-pinned
            deployer-framework:1.1:not-pinned
            display-url-api:2.1.0:not-pinned
            docker-asg-plugin:1.0.22:not-pinned
            docker-build-publish:1.3.2:not-pinned
            docker-build-step:1.42:not-pinned
            docker-commons:1.6:not-pinned
            docker-custom-build-environment:1.6.5:not-pinned
            docker-traceability:1.2:not-pinned
            docker-workflow:1.11:not-pinned
            dockerhub-notification:2.2.0:not-pinned
            durable-task:1.15:not-pinned
            ec2:2.68:not-pinned
            email-ext:2.57.2:not-pinned
            emailext-template:1.0:not-pinned
            envinject:2.0:not-pinned
            extended-choice-parameter:0.76:not-pinned
            extensible-choice-parameter:1.4.0:not-pinned
            external-monitor-job:1.7:not-pinned
            ez-templates:1.2.5:not-pinned
            favorite:2.3.0:not-pinned
            findbugs:4.70:not-pinned
            git:3.6.4:not-pinned
            git-client:2.6.0:not-pinned
            git-parameter:0.8.0:not-pinned
            git-server:1.7:not-pinned
            git-validated-merge:3.20:not-pinned
            github:1.26.2:not-pinned
            github-api:1.90:not-pinned
            github-branch-source:2.2.6:not-pinned
            global-build-stats:1.4:not-pinned
            global-post-script:1.1.3:not-pinned
            google-oauth-plugin:0.5:not-pinned
            google-play-android-publisher:1.5:not-pinned
            gradle:1.26:not-pinned
            groovy:2.0:not-pinned
            groovy-postbuild:2.3.1:not-pinned
            handlebars:1.1.1:not-pinned
            hidden-parameter:0.0.4:not-pinned
            htmlpublisher:1.14:not-pinned
            http_request:1.8.19:not-pinned
            icon-shim:2.0.3:not-pinned
            infradna-backup:3.34:not-pinned
            ivy:1.27.1:not-pinned
            jackson2-api:2.7.3:not-pinned
            jacoco:2.2.1:not-pinned
            javadoc:1.4:not-pinned
            jdepend:1.2.4:not-pinned
            jenkins-cloudformation-plugin:1.2:not-pinned
            jenkins-multijob-plugin:1.24:not-pinned
            jenkinsci-appspider-plugin:1.0.8:not-pinned
            jira:2.4.2:not-pinned
            job-dsl:1.63:not-pinned
            jobConfigHistory:2.16:not-pinned
            jobgenerator:1.22:not-pinned
            join:1.21:not-pinned
            jquery:1.11.2-0:not-pinned
            jquery-detached:1.2.1:not-pinned
            jquery-ui:1.0.2:not-pinned
            jsch:0.1.54.1:not-pinned
            junit:1.21:not-pinned
            label-linked-jobs:5.1.2:not-pinned
            ldap:1.15:not-pinned
            lockable-resources:2.0:not-pinned
            m2release:0.14.0:not-pinned
            mailer:1.20:not-pinned
            mapdb-api:1.0.9.0:not-pinned
            mask-passwords:2.10.1:not-pinned
            matrix-auth:1.7:not-pinned
            matrix-project:1.8:not-pinned
            maven-deployment-linker:1.5.1:not-pinned
            maven-plugin:2.14:not-pinned
            mercurial:2.2:not-pinned
            metrics:3.1.2.9:not-pinned
            metrics-graphite:3.0.0:not-pinned
            momentjs:1.1.1:not-pinned
            monitoring:1.65.1:not-pinned
            multiple-scms:0.6:not-pinned
            naginator:1.17.2:not-pinned
            nectar-license:8.6:not-pinned
            nectar-rbac:5.16:not-pinned
            nested-view:1.14:not-pinned
            next-build-number:1.4:not-pinned
            node-iterator-api:1.5:not-pinned
            nodejs:0.2.2:not-pinned
            nodelabelparameter:1.7.2:not-pinned
            nunit:0.20:not-pinned
            oauth-credentials:0.3:not-pinned
            operations-center-agent:2.46.0.3:not-pinned
            operations-center-analytics-config:2.46.0.2:not-pinned
            operations-center-analytics-reporter:2.46.0.2:not-pinned
            operations-center-client:2.46.0.4:not-pinned
            operations-center-cloud:2.46.0.2:not-pinned
            operations-center-context:2.46.0.6:not-pinned
            operations-center-openid-cse:1.8.110:not-pinned
            p4:1.7.5:not-pinned
            pam-auth:1.3:not-pinned
            parameter-separator:1.0:not-pinned
            Parameterized-Remote-Trigger:2.2.2:not-pinned
            parameterized-trigger:2.35.2:not-pinned
            perforce:1.3.36:not-pinned
            performance:3.0:not-pinned
            persistent-parameter:1.1:not-pinned
            pipeline-aggregator-view:1.7:not-pinned
            pipeline-aws:1.16:not-pinned
            pipeline-build-step:2.5.1:not-pinned
            pipeline-graph-analysis:1.5:not-pinned
            pipeline-input-step:2.8:not-pinned
            pipeline-maven:2.2.0:not-pinned
            pipeline-milestone-step:1.3.1:not-pinned
            pipeline-model-api:1.2.3:not-pinned
            pipeline-model-declarative-agent:1.1.1:not-pinned
            pipeline-model-definition:1.2.3:not-pinned
            pipeline-model-extensions:1.2.3:not-pinned
            pipeline-multibranch-defaults:1.1:not-pinned
            pipeline-npm:0.9.1:not-pinned
            pipeline-rest-api:2.6:not-pinned
            pipeline-stage-step:2.2:not-pinned
            pipeline-stage-tags-metadata:1.2.3:not-pinned
            pipeline-stage-view:2.6:not-pinned
            pipeline-utility-steps:1.3.0:not-pinned
            plain-credentials:1.4:not-pinned
            pmd:3.47:not-pinned
            port-allocator:1.8:not-pinned
            post-completed-build-dynamodb-result:1.0.3:not-pinned
            PrioritySorter:3.5.0:not-pinned
            project-stats-plugin:0.4:not-pinned
            promoted-builds:2.28.1:not-pinned
            pubsub-light:1.12:not-pinned
            quality-gates:2.5:not-pinned
            rebuild:1.25:not-pinned
            resource-disposer:0.6:not-pinned
            run-condition:1.0:not-pinned
            s3:0.10.12:not-pinned
            scm-api:2.2.5:not-pinned
            script-security:1.35:not-pinned
            seleniumhq:0.4:not-pinned
            sidebar-link:1.7:not-pinned
            simple-parameterized-builds-report:1.5:not-pinned
            skip-plugin:4.0:not-pinned
            slack:2.2:not-pinned
            sonar:2.6.1:not-pinned
            sse-gateway:1.15:not-pinned
            ssh-agent:1.15:not-pinned
            ssh-credentials:1.13:not-pinned
            ssh-slaves:1.17:not-pinned
            stash-pullrequest-builder:1.7.0:not-pinned
            stashNotifier:1.11.6:not-pinned
            structs:1.10:not-pinned
            subversion:2.7.2:not-pinned
            support-core:2.41:not-pinned
            template-project:1.5.2:not-pinned
            testng-plugin:1.14:not-pinned
            timestamper:1.8.8:not-pinned
            token-macro:2.1:not-pinned
            unique-id:2.1.3:not-pinned
            validating-string-parameter:2.3:not-pinned
            variant:1.1:not-pinned
            view-job-filters:1.27:not-pinned
            windows-slaves:1.3.1:not-pinned
            workflow-aggregator:2.5:not-pinned
            workflow-api:2.23.1:not-pinned
            workflow-basic-steps:2.4:not-pinned
            workflow-cps:2.41:not-pinned
            workflow-cps-checkpoint:2.4:not-pinned
            workflow-cps-global-lib:2.8:not-pinned
            workflow-durable-task-step:2.16:not-pinned
            workflow-job:2.11.2:not-pinned
            workflow-multibranch:2.16:not-pinned
            workflow-remote-loader:1.4:not-pinned
            workflow-scm-step:2.4:not-pinned
            workflow-step-api:2.13:not-pinned
            workflow-support:2.14:not-pinned
            ws-cleanup:0.33:not-pinned
            xunit:1.102:not-pinned
            xvfb:1.1.3:not-pinned
            zentimestamp:4.2:not-pinned
            
            jamesdumay James Dumay added a comment - warden its not happening directly on my system but its happening on one of my customers. 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.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) Plugins ace-editor:1.1:not-pinned allure-jenkins-plugin:2.15:not-pinned analysis-core:1.86:not-pinned AnchorChain:1.0:not-pinned android-emulator:2.15:not-pinned ansible:0.6.2:not-pinned ansicolor:0.5.0:not-pinned ant:1.5:not-pinned antisamy-markup-formatter:1.5:not-pinned apache-httpcomponents-client-4-api:4.5.3-2.0:not-pinned artifactory:2.9.1:not-pinned async-http-client:1.7.24.1:not-pinned audit-trail:2.2:not-pinned authentication-tokens:1.3:not-pinned aws-beanstalk-publisher-plugin:1.7.2:not-pinned aws-credentials:1.16:not-pinned aws-java-sdk:1.11.226:not-pinned aws-lambda:0.5.10:not-pinned blueocean:1.3.1:not-pinned blueocean-autofavorite:1.0.0:not-pinned blueocean-bitbucket-pipeline:1.3.1:not-pinned blueocean-commons:1.3.1:not-pinned blueocean-config:1.3.1:not-pinned blueocean-dashboard:1.3.1:not-pinned blueocean-display-url:2.1.1:not-pinned blueocean-events:1.3.1:not-pinned blueocean-git-pipeline:1.3.1:not-pinned blueocean-github-pipeline:1.3.1:not-pinned blueocean-i18n:1.3.1:not-pinned blueocean-jira:1.3.1:not-pinned blueocean-jwt:1.3.1:not-pinned blueocean-personalization:1.3.1:not-pinned blueocean-pipeline-api-impl:1.3.1:not-pinned blueocean-pipeline-editor:1.3.1:not-pinned blueocean-pipeline-scm-api:1.3.1:not-pinned blueocean-rest:1.3.1:not-pinned blueocean-rest-impl:1.3.1:not-pinned blueocean-web:1.3.1:not-pinned bouncycastle-api:2.16.1:not-pinned branch-api:2.0.15:not-pinned build-metrics:1.3:not-pinned build-monitor-plugin:1.11+build.201701152243:not-pinned build-name-setter:1.6.5:not-pinned build-pipeline-plugin:1.5.7.1:not-pinned build-timeout:1.18:not-pinned build-user-vars-plugin:1.5:not-pinned build-with-parameters:1.3:not-pinned built-on-column:1.1:not-pinned checkstyle:3.48:not-pinned claim:2.9:not-pinned clone-workspace-scm:0.6:not-pinned cloudbees-aborted-builds:1.9:not-pinned cloudbees-assurance:2.46.2.2:not-pinned cloudbees-aws-cli:1.5.7:not-pinned cloudbees-bitbucket-branch-source:2.2.5:not-pinned cloudbees-even-scheduler:3.7:not-pinned cloudbees-folder:6.1.2:not-pinned cloudbees-folders-plus:3.1:not-pinned cloudbees-jsync-archiver:5.5:not-pinned cloudbees-label-throttling-plugin:3.4:not-pinned cloudbees-license:9.11:not-pinned cloudbees-long-running-build:1.9:not-pinned cloudbees-monitoring:2.5:not-pinned cloudbees-nodes-plus:1.14:not-pinned cloudbees-plugin-usage:1.6:not-pinned cloudbees-quiet-start:1.2:not-pinned cloudbees-request-filter:1.2:not-pinned cloudbees-secure-copy:3.9:not-pinned cloudbees-ssh-slaves:1.7:not-pinned cloudbees-support:3.9:not-pinned cloudbees-template:4.29:not-pinned cloudbees-workflow-template:2.6:not-pinned cloudbees-workflow-ui:2.1:not-pinned clover:4.7.1:not-pinned cobertura:1.10:not-pinned conditional-buildstep:1.3.5:not-pinned config-file-provider:2.15.7:not-pinned configurationslicing:1.45:not-pinned copyartifact:1.38.1:not-pinned coverity:1.9.1:not-pinned credentials:2.1.16:not-pinned credentials-binding:1.11:not-pinned crowd2:1.8:not-pinned cucumber-testresult-plugin:0.9.7:not-pinned custom-tools-plugin:0.5:not-pinned cvs:2.13:not-pinned dashboard-view:2.9.10:not-pinned delivery-pipeline-plugin:1.0.5:not-pinned deployed-on-column:1.7:not-pinned deployer-framework:1.1:not-pinned display-url-api:2.1.0:not-pinned docker-asg-plugin:1.0.22:not-pinned docker-build-publish:1.3.2:not-pinned docker-build-step:1.42:not-pinned docker-commons:1.6:not-pinned docker-custom-build-environment:1.6.5:not-pinned docker-traceability:1.2:not-pinned docker-workflow:1.11:not-pinned dockerhub-notification:2.2.0:not-pinned durable-task:1.15:not-pinned ec2:2.68:not-pinned email-ext:2.57.2:not-pinned emailext-template:1.0:not-pinned envinject:2.0:not-pinned extended-choice-parameter:0.76:not-pinned extensible-choice-parameter:1.4.0:not-pinned external-monitor-job:1.7:not-pinned ez-templates:1.2.5:not-pinned favorite:2.3.0:not-pinned findbugs:4.70:not-pinned git:3.6.4:not-pinned git-client:2.6.0:not-pinned git-parameter:0.8.0:not-pinned git-server:1.7:not-pinned git-validated-merge:3.20:not-pinned github:1.26.2:not-pinned github-api:1.90:not-pinned github-branch-source:2.2.6:not-pinned global-build-stats:1.4:not-pinned global-post-script:1.1.3:not-pinned google-oauth-plugin:0.5:not-pinned google-play-android-publisher:1.5:not-pinned gradle:1.26:not-pinned groovy:2.0:not-pinned groovy-postbuild:2.3.1:not-pinned handlebars:1.1.1:not-pinned hidden-parameter:0.0.4:not-pinned htmlpublisher:1.14:not-pinned http_request:1.8.19:not-pinned icon-shim:2.0.3:not-pinned infradna-backup:3.34:not-pinned ivy:1.27.1:not-pinned jackson2-api:2.7.3:not-pinned jacoco:2.2.1:not-pinned javadoc:1.4:not-pinned jdepend:1.2.4:not-pinned jenkins-cloudformation-plugin:1.2:not-pinned jenkins-multijob-plugin:1.24:not-pinned jenkinsci-appspider-plugin:1.0.8:not-pinned jira:2.4.2:not-pinned job-dsl:1.63:not-pinned jobConfigHistory:2.16:not-pinned jobgenerator:1.22:not-pinned join:1.21:not-pinned jquery:1.11.2-0:not-pinned jquery-detached:1.2.1:not-pinned jquery-ui:1.0.2:not-pinned jsch:0.1.54.1:not-pinned junit:1.21:not-pinned label-linked-jobs:5.1.2:not-pinned ldap:1.15:not-pinned lockable-resources:2.0:not-pinned m2release:0.14.0:not-pinned mailer:1.20:not-pinned mapdb-api:1.0.9.0:not-pinned mask-passwords:2.10.1:not-pinned matrix-auth:1.7:not-pinned matrix-project:1.8:not-pinned maven-deployment-linker:1.5.1:not-pinned maven-plugin:2.14:not-pinned mercurial:2.2:not-pinned metrics:3.1.2.9:not-pinned metrics-graphite:3.0.0:not-pinned momentjs:1.1.1:not-pinned monitoring:1.65.1:not-pinned multiple-scms:0.6:not-pinned naginator:1.17.2:not-pinned nectar-license:8.6:not-pinned nectar-rbac:5.16:not-pinned nested-view:1.14:not-pinned next-build-number:1.4:not-pinned node-iterator-api:1.5:not-pinned nodejs:0.2.2:not-pinned nodelabelparameter:1.7.2:not-pinned nunit:0.20:not-pinned oauth-credentials:0.3:not-pinned operations-center-agent:2.46.0.3:not-pinned operations-center-analytics-config:2.46.0.2:not-pinned operations-center-analytics-reporter:2.46.0.2:not-pinned operations-center-client:2.46.0.4:not-pinned operations-center-cloud:2.46.0.2:not-pinned operations-center-context:2.46.0.6:not-pinned operations-center-openid-cse:1.8.110:not-pinned p4:1.7.5:not-pinned pam-auth:1.3:not-pinned parameter-separator:1.0:not-pinned Parameterized-Remote-Trigger:2.2.2:not-pinned parameterized-trigger:2.35.2:not-pinned perforce:1.3.36:not-pinned performance:3.0:not-pinned persistent-parameter:1.1:not-pinned pipeline-aggregator-view:1.7:not-pinned pipeline-aws:1.16:not-pinned pipeline-build-step:2.5.1:not-pinned pipeline-graph-analysis:1.5:not-pinned pipeline-input-step:2.8:not-pinned pipeline-maven:2.2.0:not-pinned pipeline-milestone-step:1.3.1:not-pinned pipeline-model-api:1.2.3:not-pinned pipeline-model-declarative-agent:1.1.1:not-pinned pipeline-model-definition:1.2.3:not-pinned pipeline-model-extensions:1.2.3:not-pinned pipeline-multibranch-defaults:1.1:not-pinned pipeline-npm:0.9.1:not-pinned pipeline-rest-api:2.6:not-pinned pipeline-stage-step:2.2:not-pinned pipeline-stage-tags-metadata:1.2.3:not-pinned pipeline-stage-view:2.6:not-pinned pipeline-utility-steps:1.3.0:not-pinned plain-credentials:1.4:not-pinned pmd:3.47:not-pinned port-allocator:1.8:not-pinned post-completed-build-dynamodb-result:1.0.3:not-pinned PrioritySorter:3.5.0:not-pinned project-stats-plugin:0.4:not-pinned promoted-builds:2.28.1:not-pinned pubsub-light:1.12:not-pinned quality-gates:2.5:not-pinned rebuild:1.25:not-pinned resource-disposer:0.6:not-pinned run-condition:1.0:not-pinned s3:0.10.12:not-pinned scm-api:2.2.5:not-pinned script-security:1.35:not-pinned seleniumhq:0.4:not-pinned sidebar-link:1.7:not-pinned simple-parameterized-builds-report:1.5:not-pinned skip-plugin:4.0:not-pinned slack:2.2:not-pinned sonar:2.6.1:not-pinned sse-gateway:1.15:not-pinned ssh-agent:1.15:not-pinned ssh-credentials:1.13:not-pinned ssh-slaves:1.17:not-pinned stash-pullrequest-builder:1.7.0:not-pinned stashNotifier:1.11.6:not-pinned structs:1.10:not-pinned subversion:2.7.2:not-pinned support-core:2.41:not-pinned template-project:1.5.2:not-pinned testng-plugin:1.14:not-pinned timestamper:1.8.8:not-pinned token-macro:2.1:not-pinned unique-id:2.1.3:not-pinned validating-string-parameter:2.3:not-pinned variant:1.1:not-pinned view-job-filters:1.27:not-pinned windows-slaves:1.3.1:not-pinned workflow-aggregator:2.5:not-pinned workflow-api:2.23.1:not-pinned workflow-basic-steps:2.4:not-pinned workflow-cps:2.41:not-pinned workflow-cps-checkpoint:2.4:not-pinned workflow-cps-global-lib:2.8:not-pinned workflow-durable-task-step:2.16:not-pinned workflow-job:2.11.2:not-pinned workflow-multibranch:2.16:not-pinned workflow-remote-loader:1.4:not-pinned workflow-scm-step:2.4:not-pinned workflow-step-api:2.13:not-pinned workflow-support:2.14:not-pinned ws-cleanup:0.33:not-pinned xunit:1.102:not-pinned xvfb:1.1.3:not-pinned zentimestamp:4.2:not-pinned
            warden Radek Antoniuk added a comment - - edited

            oleg_nenashev full trace log.gz attached, this is reproducible every time on at master build with:
            mvn hpi:run -Djetty.port=8090 -Djenkins.version=2.7.3
            (i'm running in docker but that shouldn't matter)

            btw - Active sprint: Blue Ocean 1.4 - beta 3 ends 2017-11-27 - still in 2017 ?

            warden Radek Antoniuk added a comment - - edited oleg_nenashev full trace log.gz attached, this is reproducible every time on at master build with: mvn hpi:run -Djetty.port=8090 -Djenkins.version=2.7.3 (i'm running in docker but that shouldn't matter) btw - Active sprint:  Blue Ocean 1.4 - beta 3  ends 2017-11-27 - still in 2017 ?
            warden Radek Antoniuk made changes -
            Attachment log.gz [ 41017 ]
            jamesdumay James Dumay added a comment -

            warden I haven't switched the sprints over yet

            jamesdumay James Dumay added a comment - warden I haven't switched the sprints over yet
            oleg_nenashev Oleg Nenashev added a comment -

            got snowed under the core regressions, I may be unable to respond this week. Please ping me on Monday if I forget and nobody else picks it up

            oleg_nenashev Oleg Nenashev added a comment - got snowed under the core regressions, I may be unable to respond this week. Please ping me on Monday if I forget and nobody else picks it up
            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 ]

            oleg_nenashev when can we accept this to be resolved? 

            mallappa_pujari Mallappa pujari added a comment - oleg_nenashev when can we accept this to be resolved? 
            oleg_nenashev Oleg Nenashev added a comment -

            I have asked to ping me for a reason Right now I am dealing with JEP-200 fallout. No ETA from my side. Anybody else can handle it

            oleg_nenashev Oleg Nenashev added a comment - I have asked to ping me for a reason Right now I am dealing with JEP-200 fallout. No ETA from my side. Anybody else can handle it
            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 added a comment -

            Apparently warden has released the master branch. Now we have the wider binary compatibility issue in the wild. E.g. JENKINS-49208.

            I will see whether we can fix it without using a pluginFirstClassLoader (which is not reliable)

            oleg_nenashev Oleg Nenashev added a comment - Apparently warden has released the master branch. Now we have the wider binary compatibility issue in the wild. E.g. JENKINS-49208 . I will see whether we can fix it without using a pluginFirstClassLoader (which is not reliable)
            gmshake Zhenlei Huang added a comment - - edited

            Hi oleg_nenashev, I've finally traced the root cause.

            jira-rest-java-client-core need by Jira-plugin depends on httpcomponents-asyncclient which transitively depends on httpclient-cache. The class org.apache.http.impl.client.cache.CachingHttpAsyncClient tries to instantiate package visible class org.apache.http.impl.client.cache.BasicHttpCache. It is OK in normal case, but fails if CachingHttpAsyncClient and BasicHttpCache are loaded from different classloaders, becoming two different run-time packages, causing throwing java.lang.IllegalAccessError.

            We unfortunately encounter this abnormal case, that Jira-plugin depends on httpcomponents-asyncclient loaded by plugin classloader and httpclient-cache loaded by another(which loads apache-httpcomponents-client-4-api).

            So, it comes the solution. The simplest one, remove dependency of apache-httpcomponents-client-4-api, as warden mentioned above. Or we can add httpcomponents-asyncclient dependency into apache-httpcomponents-client-4-api.

             refer:

            1. https://jenkins.io/doc/developer/plugin-development/dependencies-and-class-loading/
            2. https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-5.html#jvms-5.3
            gmshake Zhenlei Huang added a comment - - edited Hi oleg_nenashev , I've finally traced the root cause. jira-rest-java-client-core need by Jira-plugin depends on httpcomponents-asyncclient which transitively depends on httpclient-cache. The class org.apache.http.impl.client.cache.CachingHttpAsyncClient tries to instantiate package visible class org.apache.http.impl.client.cache.BasicHttpCache. It is OK in normal case, but fails if CachingHttpAsyncClient and BasicHttpCache are loaded from different classloaders, becoming two different run-time packages, causing throwing java.lang.IllegalAccessError. We unfortunately encounter this abnormal case, that Jira-plugin depends on httpcomponents-asyncclient loaded by plugin classloader and httpclient-cache loaded by another(which loads apache-httpcomponents-client-4-api). So, it comes the solution. The simplest one, remove dependency of apache-httpcomponents-client-4-api, as warden mentioned above. Or we can add httpcomponents-asyncclient dependency into apache-httpcomponents-client-4-api.  refer: https://jenkins.io/doc/developer/plugin-development/dependencies-and-class-loading/ https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-5.html#jvms-5.3
            oleg_nenashev Oleg Nenashev added a comment -

            gmshake yes, it was my plan as well. I have already started prototyping the Async Http Client plugin for that yesterday. There is already https://github.com/jenkinsci/async-http-client-plugin, but it uses another library.

            Ideally I would be happy to get rid of JRJC at all since it's not well maintained anymore, but it requires a serious plugin update

            oleg_nenashev Oleg Nenashev added a comment - gmshake yes, it was my plan as well. I have already started prototyping the Async Http Client plugin for that yesterday. There is already https://github.com/jenkinsci/async-http-client-plugin , but it uses another library. Ideally I would be happy to get rid of JRJC at all since it's not well maintained anymore, but it requires a serious plugin update
            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 added a comment -

            danielbeck warden My proposal would be to blacklist 2.5.1 in the update center for now (see the reported issue).
            michaelneale jamesdumay do you plan to finalize the fix?

            oleg_nenashev Oleg Nenashev added a comment - danielbeck warden My proposal would be to blacklist 2.5.1 in the update center for now (see the reported issue). michaelneale jamesdumay do you plan to finalize the fix?
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ]

            +1, that's the simpler scenario - any write-up how to do that? I don't see anything on confluence...
            Alternatively, I could do a 2.5.2 hotfix release from a separate branch with cherry-picked commits w/o httpclient changes.

            warden Radek Antoniuk added a comment - +1, that's the simpler scenario - any write-up how to do that? I don't see anything on confluence... Alternatively, I could do a 2.5.2 hotfix release from a separate branch with cherry-picked commits w/o httpclient changes.
            oleg_nenashev Oleg Nenashev added a comment -

            warden the problem is that the plugin collides with other plugins which use new Apache HttpComponents Client 4.x API Plugin or which bundle the httpclient-cache library directly. E.g. JENKINS-49208 which happens with JIRA Plugin 2.3. Just reverting the fix won't help though it would make the plugin self-consistent at least

            oleg_nenashev Oleg Nenashev added a comment - warden the problem is that the plugin collides with other plugins which use new Apache HttpComponents Client 4.x API Plugin or which bundle the httpclient-cache library directly. E.g. JENKINS-49208 which happens with JIRA Plugin 2.3. Just reverting the fix won't help though it would make the plugin self-consistent at least
            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 ]
            michaelneale Michael Neale added a comment -

            oleg_nenashev may make sense to blacklist if it is that bad. Rolling forward with a fix (from here I guess?) will make sense but I don't think jamesdumay will be around this week to look at it. 

            michaelneale Michael Neale added a comment - oleg_nenashev may make sense to blacklist if it is that bad. Rolling forward with a fix (from here I guess?) will make sense but I don't think jamesdumay will be around this week to look at it. 
            pholden Paul Holden added a comment -

            Can I just confirm that this is the same bug I'm experiencing in the below stacktrace since upgrading to 2.5.1 :

            WARNING: Step ‘JIRA: Update relevant issues’ aborted due to exception: 
            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.getSession(JiraSite.java:278)
            	at hudson.plugins.jira.Updater.perform(Updater.java:95)
            	at hudson.plugins.jira.JiraIssueUpdater.perform(JiraIssueUpdater.java:64)
            	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
            	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
            	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
            	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
            	at hudson.model.Build$BuildExecution.post2(Build.java:186)
            	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
            	at hudson.model.Run.execute(Run.java:1749)
            	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            	at hudson.model.ResourceController.execute(ResourceController.java:97)
            	at hudson.model.Executor.run(Executor.java:421)
            

            ... & also what is reported in JENKINS-49214

            Is it expected behaviour that an error in a post-build step, causes a build to fail that otherwise passed 100%?

            pholden Paul Holden added a comment - Can I just confirm that this is the same bug I'm experiencing in the below stacktrace since upgrading to 2.5.1 : WARNING: Step ‘JIRA: Update relevant issues’ aborted due to exception: 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.getSession(JiraSite.java:278) at hudson.plugins.jira.Updater.perform(Updater.java:95) at hudson.plugins.jira.JiraIssueUpdater.perform(JiraIssueUpdater.java:64) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) at hudson.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1749) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:421) ... & also what is reported in JENKINS-49214 Is it expected behaviour that an error in a post-build step, causes a build to fail that otherwise passed 100%?
            oleg_nenashev Oleg Nenashev added a comment -

            Yes, it is the same issue.

            My proposals:

            • Create a new "Apache HttpComponents Async Client API Plugin", which depends on Apache HttpComponents Client 4.x API Plugin
            • Update JIRA plugin to use the new plugin and exclude dependencies

            I am not fully convinced it's going to solve all the issues, but at least it will solve Async Client Compat issues reported above

            oleg_nenashev Oleg Nenashev added a comment - Yes, it is the same issue. My proposals: Create a new "Apache HttpComponents Async Client API Plugin", which depends on Apache HttpComponents Client 4.x API Plugin Update JIRA plugin to use the new plugin and exclude dependencies I am not fully convinced it's going to solve all the issues, but at least it will solve Async Client Compat issues reported above
            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 added a comment -

            I confirmed that the issue happens on the 2.0 release of JIRA...

            oleg_nenashev Oleg Nenashev added a comment - I confirmed that the issue happens on the 2.0 release of JIRA...
            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 ]

            Since we're getting more bugs, oleg_nenashev are you able to blacklist 2.5.1 or point me to some how-to for doing it?

            warden Radek Antoniuk added a comment - Since we're getting more bugs, oleg_nenashev are you able to blacklist 2.5.1 or point me to some how-to for doing it?
            oleg_nenashev Oleg Nenashev added a comment - warden Example: https://github.com/jenkins-infra/backend-update-center2/pull/167/files
            michaelneale Michael Neale added a comment -

            oleg_nenashev so the blacklist won't necessarily help? (but your client api plugin should help)

            michaelneale Michael Neale added a comment - oleg_nenashev so the blacklist won't necessarily help? (but your client api plugin should help)
            michaelneale Michael Neale added a comment -

            jamesdumay this seems to be causing a lot of pain - is the root of it the Atlassian dependencies (eg JIRA rest api) which does unpleasant things? is there any solution to this on the JIRA plugin side? 

             

            It is almost like a re-write of the api side or shading of things needs to be done, given the pain caused (I think) by these external dependencies. THis plugin is not in a good state. 

            michaelneale Michael Neale added a comment - jamesdumay this seems to be causing a lot of pain - is the root of it the Atlassian dependencies (eg JIRA rest api) which does unpleasant things? is there any solution to this on the JIRA plugin side?    It is almost like a re-write of the api side or shading of things needs to be done, given the pain caused (I think) by these external dependencies. THis plugin is not in a good state. 
            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 ]

            Code changed in jenkins
            User: Radek Antoniuk
            Path:
            src/main/resources/artifact-ignores.properties
            http://jenkins-ci.org/commit/backend-update-center2/2f8d6be099d1ef9a64d0d32b67f2713b5ad54dea
            Log:
            JENKINS-48357 - blacklist jira-plugin 2.5.1 because of Apache HTTP dependencies conflict

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Radek Antoniuk Path: src/main/resources/artifact-ignores.properties http://jenkins-ci.org/commit/backend-update-center2/2f8d6be099d1ef9a64d0d32b67f2713b5ad54dea Log: JENKINS-48357 - blacklist jira-plugin 2.5.1 because of Apache HTTP dependencies conflict

            Code changed in jenkins
            User: Daniel Beck
            Path:
            src/main/resources/artifact-ignores.properties
            http://jenkins-ci.org/commit/backend-update-center2/343ff422ca2c3c1d1c39506c55ac81033c54b442
            Log:
            Merge pull request #182 from warden/JENKINS-48357-blacklist-2.5.1

            JENKINS-48357 - blacklist jira-plugin 2.5.1

            Compare: https://github.com/jenkins-infra/backend-update-center2/compare/b3e36b8b66c6...343ff422ca2c

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: src/main/resources/artifact-ignores.properties http://jenkins-ci.org/commit/backend-update-center2/343ff422ca2c3c1d1c39506c55ac81033c54b442 Log: Merge pull request #182 from warden/ JENKINS-48357 -blacklist-2.5.1 JENKINS-48357 - blacklist jira-plugin 2.5.1 Compare: https://github.com/jenkins-infra/backend-update-center2/compare/b3e36b8b66c6...343ff422ca2c
            ariele Ariel Einfeld added a comment -

            Hey Guys,

            any ETA when it will get fixed?

            ariele Ariel Einfeld added a comment - Hey Guys, any ETA when it will get fixed?
            michaelneale Michael Neale added a comment -

            ariele well in the short term - 2.5.1 was blacklisted from update centre which eases things for some people. 

            Otherwise there is some action in https://github.com/jenkinsci/jira-plugin/pull/139 where gmshake is suggesting a newer version of the Atlassian libraries  - but not sure what the real solution is. The problem is with the Atlassian libraries and their dependencies and use of maven, not the JIRA plugin (which depends on it - although does make me think maybe it should not use them as they seem to cause so many problems). 

             

            michaelneale Michael Neale added a comment - ariele well in the short term - 2.5.1 was blacklisted from update centre which eases things for some people.  Otherwise there is some action in https://github.com/jenkinsci/jira-plugin/pull/139  where gmshake is suggesting a newer version of the Atlassian libraries  - but not sure what the real solution is. The problem is with the Atlassian libraries and their dependencies and use of maven, not the JIRA plugin (which depends on it - although does make me think maybe it should not use them as they seem to cause so many problems).   
            ariele Ariel Einfeld added a comment - - edited

            michaelneale

            as it seems, the issue of the JIRA Plugin is with the plugin "Apache HttpComponents Client 4.x API Plugin".
            currently i have the latest version : 4.5.3-2.1

            if i use other JIRA plugins that are using user/password, then it works just fine.

            for example: JIRA Pipeline Steps plugin is able to connect.

             

            ariele Ariel Einfeld added a comment - - edited michaelneale as it seems, the issue of the JIRA Plugin is with the plugin "Apache HttpComponents Client 4.x API Plugin". currently i have the latest version : 4.5.3-2.1 if i use other JIRA plugins that are using user/password, then it works just fine. for example: JIRA Pipeline Steps plugin is able to connect.  
            gmshake Zhenlei Huang added a comment -

            ariele I'm getting confused by 

            if i use other JIRA plugins that are using user/password, then it works just fine.

            .

            Do you mean use other versions of JIRA plugins or something else?

            gmshake Zhenlei Huang added a comment - ariele I'm getting confused by  if i use other JIRA plugins that are using user/password, then it works just fine. . Do you mean use other versions of JIRA plugins or something else?
            ariele Ariel Einfeld added a comment - - edited

            gmshake

            for example: JIRA Pipeline Steps plugin is able to connect.

            ariele Ariel Einfeld added a comment - - edited gmshake for example: JIRA Pipeline Steps plugin is able to connect.
            gmshake Zhenlei Huang added a comment - - edited

            ariele Got it! Thanks for that  

            gmshake Zhenlei Huang added a comment - - edited ariele  Got it! Thanks for that  
            ariele Ariel Einfeld added a comment - - edited

            gmshake
            happy to help, but can you please share the ETA for this fix once you have it?

            ariele Ariel Einfeld added a comment - - edited gmshake happy to help, but can you please share the ETA for this fix once you have it?
            gmshake Zhenlei Huang added a comment - - edited

            ariele Sorry but no ETA from my perspective since I'm not the maintainer. Could you please rollback JIRA plugin from 2.5.1 to 2.5 or try the latest snapshot version with fix https://ci.jenkins.io/job/Plugins/job/jira-plugin/job/PR-139/2/artifact/target/jira.hpi ?

            gmshake Zhenlei Huang added a comment - - edited ariele Sorry but no ETA from my perspective since I'm not the maintainer. Could you please rollback JIRA plugin from 2.5.1 to 2.5 or try the latest snapshot version with fix https://ci.jenkins.io/job/Plugins/job/jira-plugin/job/PR-139/2/artifact/target/jira.hpi ?
            oleg_nenashev Oleg Nenashev added a comment -

            Some issues will be still happening on 2.5. E.g. the original report from jamesdumay in this ticket and JENKINS-49208.

            oleg_nenashev Oleg Nenashev added a comment - Some issues will be still happening on 2.5. E.g. the original report from jamesdumay in this ticket and JENKINS-49208 .
            ariele Ariel Einfeld added a comment -

            gmshake
            i didnt upgrade from 2.5.0 to 2.5.1.

            i just installed from fresh - version 2.5.1

            how can i downgrade it?

            ariele Ariel Einfeld added a comment - gmshake i didnt upgrade from 2.5.0 to 2.5.1. i just installed from fresh - version 2.5.1 how can i downgrade it?
            gmshake Zhenlei Huang added a comment - - edited

            ariele

            Good question !
            Maybe uninstall 2.5.1 first and then reinstall 2.5 ?
            I've not tried that yet

            It seems like JIRA plugin 2.5.1 is still in update center at this moment. warden Can you please confirm that?

            gmshake Zhenlei Huang added a comment - - edited ariele Good question ! Maybe uninstall 2.5.1 first and then reinstall 2.5 ? I've not tried that yet It seems like JIRA plugin 2.5.1 is still in update center at this moment. warden Can you please confirm that?
            warden Radek Antoniuk made changes -
            Link This issue is duplicated by JENKINS-49231 [ JENKINS-49231 ]
            ariele Ariel Einfeld added a comment -

            gmshake warden
            guys, we really need a fix for this, its CRITICAL.
            if version 2.5.0 is good, please revert it from the update center.

            Thanks,

            ariele Ariel Einfeld added a comment - gmshake warden guys, we really need a fix for this, its CRITICAL. if version 2.5.0 is good, please revert it from the update center. Thanks,
            gmshake Zhenlei Huang added a comment -

            oleg_nenashev Sorry I missed the original report.

            gmshake Zhenlei Huang added a comment - oleg_nenashev Sorry I missed the original report.
            oleg_nenashev Oleg Nenashev added a comment -

            ariele there is an architecture issue in the plugin. All versions of JIRA plugin are generally affected. Using caps in messages does not help. If you are ready to contribute your time and help to get it fixed (like gmshake does), it would really help.

            oleg_nenashev Oleg Nenashev added a comment - ariele there is an architecture issue in the plugin. All versions of JIRA plugin are generally affected. Using caps in messages does not help. If you are ready to contribute your time and help to get it fixed (like gmshake does), it would really help.
            ariele Ariel Einfeld added a comment -

            oleg_nenashev
            i'd be happy too, the caps are just to mention that its impact on our business.
            from my point of view, we should revert the store to version 2.5.
            if you can share with me on how to make it happen, i will be happy to do it.

            if its simply to go to the github and revert to 2.5 - i'll do it.  

            ariele Ariel Einfeld added a comment - oleg_nenashev i'd be happy too, the caps are just to mention that its impact on our business. from my point of view, we should revert the store to version 2.5. if you can share with me on how to make it happen, i will be happy to do it. if its simply to go to the github and revert to 2.5 - i'll do it.  
            oleg_nenashev Oleg Nenashev added a comment -

            ariele It should have been already removed from UC, but there was a mistake in the blacklisting file. Created https://github.com/jenkins-infra/backend-update-center2/pull/183

            oleg_nenashev Oleg Nenashev added a comment - ariele It should have been already removed from UC, but there was a mistake in the blacklisting file. Created https://github.com/jenkins-infra/backend-update-center2/pull/183
            oleg_nenashev Oleg Nenashev made changes -
            Remote Link This issue links to "Blacklist PR #2 (Web Link)" [ 20002 ]
            ariele Ariel Einfeld added a comment - - edited

            oleg_nenashev
            i see, so what does it mean?

            that should be switched to 2.5?

            ariele Ariel Einfeld added a comment - - edited oleg_nenashev i see, so what does it mean? that should be switched to 2.5?

            When aforementioned PR is merged, then in UC you'll see only 2.5.
            Regardless, you should be able to go to GH and pull 2.5 and install manually.

            warden Radek Antoniuk added a comment - When aforementioned PR is merged, then in UC you'll see only 2.5. Regardless, you should be able to go to GH and pull 2.5 and install manually.
            ariele Ariel Einfeld added a comment -

            warden
            i always install via jenkins, never did it manually.
            i can pull the repo but how can i install it?

            ariele Ariel Einfeld added a comment - warden i always install via jenkins, never did it manually. i can pull the repo but how can i install it?

            1. http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/jira/2.5/
            2. download jira-2.5.hpi
            3. install via `pluginManager/advanced` / uploadPlugin

            warden Radek Antoniuk added a comment - 1. http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/jira/2.5/ 2. download jira-2.5.hpi 3. install via `pluginManager/advanced` / uploadPlugin
            oleg_nenashev Oleg Nenashev added a comment -

            ariele In plugin manager there is an Advanced section, which allows uploading a plugin.
            HPIs for old versions can be downloaded from here: https://updates.jenkins.io/download/plugins/jira/

            oleg_nenashev Oleg Nenashev added a comment - ariele In plugin manager there is an Advanced section, which allows uploading a plugin. HPIs for old versions can be downloaded from here: https://updates.jenkins.io/download/plugins/jira/
            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 ]
            ariele Ariel Einfeld added a comment -

            oleg_nenashev
            sent above the page i get...where can i find the download action?

            ariele Ariel Einfeld added a comment - oleg_nenashev sent above the page i get...where can i find the download action?
            oleg_nenashev Oleg Nenashev added a comment -

            "Upload plugin".
            Download links are not in Jenkins, see the responses above

            oleg_nenashev Oleg Nenashev added a comment - "Upload plugin". Download links are not in Jenkins, see the responses above
            ariele Ariel Einfeld added a comment -

            oleg_nenashev
            sorry, missed the comment above.
            checking it now
            thanks.

            ariele Ariel Einfeld added a comment - oleg_nenashev sorry, missed the comment above. checking it now thanks.
            ariele Ariel Einfeld added a comment -

            oleg_nenashev
            upon installing jira-2.5.hpi
            connection is working.

            although i suspect methods in that version are still not working, i will advise if there is any problem.
            thanks for now.

            ariele Ariel Einfeld added a comment - oleg_nenashev upon installing jira-2.5.hpi connection is working. although i suspect methods in that version are still not working, i will advise if there is any problem. thanks for now.
            ariele Ariel Einfeld added a comment -

            oleg_nenashev
            so i'm back with my original issue i had (didnt report it).
            post build job: "JIRA: Move issues matching JQL to a specified version" is not doing anything.
            not giving any logs.

            is there any known issue with that?

            ariele Ariel Einfeld added a comment - oleg_nenashev so i'm back with my original issue i had (didnt report it). post build job: "JIRA: Move issues matching JQL to a specified version" is not doing anything. not giving any logs. is there any known issue with that?

            As you noticed this issue is handling different problem and there are many watchers of the ticket, so let's try not to spam them
            Please search through issues in https://issues.jenkins-ci.org/issues/?jql=project+%3D+JENKINS+AND+component+%3D+jira-plugin; if it's not there, please report a new bug.
            Also feel free to dig into the problem and contribute by creating a Pull Request

            warden Radek Antoniuk added a comment - As you noticed this issue is handling different problem and there are many watchers of the ticket, so let's try not to spam them Please search through issues in https://issues.jenkins-ci.org/issues/?jql=project+%3D+JENKINS+AND+component+%3D+jira-plugin ; if it's not there, please report a new bug. Also feel free to dig into the problem and contribute by creating a Pull Request
            ariele Ariel Einfeld added a comment -

            warden
            sure thing...thanks for the help.

            ariele Ariel Einfeld added a comment - warden sure thing...thanks for the help.

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            src/main/resources/artifact-ignores.properties
            http://jenkins-ci.org/commit/backend-update-center2/47580ef481d5c103bfcd5c9943d604029a151ebe
            Log:
            JENKINS-48357 - Fix the JIRA 2.5.1 blacklist string

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/resources/artifact-ignores.properties http://jenkins-ci.org/commit/backend-update-center2/47580ef481d5c103bfcd5c9943d604029a151ebe Log: JENKINS-48357 - Fix the JIRA 2.5.1 blacklist string

            Code changed in jenkins
            User: Daniel Beck
            Path:
            src/main/resources/artifact-ignores.properties
            http://jenkins-ci.org/commit/backend-update-center2/3c532bdbf62c389fc5125c97c52f94dd5a702917
            Log:
            Merge pull request #183 from oleg-nenashev/patch-2

            JENKINS-48357 - Fix the JIRA 2.5.1 blacklist string

            Compare: https://github.com/jenkins-infra/backend-update-center2/compare/343ff422ca2c...3c532bdbf62c

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: src/main/resources/artifact-ignores.properties http://jenkins-ci.org/commit/backend-update-center2/3c532bdbf62c389fc5125c97c52f94dd5a702917 Log: Merge pull request #183 from oleg-nenashev/patch-2 JENKINS-48357 - Fix the JIRA 2.5.1 blacklist string Compare: https://github.com/jenkins-infra/backend-update-center2/compare/343ff422ca2c...3c532bdbf62c
            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 added a comment -

            perhaps a cheap way to fix this is just copy the code from jira-rest-api to the jira-plugin and set the dependencies we want?

            jamesdumay James Dumay added a comment - perhaps a cheap way to fix this is just copy the code from jira-rest-api to the jira-plugin and set the dependencies we want?
            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 added a comment -

            We can do that. In the mean time, we should make dependency on jira-plugin optional and make sure blueocean-jira-plugin degrades without blowing up. Either that or make dependency on blueocean-jira-plugin optional?

            vivek Vivek Pandey added a comment - We can do that. In the mean time, we should make dependency on jira-plugin optional and make sure blueocean-jira-plugin degrades without blowing up. Either that or make dependency on blueocean-jira-plugin optional?
            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 ]
            tibor17 Tibor Digana added a comment - - edited

            vivek
            Will this really fix https://issues.jenkins-ci.org/browse/JENKINS-43106 ?
            I have a terrible problem with git rev-list which hangs on latest Jenkins and Blue Ocean and MB Pipeline. How the Apache client may cause this native Git (git rev-list) problem if I configured Git Plugin in Jenkins Management to use native Git?

            tibor17 Tibor Digana added a comment - - edited vivek Will this really fix https://issues.jenkins-ci.org/browse/JENKINS-43106 ? I have a terrible problem with git rev-list which hangs on latest Jenkins and Blue Ocean and MB Pipeline. How the Apache client may cause this native Git (git rev-list) problem if I configured Git Plugin in Jenkins Management to use native Git?
            michaelneale Michael Neale added a comment -

            tibor17 it likely would be related yes. Disable the JIRA plugin and try if you like. 

            michaelneale Michael Neale added a comment - tibor17 it likely would be related yes. Disable the JIRA plugin and try if you like. 
            tibor17 Tibor Digana added a comment -

            ..but which jira plugin to disable?
            I hope you do not mean MB Pipeline plugin because our company has the biggest benefit from it.

            tibor17 Tibor Digana added a comment - ..but which jira plugin to disable? I hope you do not mean MB Pipeline plugin because our company has the biggest benefit from it.
            tibor17 Tibor Digana added a comment -

            michaelneale
            When this issue will be fixed and why it takes time?

            tibor17 Tibor Digana added a comment - michaelneale When this issue will be fixed and why it takes time?
            michaelneale Michael Neale added a comment -

            tibor17 firstly no one is quite sure how it happens, and secondly the JIRA plugin has to basically be rewritten to not use atlassians libraries

             

            No - just the "jira" plugin should do - https://plugins.jenkins.io/jira

            michaelneale Michael Neale added a comment - tibor17 firstly no one is quite sure how it happens, and secondly the JIRA plugin has to basically be rewritten to not use atlassians libraries   No - just the "jira" plugin should do -  https://plugins.jenkins.io/jira
            tibor17 Tibor Digana added a comment -

            I thought Jenkins was using OSGi and so that plugins run in isolated ClassLoaders.

            tibor17 Tibor Digana added a comment - I thought Jenkins was using OSGi and so that plugins run in isolated ClassLoaders.
            michaelneale Michael Neale added a comment -

            tibor17 definitely not using OSGi, which probably could prevent things like this!

            michaelneale Michael Neale added a comment - tibor17 definitely not using OSGi, which probably could prevent things like this!
            tibor17 Tibor Digana added a comment -

            michaelneale
            The influence of JIRA plugin to Git executable would be some environment variable.
            If you run with/out JIRA plugin, the difference in the environment variables is found.
            My problem that Git rev-list hangs happens only if I force push to a branch and I push back to master.

            tibor17 Tibor Digana added a comment - michaelneale The influence of JIRA plugin to Git executable would be some environment variable. If you run with/out JIRA plugin, the difference in the environment variables is found. My problem that Git rev-list hangs happens only if I force push to a branch and I push back to master.
            michaelneale Michael Neale added a comment -

            tibor17 it may be unrelated in that case. 

            michaelneale Michael Neale added a comment - tibor17 it may be unrelated in that case. 
            tibor17 Tibor Digana added a comment -

            I tried to execute exactly the same command by hands and it did not hang.
            So the case would be that the command displayed in the logs is not exactly identical to the executed one, or the environment variables was added by JIRA plugin.

            tibor17 Tibor Digana added a comment - I tried to execute exactly the same command by hands and it did not hang. So the case would be that the command displayed in the logs is not exactly identical to the executed one, or the environment variables was added by JIRA plugin.
            tibor17 Tibor Digana added a comment -

            I will try to list --global, --local, --system properties in Jenkinsfile and I will compare with my workspace. Next week because now I am on holiday.
            It's strange to me that Java and Git executable have anything related. Therefore I mentioned env vars because I see only those in common and transaferable.

            tibor17 Tibor Digana added a comment - I will try to list --global, --local, --system properties in Jenkinsfile and I will compare with my workspace. Next week because now I am on holiday. It's strange to me that Java and Git executable have anything related. Therefore I mentioned env vars because I see only those in common and transaferable.
            vivek Vivek Pandey made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            vivek Vivek Pandey added a comment -

            Blueocean JIRA integration is causing lots of grief among users. For whats worth, we are disabling blueocean JIRA integration temporarily - blueocean-jira plugin won't be shipped in 1.5.0 release.

            We re-opened https://issues.jenkins-ci.org/browse/JENKINS-45920 to do a proper fix in jira-plugin and then re-enable JIRA integration.

            Users who have been experience this issue should do the following to fix the binary compatibility issue with jira plugin:

            • Upgrade to 1.5.0 release (not released yet, should go out sometime this week)
            • From update center uninstall blueocean-jira 1.4.x plugin
            • From update center uninstall jira plugin

            1.4.x users who are using JIRA integration without compatibility problem can continue doing so, however we recommend uninstalling blueocean-jira and jira plugin after upgrading to 1.5.0 to avoid encountering jira binary compatibility problem.

            vivek Vivek Pandey added a comment - Blueocean JIRA integration is causing lots of grief among users. For whats worth, we are disabling blueocean JIRA integration temporarily - blueocean-jira plugin won't be shipped in 1.5.0 release. We re-opened https://issues.jenkins-ci.org/browse/JENKINS-45920 to do a proper fix in jira-plugin and then re-enable JIRA integration. Users who have been experience this issue should do the following to fix the binary compatibility issue with jira plugin: Upgrade to 1.5.0 release (not released yet, should go out sometime this week) From update center uninstall blueocean-jira 1.4.x plugin From update center uninstall jira plugin 1.4.x users who are using JIRA integration without compatibility problem can continue doing so, however we recommend uninstalling blueocean-jira and jira plugin after upgrading to 1.5.0 to avoid encountering jira binary compatibility problem.
            vivek Vivek Pandey made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            oleg_nenashev Oleg Nenashev added a comment - - edited

            vivek michaelneale exclusion from BlueOcean does not fix this issue (binary compat between JIRA Plugin and Apache HttpComponents 4.x client). Yes it fixes BlueOcean on instances without JIRA plugin, but all users who have JIRA plugin are still affected. Independently from BlueOcean...

            oleg_nenashev Oleg Nenashev added a comment - - edited vivek michaelneale exclusion from BlueOcean does not fix this issue (binary compat between JIRA Plugin and Apache HttpComponents 4.x client). Yes it fixes BlueOcean on instances without JIRA plugin, but all users who have JIRA plugin are still affected. Independently from BlueOcean...
            oleg_nenashev Oleg Nenashev made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            michaelneale Michael Neale added a comment -

            oleg_nenashev very true - I think vivek was going to open a follow on ticket to fix up the JIRA plugin itself as a next step (inline the Atlassian stuff to not have that problem) - but this could be the ticket for that, given it doesn't explicitly mention blue ocean. 

            michaelneale Michael Neale added a comment - oleg_nenashev very true - I think vivek was going to open a follow on ticket to fix up the JIRA plugin itself as a next step (inline the Atlassian stuff to not have that problem) - but this could be the ticket for that, given it doesn't explicitly mention blue ocean. 
            oleg_nenashev Oleg Nenashev added a comment -

            Taking the number of voters/watchers, it's better to keep this ticket IMHO.
            BlueOcean patch was never a fix for this problem as we discussed before

            oleg_nenashev Oleg Nenashev added a comment - Taking the number of voters/watchers, it's better to keep this ticket IMHO. BlueOcean patch was never a fix for this problem as we discussed before
            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}
            ldevos Laurent DEVOS added a comment - - edited

            My problem was with the JIRA plugin.

            I recently upgraded to jenkins 2.107.2 and the communication problem has disappeared.

            ldevos Laurent DEVOS added a comment - - edited My problem was with the JIRA plugin. I recently upgraded to jenkins 2.107.2 and the communication problem has disappeared.
            vivek Vivek Pandey added a comment -

            ldevos What version of jira plugin was giving you the problem described in this ticket? so the only change on your side was upgrade to 2.107.2?

            vivek Vivek Pandey added a comment - ldevos What version of jira plugin was giving you the problem described in this ticket? so the only change on your side was upgrade to 2.107.2?
            ldevos Laurent DEVOS added a comment -

            I'm using version 2.5 of the plugin. The problem was resolved after upgrading to 2.107.2 and updating all of my other plugins that had a new version.

            ldevos Laurent DEVOS added a comment - I'm using version 2.5 of the plugin. The problem was resolved after upgrading to 2.107.2 and updating all of my other plugins that had a new version.
            tibor17 Tibor Digana added a comment -

            I am using Version 2.107.2, restarted of course and using JIRA plugins, all plugins updated.
            But the git still hangs on this line in logs:
            16:25:09 > git rev-list --no-walk 3bb1f0fc92a0cdb29c6df7cd1eb109dbd372929d # timeout=10
            Who prints this? The Git or Java?
            Can you add more debug info? We have to find the root cause.
            Interesting is that I pushed changes to Jenkinsfile with two commits in the morning. And now in the afternoon I committed Java code. Could it be that Jenkinsfile represents configuration of the job and maybe this behavior (Jenkinsfile -> next commit with some other file(s)) breaks something.
            Now I have only one possibility to interrupt the build and trigger the build manually. After I did the Jenkins job did not hang.
            Could it be related to what Jenkinsfile made in job configuration. I don't think it's my fault because I only renamed function isTrunk to isMaster which is easy refactoring.

            tibor17 Tibor Digana added a comment - I am using Version 2.107.2, restarted of course and using JIRA plugins, all plugins updated. But the git still hangs on this line in logs: 16:25:09 > git rev-list --no-walk 3bb1f0fc92a0cdb29c6df7cd1eb109dbd372929d # timeout=10 Who prints this? The Git or Java? Can you add more debug info? We have to find the root cause. Interesting is that I pushed changes to Jenkinsfile with two commits in the morning. And now in the afternoon I committed Java code. Could it be that Jenkinsfile represents configuration of the job and maybe this behavior (Jenkinsfile -> next commit with some other file(s)) breaks something. Now I have only one possibility to interrupt the build and trigger the build manually. After I did the Jenkins job did not hang. Could it be related to what Jenkinsfile made in job configuration. I don't think it's my fault because I only renamed function isTrunk to isMaster which is easy refactoring.
            markewaite Mark Waite added a comment - - edited

            tibor17 the message

            16:25:09 > git rev-list --no-walk 3bb1f0fc92a0cdb29c6df7cd1eb109dbd372929d # timeout=10
            

            is logged by the git client plugin.

            I suspect that the git plugin is not the cause of the hang. I can't see the hang myself, so have no way to diagnose it. I've submitted a git client plugin pull request that logs the conclusion of a command line git call so that we can see if the `git rev-list` command hangs or if execution proceeds beyond that point.

            You'll need to download and install the git-client-plugin.hpi from the pull request artifacts.

            markewaite Mark Waite added a comment - - edited tibor17 the message 16:25:09 > git rev-list --no-walk 3bb1f0fc92a0cdb29c6df7cd1eb109dbd372929d # timeout=10 is logged by the git client plugin. I suspect that the git plugin is not the cause of the hang. I can't see the hang myself, so have no way to diagnose it. I've submitted a git client plugin pull request that logs the conclusion of a command line git call so that we can see if the `git rev-list` command hangs or if execution proceeds beyond that point. You'll need to download and install the git-client-plugin.hpi from the pull request artifacts .
            tibor17 Tibor Digana added a comment -

            markewaite
            Hi Mark,
            I found some hint [1] however I use Ubuntu and not Windows, but this forced me to ask you about git credentials and some other question. Maybe the pull request can be extended with some more logs.
            How credentials are passed to these commands and each of them?
            Can we see them and is this real command executed in sub-process?
            Is Git running in a non-interactive mode?
            Can we detect that Git is interactively asking for some input on STD/IN? I guess Jenkins plugin runs Git in Java sub-process.
            Can we see std/err as well as std/out in the console including the error code returned by the sub-process?
            Why timeout 10 minutes is not applied however it is seen in the console log after the command (# timeout=10)?
            [1]: https://support.cloudbees.com/hc/en-us/articles/221046888-Build-Hang-or-Fail-with-Git-for-Windows

            tibor17 Tibor Digana added a comment - markewaite Hi Mark, I found some hint [1] however I use Ubuntu and not Windows, but this forced me to ask you about git credentials and some other question. Maybe the pull request can be extended with some more logs. How credentials are passed to these commands and each of them? Can we see them and is this real command executed in sub-process? Is Git running in a non-interactive mode? Can we detect that Git is interactively asking for some input on STD/IN? I guess Jenkins plugin runs Git in Java sub-process. Can we see std/err as well as std/out in the console including the error code returned by the sub-process? Why timeout 10 minutes is not applied however it is seen in the console log after the command (# timeout=10)? [1] : https://support.cloudbees.com/hc/en-us/articles/221046888-Build-Hang-or-Fail-with-Git-for-Windows
            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 ]
            tibor17 Tibor Digana added a comment -

            markewaite
            I have a new findings (yet without your pull request - I will use it soon).
            The Git plugin hangs on git rev-list --no-walk if the time trigger started the job. It has never been hanged when I triggered manually. Not related to changes in Jenkinsfile as I wrote before.
            Interesting is that I launched the native commit in WORKSPACE/build which did not hang. Notice that my .git directory is in build directory and not directly in workspace.
            Not sure why Jenkins and Git plugin calls this command due to it always returns the commit hash itself I used in the command:
            git rev-list --no-walk 21980ad7f91ab4eb0aeb09b166d66baf7433b7a9
            dioes not matter if I checked out the HEAD or some previous commit.

            tibor17 Tibor Digana added a comment - markewaite I have a new findings (yet without your pull request - I will use it soon). The Git plugin hangs on git rev-list --no-walk if the time trigger started the job. It has never been hanged when I triggered manually. Not related to changes in Jenkinsfile as I wrote before. Interesting is that I launched the native commit in WORKSPACE/build which did not hang. Notice that my .git directory is in build directory and not directly in workspace. Not sure why Jenkins and Git plugin calls this command due to it always returns the commit hash itself I used in the command: git rev-list --no-walk 21980ad7f91ab4eb0aeb09b166d66baf7433b7a9 dioes not matter if I checked out the HEAD or some previous commit.
            markewaite Mark Waite added a comment -

            tibor17 thanks for investigating further. Your efforts are appreciated very much!

            Your questions with my answers following each question:

            How credentials are passed to these commands and each of them?

            The git rev-list command does not require credentials. None are provided to it.

            Commands which need credentials like fetch and ls-remote receive them through temporary files identified by environment variables.

            Credentials for http and https repository URL's are written to a temporary file in the form of a response script. The name of the temporary file is assigned to the environment variables GIT_ASKPASS and SSH_ASKPASS. Command line git calls that temporary file and the temporary file responds to the command line git prompts for username and password.

            Credentials for ssh repository URL's are written to a temporary file. The name of the temporary file is assigned to the environment variable SSH_ASKPASS. The path to the ssh command is assigned to the environment variable GIT_SSH. The value ssh is assigned to the environment variable GIT_SSH_VARIANT. Command line git uses those environment variables to find the temporary files for authentication.

            Can we see them and is this real command executed in sub-process?

            No, they are not shown to users. Showing them to users would expose credentials to users who should not see them.

            Yes, command line git executes in a subprocess of the Jenkins Java process. The temporary file is executed in a subprocess of command line git so that it can provide the credential responses (http/https) or the ssh connection (ssh).

            Is Git running in a non-interactive mode?

            The git plugin attempts to run git in non-interactive mode if the command line git version is new enough to support non-interactive mode.

            For command line git versions 2.3 and newer, the git plugin sets the environment variable GIT_TERMINAL_PROMPT=false. If running on Windows, it also sets the environment variable GCM_INTERACTIVE=false.

            Can we detect that Git is interactively asking for some input on STD/IN?

            The plugin does not detect that git is interactively asking for input on stdin. I don't know any technique to do that. 

            The timeout option was added to commands which require authentication specifically because there was not a way to detect command line git was waiting for input.

            Can we see std/err as well as std/out in the console including the error code returned by the sub-process?

            Yes, we can see stdout and stderr outputs and the subprocess error code. When the git plugin prints an exception from command line git, it includes stderr and stdout of the command in the exception message.

            Why timeout 10 minutes is not applied however it is seen in the console log after the command (# timeout=10)?

            I suspect that the command completed and control has returned from the git plugin to some other part of Jenkins. The timeout was not applied because command line git had returned and job execution continued in other parts of Jenkins.  The diagnostics I inserted into the patched plugin will confirm or refute that suspicion.

            markewaite Mark Waite added a comment - tibor17 thanks for investigating further. Your efforts are appreciated very much! Your questions with my answers following each question: How credentials are passed to these commands and each of them? The git rev-list command does not require credentials. None are provided to it. Commands which need credentials like fetch and ls-remote receive them through temporary files identified by environment variables. Credentials for http and https repository URL's are written to a temporary file in the form of a response script. The name of the temporary file is assigned to the environment variables GIT_ASKPASS and SSH_ASKPASS . Command line git calls that temporary file and the temporary file responds to the command line git prompts for username and password. Credentials for ssh repository URL's are written to a temporary file. The name of the temporary file is assigned to the environment variable SSH_ASKPASS . The path to the ssh command is assigned to the environment variable GIT_SSH . The value ssh is assigned to the environment variable GIT_SSH_VARIANT . Command line git uses those environment variables to find the temporary files for authentication. Can we see them and is this real command executed in sub-process? No, they are not shown to users. Showing them to users would expose credentials to users who should not see them. Yes, command line git executes in a subprocess of the Jenkins Java process. The temporary file is executed in a subprocess of command line git so that it can provide the credential responses (http/https) or the ssh connection (ssh). Is Git running in a non-interactive mode? The git plugin attempts to run git in non-interactive mode if the command line git version is new enough to support non-interactive mode. For command line git versions 2.3 and newer, the git plugin sets the environment variable GIT_TERMINAL_PROMPT=false . If running on Windows, it also sets the environment variable GCM_INTERACTIVE=false . Can we detect that Git is interactively asking for some input on STD/IN? The plugin does not detect that git is interactively asking for input on stdin. I don't know any technique to do that.  The timeout option was added to commands which require authentication specifically because there was not a way to detect command line git was waiting for input. Can we see std/err as well as std/out in the console including the error code returned by the sub-process? Yes, we can see stdout and stderr outputs and the subprocess error code. When the git plugin prints an exception from command line git, it includes stderr and stdout of the command in the exception message. Why timeout 10 minutes is not applied however it is seen in the console log after the command (# timeout=10)? I suspect that the command completed and control has returned from the git plugin to some other part of Jenkins. The timeout was not applied because command line git had returned and job execution continued in other parts of Jenkins.  The diagnostics I inserted into the patched plugin will confirm or refute that suspicion.
            michaelpporter Michael Porter added a comment - - edited
            git rev-list --no-walk 21980ad7f91ab4eb0aeb09b166d66baf7433b7a9
            

            I found when I had JIRA plugin and JiraTestResultReporter plugin enabled and used a JIRA ticket number in the commit message it would hang.

            JENKINS-48357 This is a commit that would hang.
            
            This would not.
            

            I am not sure it is related, but it seems so.

            michaelpporter Michael Porter added a comment - - edited git rev-list --no-walk 21980ad7f91ab4eb0aeb09b166d66baf7433b7a9 I found when I had JIRA plugin and JiraTestResultReporter plugin enabled and used a JIRA ticket number in the commit message it would hang. JENKINS-48357 This is a commit that would hang. This would not. I am not sure it is related, but it seems so.
            markewaite Mark Waite added a comment - - edited

            michaelpporter, if you're able to explore further in your failure case, could you download and install the git-client-plugin.hpi from the pull request artifacts.

            That version of the git client plugin adds an additional logging statement which shows that command line git has completed.  That will allow us to confirm that git rev-list is not hanging.  It doesn't help us identify what is hanging, but it at least allows us to remove the git rev-list call from the list of suspects.

            markewaite Mark Waite added a comment - - edited michaelpporter , if you're able to explore further in your failure case, could you download and install the git-client-plugin.hpi from the pull request artifacts . That version of the git client plugin adds an additional logging statement which shows that command line git has completed.  That will allow us to confirm that git rev-list is not hanging.  It doesn't help us identify what is hanging, but it at least allows us to remove the git rev-list call from the list of suspects.
            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 ]
            olamy Olivier Lamy added a comment - - edited

            4 solutions:

            1. upgrade to atlassian jira client 5.0.4 which is using Apache httpclient 4.5.3 (but might cause issue in the future as well)
            2. import sources from atlassian source code which is possible as it's Apache license.
            3. build our own reusable (as simple as possible) jira client
            4. use an other jira client such https://github.com/rcarz/jira-client (but it's LGPL)

            2 might be real nightmare... as the jira client from Atlassian contains a lot of abstraction layers on the top of Apache httpclient..... Furthermore it use an other abstraction layer for Promise on the top of Guava....
            So definitely 2 might tend to an over complicated maintenance... as we need to copy jira client sources, atlassian http client sources etc...

            So 1 is a possible temporary solution. ( vivek ?) 

            3 is an other possible option.

            olamy Olivier Lamy added a comment - - edited 4 solutions: upgrade to atlassian jira client 5.0.4 which is using Apache httpclient 4.5.3 (but might cause issue in the future as well) import sources from atlassian source code which is possible as it's Apache license. build our own reusable (as simple as possible) jira client use an other jira client such https://github.com/rcarz/jira-client (but it's LGPL) 2 might be real nightmare... as the jira client from Atlassian contains a lot of abstraction layers on the top of Apache httpclient..... Furthermore it use an other abstraction layer for Promise on the top of Guava.... So definitely 2 might tend to an over complicated maintenance... as we need to copy jira client sources, atlassian http client sources etc... So 1 is a possible temporary solution. ( vivek ?)  3 is an other possible option.
            vivek Vivek Pandey added a comment -

            olamy Option 1 doesn't work as user won't be able to upgrade to later version of jira plugin.

            Option 3 can work if we include support for Jira site configuration as well. However everyone out there know about jira plugin and if they upgrade to later version its going to be problem.

            How about we do #2 and do in a way as you plan option 3? That is keep external interfaces exposed by jira-plugin intact and throw away rest stuff that interacts with atlassian libraries and replace it by something simple?

            vivek Vivek Pandey added a comment - olamy Option 1 doesn't work as user won't be able to upgrade to later version of jira plugin. Option 3 can work if we include support for Jira site configuration as well. However everyone out there know about jira plugin and if they upgrade to later version its going to be problem. How about we do #2 and do in a way as you plan option 3? That is keep external interfaces exposed by jira-plugin intact and throw away rest stuff that interacts with atlassian libraries and replace it by something simple?
            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 ]
            olamy Olivier Lamy added a comment -

            go for it #2 with only the minimum JIRA  services we need I will try to do this not too messy  

            olamy Olivier Lamy added a comment - go for it #2 with only the minimum JIRA  services we need I will try to do this not too messy  
            olamy Olivier Lamy added a comment - too bad access denied to https://bitbucket.org/atlassian/atlassian-httpclient  whereas the pom is here  https://packages.atlassian.com/maven-external/com/atlassian/httpclient/atlassian-httpclient-parent/0.23.0/
            vivek Vivek Pandey added a comment -

            olamy are you looking for https://bitbucket.org/atlassian/jira-rest-java-client? Its multi-module with sources for api api and core.

            vivek Vivek Pandey added a comment - olamy are you looking for https://bitbucket.org/atlassian/jira-rest-java-client? Its multi-module with sources for api api and core.
            vivek Vivek Pandey added a comment - olamy there is also https://bitbucket.org/atlassian/atlassian-http .
            olamy Olivier Lamy added a comment -

            got the sources from maven repo. I don't mind the rest client I just to override the Atlassian httpclient ( https://packages.atlassian.com/maven-external/com/atlassian/httpclient/atlassian-httpclient-plugin/0.23.0/ ) 

            The goal is to have a local copy of those classes so we can simply have our version of Apache httpclient.

            I have it done locally, I have to do more testing (separate Jenkins install with bo and real JIRA etc...)

            olamy Olivier Lamy added a comment - got the sources from maven repo. I don't mind the rest client I just to override the Atlassian httpclient (  https://packages.atlassian.com/maven-external/com/atlassian/httpclient/atlassian-httpclient-plugin/0.23.0/ )  The goal is to have a local copy of those classes so we can simply have our version of Apache httpclient. I have it done locally, I have to do more testing (separate Jenkins install with bo and real JIRA etc...)
            jbriden Jenn Briden made changes -
            Status Reopened [ 4 ] In Progress [ 3 ]
            olamy Olivier Lamy added a comment - pr  https://github.com/jenkinsci/jira-plugin/pull/145
            vivek Vivek Pandey made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            olamy Olivier Lamy added a comment - snapshot available for test  https://repo.jenkins-ci.org/snapshots/org/jenkins-ci/plugins/jira/2.5.2-SNAPSHOT/jira-2.5.2-20180501.075458-1.hpi
            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 ]
            vivek Vivek Pandey added a comment - warden Olivier has PR up and snapshot available at https://repo.jenkins-ci.org/snapshots/org/jenkins-ci/plugins/jira/2.5.2-SNAPSHOT/jira-2.5.2-20180501.231733-2.hpi , mind giving it a try?
            tibor17 Tibor Digana added a comment -

            markewaite

            The link you provided [ git-client-plugin.hpi |https://ci.jenkins.io/job/Plugins/job/git-client-plugin/view/change-requests/job/PR-311/lastSuccessfulBuild/artifact/target/git-client.hpi] is no longer reachable. I want to check it out. Can you create it again pls? I have updated the Jira Plugin from Olivier and I would like to do the same with the Git Plugin.

            tibor17 Tibor Digana added a comment - markewaite The link you provided [ git-client-plugin.hpi |https://ci.jenkins.io/job/Plugins/job/git-client-plugin/view/change-requests/job/PR-311/lastSuccessfulBuild/artifact/target/git-client.hpi] is no longer reachable. I want to check it out. Can you create it again pls? I have updated the Jira Plugin from Olivier and I would like to do the same with the Git Plugin.
            markewaite Mark Waite added a comment - - edited

            tibor17 thanks for your willingness to test.  Download git client plugin from the artifact repository.

            markewaite Mark Waite added a comment - - edited tibor17 thanks for your willingness to test.  Download git client plugin from the artifact repository.
            tibor17 Tibor Digana added a comment -

            markewaite
            The first commit did not hang and this is the log:

            16:11:24 [WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done
            [Pipeline] }
            [Pipeline] // stage
            [Pipeline] echo
            16:11:25 shortDescription: Branch indexing
            [Pipeline] echo
            16:11:25 Job started by timer or branching.
            [Pipeline] sh
            16:11:25 [ibranch_Pipeline_playground-PRVK7X6T2XH7C3SUJ4JNYHLNG2EVZ6W7C37SOIOU6LWELPYIKHXQ] Running shell script
            16:11:25 + mkdir -p build
            [Pipeline] dir
            16:11:25 Running in /var/lib/jenkins/workspace/ibranch_Pipeline_playground-PRVK7X6T2XH7C3SUJ4JNYHLNG2EVZ6W7C37SOIOU6LWELPYIKHXQ/build
            [Pipeline] {
            [Pipeline] stage
            [Pipeline] { (checkout)
            [Pipeline] checkout
            16:11:25 Cloning the remote Git repository
            16:11:25 Cloning with configured refspecs honoured and without tags
            16:11:25 Cloning repository http://git.ads.local/phfa-entervonextgen/audit
            16:11:25  > git init /var/lib/jenkins/workspace/ibranch_Pipeline_playground-PRVK7X6T2XH7C3SUJ4JNYHLNG2EVZ6W7C37SOIOU6LWELPYIKHXQ/build # timeout=10
            16:11:26  > FINISHED git init /var/lib/jenkins/workspace/ibranch_Pipeline_playground-PRVK7X6T2XH7C3SUJ4JNYHLNG2EVZ6W7C37SOIOU6LWELPYIKHXQ/build # timeout=10
            16:11:26 Fetching upstream changes from http://git.ads.local/phfa-entervonextgen/audit
            16:11:26  > git --version # timeout=10
            16:11:26  > FINISHED git --version # timeout=10
            16:11:26 using GIT_ASKPASS to set credentials git private new rsa
            16:11:26  > git fetch --no-tags --progress http://git.ads.local/phfa-entervonextgen/audit +refs/heads/*:refs/remotes/origin/*
            16:11:30  > FINISHED git fetch --no-tags --progress http://git.ads.local/phfa-entervonextgen/audit +refs/heads/*:refs/remotes/origin/*
            16:11:30  > git config remote.origin.url http://git.ads.local/phfa-entervonextgen/audit # timeout=10
            16:11:30  > FINISHED git config remote.origin.url http://git.ads.local/phfa-entervonextgen/audit # timeout=10
            16:11:30  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
            16:11:30  > FINISHED git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
            16:11:30  > git config remote.origin.url http://git.ads.local/phfa-entervonextgen/audit # timeout=10
            16:11:30  > FINISHED git config remote.origin.url http://git.ads.local/phfa-entervonextgen/audit # timeout=10
            16:11:30 Fetching without tags
            16:11:30 Fetching upstream changes from http://git.ads.local/phfa-entervonextgen/audit
            16:11:30 using GIT_ASKPASS to set credentials git private new rsa
            16:11:30  > git fetch --no-tags --progress http://git.ads.local/phfa-entervonextgen/audit +refs/heads/*:refs/remotes/origin/*
            16:11:30  > FINISHED git fetch --no-tags --progress http://git.ads.local/phfa-entervonextgen/audit +refs/heads/*:refs/remotes/origin/*
            16:11:30 Checking out Revision 512f79c739a04d5001d0c89dc889add0efbf06b9 (playground)
            16:11:30  > git config core.sparsecheckout # timeout=10
            16:11:30  > FINISHED git config core.sparsecheckout # timeout=10
            16:11:30  > git checkout -f 512f79c739a04d5001d0c89dc889add0efbf06b9
            16:11:31  > FINISHED git checkout -f 512f79c739a04d5001d0c89dc889add0efbf06b9
            16:11:31 Commit message: "Test new Git and JIRA SNAPSHOT plugin with maven-site-plugin:3.7.1"
            16:11:31  > git rev-list --no-walk 1535e85a8421d931ea2f54cd26dff47f647ed24b # timeout=10
            16:11:31  > FINISHED git rev-list --no-walk 1535e85a8421d931ea2f54cd26dff47f647ed24b # timeout=10
            [Pipeline] sh
            16:11:31 
            
            tibor17 Tibor Digana added a comment - markewaite The first commit did not hang and this is the log: 16:11:24 [WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done [Pipeline] } [Pipeline] // stage [Pipeline] echo 16:11:25 shortDescription: Branch indexing [Pipeline] echo 16:11:25 Job started by timer or branching. [Pipeline] sh 16:11:25 [ibranch_Pipeline_playground-PRVK7X6T2XH7C3SUJ4JNYHLNG2EVZ6W7C37SOIOU6LWELPYIKHXQ] Running shell script 16:11:25 + mkdir -p build [Pipeline] dir 16:11:25 Running in /var/lib/jenkins/workspace/ibranch_Pipeline_playground-PRVK7X6T2XH7C3SUJ4JNYHLNG2EVZ6W7C37SOIOU6LWELPYIKHXQ/build [Pipeline] { [Pipeline] stage [Pipeline] { (checkout) [Pipeline] checkout 16:11:25 Cloning the remote Git repository 16:11:25 Cloning with configured refspecs honoured and without tags 16:11:25 Cloning repository http://git.ads.local/phfa-entervonextgen/audit 16:11:25 > git init /var/lib/jenkins/workspace/ibranch_Pipeline_playground-PRVK7X6T2XH7C3SUJ4JNYHLNG2EVZ6W7C37SOIOU6LWELPYIKHXQ/build # timeout=10 16:11:26 > FINISHED git init /var/lib/jenkins/workspace/ibranch_Pipeline_playground-PRVK7X6T2XH7C3SUJ4JNYHLNG2EVZ6W7C37SOIOU6LWELPYIKHXQ/build # timeout=10 16:11:26 Fetching upstream changes from http://git.ads.local/phfa-entervonextgen/audit 16:11:26 > git --version # timeout=10 16:11:26 > FINISHED git --version # timeout=10 16:11:26 using GIT_ASKPASS to set credentials git private new rsa 16:11:26 > git fetch --no-tags --progress http://git.ads.local/phfa-entervonextgen/audit +refs/heads/*:refs/remotes/origin/* 16:11:30 > FINISHED git fetch --no-tags --progress http://git.ads.local/phfa-entervonextgen/audit +refs/heads/*:refs/remotes/origin/* 16:11:30 > git config remote.origin.url http://git.ads.local/phfa-entervonextgen/audit # timeout=10 16:11:30 > FINISHED git config remote.origin.url http://git.ads.local/phfa-entervonextgen/audit # timeout=10 16:11:30 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 16:11:30 > FINISHED git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 16:11:30 > git config remote.origin.url http://git.ads.local/phfa-entervonextgen/audit # timeout=10 16:11:30 > FINISHED git config remote.origin.url http://git.ads.local/phfa-entervonextgen/audit # timeout=10 16:11:30 Fetching without tags 16:11:30 Fetching upstream changes from http://git.ads.local/phfa-entervonextgen/audit 16:11:30 using GIT_ASKPASS to set credentials git private new rsa 16:11:30 > git fetch --no-tags --progress http://git.ads.local/phfa-entervonextgen/audit +refs/heads/*:refs/remotes/origin/* 16:11:30 > FINISHED git fetch --no-tags --progress http://git.ads.local/phfa-entervonextgen/audit +refs/heads/*:refs/remotes/origin/* 16:11:30 Checking out Revision 512f79c739a04d5001d0c89dc889add0efbf06b9 (playground) 16:11:30 > git config core.sparsecheckout # timeout=10 16:11:30 > FINISHED git config core.sparsecheckout # timeout=10 16:11:30 > git checkout -f 512f79c739a04d5001d0c89dc889add0efbf06b9 16:11:31 > FINISHED git checkout -f 512f79c739a04d5001d0c89dc889add0efbf06b9 16:11:31 Commit message: "Test new Git and JIRA SNAPSHOT plugin with maven-site-plugin:3.7.1" 16:11:31 > git rev-list --no-walk 1535e85a8421d931ea2f54cd26dff47f647ed24b # timeout=10 16:11:31 > FINISHED git rev-list --no-walk 1535e85a8421d931ea2f54cd26dff47f647ed24b # timeout=10 [Pipeline] sh 16:11:31
            markewaite Mark Waite added a comment - - edited

            Thanks tibor17. The most interesting is the output the next time you see it hang.

            That unreleased plugin build is based on the git client plugin 3.0.0-beta. If that unreleased plugin version resolves all the instances of hanging in your environment then I'll probably need to build a different unreleased plugin version which contains exactly git client plugin 2.7.1 plus that additional logging statement.

            Rather than risk further delay, if you need git client plugin 2.7.1 plus the extra 'FINISHED' logging statements, download git client plugin 2.7.2-SNAPSHOT unreleased

            markewaite Mark Waite added a comment - - edited Thanks tibor17 . The most interesting is the output the next time you see it hang. That unreleased plugin build is based on the git client plugin 3.0.0-beta. If that unreleased plugin version resolves all the instances of hanging in your environment then I'll probably need to build a different unreleased plugin version which contains exactly git client plugin 2.7.1 plus that additional logging statement. Rather than risk further delay, if you need git client plugin 2.7.1 plus the extra 'FINISHED' logging statements, download git client plugin 2.7.2-SNAPSHOT unreleased
            tibor17 Tibor Digana added a comment -

            olamy
            Maybe OSGi would be quite a big deal for the developers. Would it be a generic solution of such problems in all Jenkins plugins?
            Each Jenkins plugin may have isolated version of JIRA Client and Apache HTTP client.

            tibor17 Tibor Digana added a comment - olamy Maybe OSGi would be quite a big deal for the developers. Would it be a generic solution of such problems in all Jenkins plugins? Each Jenkins plugin may have isolated version of JIRA Client and Apache HTTP client.
            tibor17 Tibor Digana added a comment -

            markewaite
            Ok Mark, just ping me when you need my test again. I will try to make few more commits next days on my system.

            tibor17 Tibor Digana added a comment - markewaite Ok Mark, just ping me when you need my test again. I will try to make few more commits next days on my system.
            markewaite Mark Waite added a comment -

            tibor17 I provided the extra logging in the git client plugin so that we could confirm my belief that what you're reporting as "hang in git rev-list" is not actually in the "git rev-list" command or even in the git client plugin that executes "git rev-list".

            I can't duplicate this problem in my environment. The extra logging in the git client plugin is intended to help you confirm (or refute) my hypothesis that the problem is happening somewhere other than the git client plugin.

            If prior to installing the unreleased git client plugin you saw 100% of the executions of that job hang, and the unreleased git client plugin never hangs, then you should switch to the unreleased git client plugin 2.7.2 to reduce the changes between the system that hangs and the system that never hangs.

            markewaite Mark Waite added a comment - tibor17 I provided the extra logging in the git client plugin so that we could confirm my belief that what you're reporting as "hang in git rev-list" is not actually in the "git rev-list" command or even in the git client plugin that executes "git rev-list". I can't duplicate this problem in my environment. The extra logging in the git client plugin is intended to help you confirm (or refute) my hypothesis that the problem is happening somewhere other than the git client plugin. If prior to installing the unreleased git client plugin you saw 100% of the executions of that job hang, and the unreleased git client plugin never hangs, then you should switch to the unreleased git client plugin 2.7.2 to reduce the changes between the system that hangs and the system that never hangs.
            tibor17 Tibor Digana added a comment -

            olamy
            markewaite
            I updated both plugins Git Client and JIRA. So it means the change in JIRA was the one which made the build to continue without hanging. The second commit runs as well.

            tibor17 Tibor Digana added a comment - olamy markewaite I updated both plugins Git Client and JIRA. So it means the change in JIRA was the one which made the build to continue without hanging. The second commit runs as well.
            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
            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.

            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.
            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
            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?
            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
            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: