Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.7.7, 1.8.1, 1.8.2, 1.9.0, 1.9.2
    • Fix Version/s: 1.10.0
    • Environment:

      Atlassian Bamboo version 5.9.7

      Description

      Hi,
      we got the following error by many of our build at the moment.
      Sometimes it occurs, sometimes not, but lately more and more often

      java.lang.RuntimeException: Failed while invoking URL https://<server>/bamboo/plugins/servlet/artifactoryAdminConfigServlet?planKey=<project>-JOB1 to get Bamboo variables. Stream closed
      	at org.jfrog.bamboo.configuration.ConfigurationHelper.getAllVariables(ConfigurationHelper.java:75)
      	at org.jfrog.bamboo.builder.BaseBuildInfoHelper.filterAndGetGlobalVariables(BaseBuildInfoHelper.java:119)
      	at org.jfrog.bamboo.builder.GradleInitScriptHelper.createClientConfiguration(GradleInitScriptHelper.java:180)
      	at org.jfrog.bamboo.builder.GradleInitScriptHelper.createAndGetGradleInitScriptPath(GradleInitScriptHelper.java:79)
      	at org.jfrog.bamboo.task.ArtifactoryGradleTask.getGradleInitScriptFile(ArtifactoryGradleTask.java:198)
      	at org.jfrog.bamboo.task.ArtifactoryGradleTask.execute(ArtifactoryGradleTask.java:131)
      	at com.atlassian.bamboo.task.TaskExecutorImpl$2.call(TaskExecutorImpl.java:278)
      	at com.atlassian.bamboo.task.TaskExecutorImpl$2.call(TaskExecutorImpl.java:274)
      	at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:200)
      	at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:274)
      	at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:106)
      	at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
      	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:124)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:115)
      	at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:114)
      	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118)
      	at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      	at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      	at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      	at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.IOException: Stream closed
      	at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
      	at java.io.BufferedInputStream.read(BufferedInputStream.java:269)
      	at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
      	at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
      	at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
      	at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
      	at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
      	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
      	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
      	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
      	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
      	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
      	at org.jfrog.bamboo.configuration.ConfigurationHelper.executeMethod(ConfigurationHelper.java:110)
      	at org.jfrog.bamboo.configuration.ConfigurationHelper.getAllVariables(ConfigurationHelper.java:60)
      	... 22 more
      

      When i access the URL from my Browser, every time i got the correct variables.
      How can i fix this?

        Attachments

          Activity

            People

            • Assignee:
              eyalbe Eyal Ben Moshe (Inactive)
              Reporter:
              eis J. E.
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: