Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via Stack Overflow by LittlePanda

    To restart the Selenium Webdriver mock browser in a testcase, first use driver.close() and then reinstantiate the driver.

  2. ,
    Expert tip

    spring-data-redis requires redis 2.6+ to work properly.

Solutions on the web

via GitHub by chrisw14
, 5 months ago
IJ031084: Unable to create connection
via Server Fault by Marcelo Martinez
, 5 months ago
IJ031084: Unable to create connection
via Stack Overflow by Mark Rotteveel
, 1 year ago
via Stack Overflow by Patrick Teixeira Felix
, 1 year ago
IJ031084: Unable to create connection
via Stack Overflow by 99Sono
, 11 months ago
java.net.ConnectException: Connection refused: connect	at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)	at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)	at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)	at java.net.AbstractPlainSocketImpl.connect(Unknown Source)	at java.net.PlainSocketImpl.connect(Unknown Source)	at java.net.SocksSocketImpl.connect(Unknown Source)	at java.net.Socket.connect(Unknown Source)	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211)	at com.mysql.jdbc.MysqlIO.(MysqlIO.java:300)	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2251)	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2284)	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2083)	at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:806)	at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)	at java.lang.reflect.Constructor.newInstance(Unknown Source)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:410)	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:328)	at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:321)	at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:352)	at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:287)	at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1320)	at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:496)	at org.jboss.jca.core.connectionmanager.pool.AbstractPool.internalTestConnection(AbstractPool.java:1052)	at org.jboss.jca.core.connectionmanager.pool.strategy.OnePool.testConnection(OnePool.java:93)	at org.jboss.as.connector.subsystems.common.pool.PoolOperations$TestConnectionInPool.invokeCommandOn(PoolOperations.java:234)	at org.jboss.as.connector.subsystems.common.pool.PoolOperations$1.execute(PoolOperations.java:90)	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)	at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)	at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1329)	at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:400)	at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:222)	at org.jboss.as.domain.http.server.DomainApiHandler.handleRequest(DomainApiHandler.java:219)	at io.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:72)	at org.jboss.as.domain.http.server.security.SubjectDoAsHandler$1.run(SubjectDoAsHandler.java:72)	at org.jboss.as.domain.http.server.security.SubjectDoAsHandler$1.run(SubjectDoAsHandler.java:68)	at java.security.AccessController.doPrivileged(Native Method)	at javax.security.auth.Subject.doAs(Unknown Source)	at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:149)	at org.jboss.as.domain.http.server.security.SubjectDoAsHandler.handleRequest(SubjectDoAsHandler.java:68)	at org.jboss.as.domain.http.server.security.SubjectDoAsHandler.handleRequest(SubjectDoAsHandler.java:63)	at io.undertow.server.handlers.BlockingHandler.handleRequest(BlockingHandler.java:56)	at org.jboss.as.domain.http.server.DomainApiCheckHandler.handleRequest(DomainApiCheckHandler.java:95)	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:805)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)	at org.jboss.threads.JBossThread.run(JBossThread.java:320)