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. ,

    Make sure your server started correctly and is listening correctly on the correct port.

  2. ,
    Expert tip

    Firewall might be blocking your connection, or MySQL it's not running on your server machine.

Solutions on the web

via Stack Overflow by JohannesR
, 1 year ago
via Stack Overflow by sboubuntu
, 2 years ago
Unable to execute Sonar
via Stack Overflow by Dominique
, 2 years ago
via ambracode.com by Unknown author, 2 years ago
via gmane.org by Unknown author, 2 years ago
java.net.ConnectException: Connection refused: connect	at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)	at java.net.Socket.connect(Socket.java:579)	at org.h2.util.NetUtils.createSocket(NetUtils.java:119)	at org.h2.util.NetUtils.createSocket(NetUtils.java:100)	at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:95)	at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:403)	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:295)	at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:105)	at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:90)	at org.h2.Driver.connect(Driver.java:73)	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)	at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)	at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)	at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)	at org.apache.commons.dbcp.BasicDataSource.getLogWriter(BasicDataSource.java:1098)	at org.apache.commons.dbcp.BasicDataSourceFactory.createDataSource(BasicDataSourceFactory.java:350)	at org.sonar.core.persistence.DefaultDatabase.initDatasource(DefaultDatabase.java:135)	at org.sonar.core.persistence.DefaultDatabase.start(DefaultDatabase.java:72)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)	at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)	at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)	at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)	at org.picocontainer.behaviors.Stored.start(Stored.java:110)	at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1015)	at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1008)	at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:766)	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:91)	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)	at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92)	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74)	at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)	at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)	at java.security.AccessController.doPrivileged(Native Method)	at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)	at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)	at org.sonar.runner.impl.BatchLauncherMain.execute(BatchLauncherMain.java:41)	at org.sonar.runner.impl.BatchLauncherMain.main(BatchLauncherMain.java:59)