java.lang.IllegalStateException: Connection is not open

jfrog.com | 2 weeks ago
  1. 0

    ,The developers are reporting that the Bamboo builds are crashing from time to time when uploading to Artifactory using the bamboo-artifactory plugin. Further investigation suggests that this is happening when two or more builds are executing at the same time. Based on the stack trace logged in Bamboo catalina.out they feel it is due to a bug in the bamboo-artifactory plugin: [...] 2015-10-02 12:04:17,517 ERROR [10-BAM::Jones::Agent:pool-25-thread-1] [TaskExecutorImpl] Error occurred while running Task 'Felles.PersonClient(4)' of type org.jfrog.bamboo.bamboo-artifactory-plugin:maven3Task. java.lang.IllegalStateException: Connection is not open at org.apache.commons.httpclient.HttpConnection.assertOpen(HttpConnection.java:1276) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1114) 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:109) at org.jfrog.bamboo.configuration.ConfigurationHelper.getAllVariables(ConfigurationHelper.java:60) at org.jfrog.bamboo.configuration.ConfigurationHelper.getBuildJdkOverride(ConfigurationHelper.java:43) at org.jfrog.bamboo.task.ArtifactoryTaskType.getConfiguredJdkPath(ArtifactoryTaskType.java:85) at org.jfrog.bamboo.task.ArtifactoryMaven3Task.getExecutable(ArtifactoryMaven3Task.java:287) at org.jfrog.bamboo.task.ArtifactoryMaven3Task.getCommand(ArtifactoryMaven3Task.java:153) at org.jfrog.bamboo.task.ArtifactoryMaven3Task.execute(ArtifactoryMaven3Task.java:107) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:216) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) 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(Unknown Source) [...] The Artifactory logs does not show anything that could explain this issue.

    JFrog JIRA | 1 year ago | Oddbjorn Bersas
    java.lang.IllegalStateException: Connection is not open
  2. 0

    ,The developers are reporting that the Bamboo builds are crashing from time to time when uploading to Artifactory using the bamboo-artifactory plugin. Further investigation suggests that this is happening when two or more builds are executing at the same time. Based on the stack trace logged in Bamboo catalina.out they feel it is due to a bug in the bamboo-artifactory plugin: [...] 2015-10-02 12:04:17,517 ERROR [10-BAM::Jones::Agent:pool-25-thread-1] [TaskExecutorImpl] Error occurred while running Task 'Felles.PersonClient(4)' of type org.jfrog.bamboo.bamboo-artifactory-plugin:maven3Task. java.lang.IllegalStateException: Connection is not open at org.apache.commons.httpclient.HttpConnection.assertOpen(HttpConnection.java:1276) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1114) 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:109) at org.jfrog.bamboo.configuration.ConfigurationHelper.getAllVariables(ConfigurationHelper.java:60) at org.jfrog.bamboo.configuration.ConfigurationHelper.getBuildJdkOverride(ConfigurationHelper.java:43) at org.jfrog.bamboo.task.ArtifactoryTaskType.getConfiguredJdkPath(ArtifactoryTaskType.java:85) at org.jfrog.bamboo.task.ArtifactoryMaven3Task.getExecutable(ArtifactoryMaven3Task.java:287) at org.jfrog.bamboo.task.ArtifactoryMaven3Task.getCommand(ArtifactoryMaven3Task.java:153) at org.jfrog.bamboo.task.ArtifactoryMaven3Task.execute(ArtifactoryMaven3Task.java:107) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:216) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) 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(Unknown Source) [...] The Artifactory logs does not show anything that could explain this issue.

    JFrog JIRA | 1 year ago | Oddbjorn Bersas
    java.lang.IllegalStateException: Connection is not open
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    MultiThreadedHttpConnectionManager issue: Connection is not open

    Stack Overflow | 2 years ago | user3153360
    java.lang.IllegalStateException: Connection is not open
  5. 0

    Connection factory has been shutdown

    GitHub | 2 years ago | misery
    java.lang.IllegalStateException: Connection factory has been shutdown.

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Connection is not open

      at org.apache.commons.httpclient.HttpConnection.assertOpen()
    2. HttpClient
      HttpClient.executeMethod
      1. org.apache.commons.httpclient.HttpConnection.assertOpen(HttpConnection.java:1276)
      2. org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1114)
      3. org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
      4. org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
      5. org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
      6. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
      7. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
      8. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
      9. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
      9 frames
    3. org.jfrog.bamboo
      ArtifactoryMaven3Task.execute
      1. org.jfrog.bamboo.configuration.ConfigurationHelper.executeMethod(ConfigurationHelper.java:109)
      2. org.jfrog.bamboo.configuration.ConfigurationHelper.getAllVariables(ConfigurationHelper.java:60)
      3. org.jfrog.bamboo.configuration.ConfigurationHelper.getBuildJdkOverride(ConfigurationHelper.java:43)
      4. org.jfrog.bamboo.task.ArtifactoryTaskType.getConfiguredJdkPath(ArtifactoryTaskType.java:85)
      5. org.jfrog.bamboo.task.ArtifactoryMaven3Task.getExecutable(ArtifactoryMaven3Task.java:287)
      6. org.jfrog.bamboo.task.ArtifactoryMaven3Task.getCommand(ArtifactoryMaven3Task.java:153)
      7. org.jfrog.bamboo.task.ArtifactoryMaven3Task.execute(ArtifactoryMaven3Task.java:107)
      7 frames
    4. com.atlassian.bamboo
      ImpersonationHelper$1.run
      1. com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:216)
      2. com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98)
      3. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
      4. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188)
      5. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112)
      6. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110)
      7. com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      8. com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      9. com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      10. com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      10 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame