java.net.ConnectException: Connection refused

ametys.org | 4 months ago
  1. 0

    GitHub comment 502#170575293

    GitHub | 11 months ago | TSGTyson
    me.confuser.banmanager.internal.hikari.pool.HikariPool$PoolInitializationException: Exception during pool initialization: HikariPool-0 - Connection is not available, request timed out after 30000ms.
  2. 0

    Error configuring Hibernate mySQL connection - Connection refused

    Stack Overflow | 7 months ago | FSS
    java.net.ConnectException: Connection refused
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Glassfish: class java.lang.runtimeexception create JNDI or JDBC Pool

    codegur.com | 6 months ago
    java.net.ConnectException: Connection refused
  5. 0

    Could not open Hibernate Session for transaction; nested exception

    Stack Overflow | 2 years ago
    java.net.ConnectException: Connection refused: connect

  1. michallos 1 times, last 1 week ago
  2. treefolk 2 times, last 3 days ago
  3. linxiaolong 18 times, last 4 weeks ago
  4. Kialandei 1 times, last 1 month ago
  5. DoktorDoener666 41 times, last 3 weeks ago
24 more registered users
65 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.net.ConnectException

    Connection refused

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:579)
    7. java.net.Socket.connect(Socket.java:528)
    8. java.net.Socket.<init>(Socket.java:425)
    9. java.net.Socket.<init>(Socket.java:241)
    9 frames
  3. MySQL jdbc
    JDBC4Connection.<init>
    1. com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:257)
    2. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)
    3. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2393)
    4. com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2430)
    5. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2215)
    6. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813)
    7. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    7 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  5. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334)
    3 frames
  6. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:571)
    2. java.sql.DriverManager.getConnection(DriverManager.java:215)
    2 frames
  7. Commons DBCP
    PoolableConnectionFactory.makeObject
    1. org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
    2. org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
    2 frames
  8. Commons Pool
    GenericObjectPool.borrowObject
    1. org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)
    1 frame
  9. Commons DBCP
    PoolingDataSource.getConnection
    1. org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
    1 frame
  10. org.ametys.runtime
    AuthenticateAction._checkAuth
    1. org.ametys.runtime.datasource.ConnectionHelper.getConnection(ConnectionHelper.java:98)
    2. org.ametys.runtime.plugins.core.user.jdbc.ModifiableCredentialsAwareJdbcUsersManager.checkCredentials(ModifiableCredentialsAwareJdbcUsersManager.java:101)
    3. org.ametys.runtime.plugins.core.authentication.UsersManagerAuthentication.login(UsersManagerAuthentication.java:55)
    4. org.ametys.runtime.authentication.AuthenticateAction._checkAuth(AuthenticateAction.java:158)
    4 frames
  11. org.ametys.web
    WebAuthenticateAction._checkAuth
    1. org.ametys.web.WebAuthenticateAction._checkAuth(WebAuthenticateAction.java:69)
    1 frame
  12. org.ametys.runtime
    AuthenticateAction.act
    1. org.ametys.runtime.authentication.AuthenticateAction.act(AuthenticateAction.java:80)
    1 frame
  13. org.apache.cocoon
    CocoonServlet.service
    1. org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120)
    2. org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
    3. org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
    4. org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    5. org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
    6. org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    7. org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
    8. org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
    9. org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
    10. org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
    11. org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
    12. org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
    13. org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
    14. org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    15. org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
    16. org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    17. org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
    18. org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
    19. org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
    20. org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
    21. org.apache.cocoon.Cocoon.process(Cocoon.java:699)
    22. org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1159)
    22 frames
  14. org.ametys.runtime
    RuntimeServlet.service
    1. org.ametys.runtime.servlet.RuntimeServlet._doService(RuntimeServlet.java:135)
    2. org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:92)
    2 frames
  15. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    1 frame
  16. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    10 frames
  17. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    3 frames
  18. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:724)
    3 frames