java.lang.IllegalStateException: Connection not obtained from this manager

Jenkins JIRA | Ratn Dwivedi | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Steps to produce bug : 1.mvn hpi:run 2.Set access keys , Then it throws following exception - 2013-01-25 18:29:38.039::WARN: /descriptorByName/hudson.plugins.ec2.AmazonEC2Cloud/fillRegionItems java.lang.IllegalStateException: Connection not obtained from this manager at org.apache.http.util.Asserts.check(Asserts.java:34) at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.releaseConnection(ThreadSafeClientConnManager.java:252) at org.apache.http.impl.conn.AbstractClientConnAdapter.abortConnection(AbstractClientConnAdapter.java:338) at org.apache.http.impl.client.DefaultRequestDirector.abortConnection(DefaultRequestDirector.java:1119) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:590) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:858) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:76) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:97) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:58) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:262) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:169) at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:5684) at com.amazonaws.services.ec2.AmazonEC2Client.describeRegions(AmazonEC2Client.java:768) at com.amazonaws.services.ec2.AmazonEC2Client.describeRegions(AmazonEC2Client.java:4534) at hudson.plugins.ec2.AmazonEC2Cloud$DescriptorImpl.doFillRegionItems(AmazonEC2Cloud.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:104) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:234) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477) at org.kohsuke.stapler.Stapler.service(Stapler.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1074) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at org.mortbay.jetty.servlet.ServletHandler.hand And Regions wont be populated

    Jenkins JIRA | 4 years ago | Ratn Dwivedi
    java.lang.IllegalStateException: Connection not obtained from this manager
  2. 0

    Steps to produce bug : 1.mvn hpi:run 2.Set access keys , Then it throws following exception - 2013-01-25 18:29:38.039::WARN: /descriptorByName/hudson.plugins.ec2.AmazonEC2Cloud/fillRegionItems java.lang.IllegalStateException: Connection not obtained from this manager at org.apache.http.util.Asserts.check(Asserts.java:34) at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.releaseConnection(ThreadSafeClientConnManager.java:252) at org.apache.http.impl.conn.AbstractClientConnAdapter.abortConnection(AbstractClientConnAdapter.java:338) at org.apache.http.impl.client.DefaultRequestDirector.abortConnection(DefaultRequestDirector.java:1119) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:590) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:858) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:76) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:97) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:58) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:262) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:169) at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:5684) at com.amazonaws.services.ec2.AmazonEC2Client.describeRegions(AmazonEC2Client.java:768) at com.amazonaws.services.ec2.AmazonEC2Client.describeRegions(AmazonEC2Client.java:4534) at hudson.plugins.ec2.AmazonEC2Cloud$DescriptorImpl.doFillRegionItems(AmazonEC2Cloud.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:104) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:234) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477) at org.kohsuke.stapler.Stapler.service(Stapler.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1074) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at org.mortbay.jetty.servlet.ServletHandler.hand And Regions wont be populated

    Jenkins JIRA | 4 years ago | Ratn Dwivedi
    java.lang.IllegalStateException: Connection not obtained from this manager
  3. 0

    IllegalStateException: Socket factory must implement SchemeLayeredSocketFactory when using Proxy

    GitHub | 4 years ago | raimi
    java.lang.IllegalStateException: Socket factory must implement SchemeLayeredSocketFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    'Socket not created by this factory' with DW v1.1.0

    Google Groups | 2 months ago | Chris Charlton
    java.lang.IllegalStateException: Socket not created by this factory
  6. 0

    Socket not created by this factory

    GitHub | 3 months ago | vreascul
    java.lang.IllegalStateException: Socket not created by this factory
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 not obtained from this manager

    at org.apache.http.util.Asserts.check()
  2. Apache Http
    Asserts.check
    1. org.apache.http.util.Asserts.check(Asserts.java:34)
    1 frame
  3. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.releaseConnection(ThreadSafeClientConnManager.java:252)
    2. org.apache.http.impl.conn.AbstractClientConnAdapter.abortConnection(AbstractClientConnAdapter.java:338)
    3. org.apache.http.impl.client.DefaultRequestDirector.abortConnection(DefaultRequestDirector.java:1119)
    4. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:590)
    5. org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:858)
    6. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:76)
    7. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:97)
    8. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:58)
    8 frames
  4. AWS SDK for Java - Core
    AmazonHttpClient.execute
    1. com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:262)
    2. com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:169)
    2 frames
  5. AWS Java SDK for Amazon EC2
    AmazonEC2Client.describeRegions
    1. com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:5684)
    2. com.amazonaws.services.ec2.AmazonEC2Client.describeRegions(AmazonEC2Client.java:768)
    3. com.amazonaws.services.ec2.AmazonEC2Client.describeRegions(AmazonEC2Client.java:4534)
    3 frames
  6. hudson.plugins.ec2
    AmazonEC2Cloud$DescriptorImpl.doFillRegionItems
    1. hudson.plugins.ec2.AmazonEC2Cloud$DescriptorImpl.doFillRegionItems(AmazonEC2Cloud.java:96)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  8. Stapler
    Stapler.service
    1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
    2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
    3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
    4. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:104)
    5. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
    6. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
    7. org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
    8. org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:234)
    9. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
    10. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
    11. org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
    12. org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
    13. org.kohsuke.stapler.Stapler.service(Stapler.java:159)
    13 frames
  9. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    1 frame
  10. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491)
    2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1074)
    2 frames
  11. Hudson
    PluginServletFilter.doFilter
    1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
    2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
    2 frames
  12. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
    1 frame
  13. Hudson
    CrumbFilter.doFilter
    1. hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
    1 frame
  14. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
    1 frame
  15. Hudson
    HudsonFilter.doFilter
    1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    2. hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    3. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
    3 frames
  16. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
    1 frame
  17. Hudson
    CharacterEncodingFilter.doFilter
    1. hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
    1 frame
  18. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
    1 frame