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

Solutions on the web

via Spring JIRA by Ilayaperumal Gopinathan, 1 year ago
118 - Error starting ApplicationContext. To display the auto-configuration report enabled debug logging (start with --debug) 15:56:08,854 INFO main listener.ClasspathLoggingApplicationListener:54 - Application failed to start with classpath
java.net.ConnectException: Connection refused	at java.net.PlainSocketImpl.socketConnect(Native Method)	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.SocksSocketImpl.connect(SocksSocketImpl.java:391)	at java.net.Socket.connect(Socket.java:579)	at java.net.Socket.connect(Socket.java:528)	at java.net.Socket.(Socket.java:425)	at java.net.Socket.(Socket.java:208)	at org.hsqldb.server.HsqlSocketFactory.createSocket(Unknown Source)	at org.hsqldb.ClientConnection.openConnection(Unknown Source)	at org.hsqldb.ClientConnection.initConnection(Unknown Source)	at org.hsqldb.ClientConnection.(Unknown Source)	at org.hsqldb.jdbc.JDBCConnection.(Unknown Source)	at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)	at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)	at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)	at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)	at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:702)	at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:634)	at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:488)	at org.apache.tomcat.jdbc.pool.ConnectionPool.(ConnectionPool.java:144)	at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:116)	at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:103)	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:127)	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)	at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:280)	at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:320)	at org.springframework.batch.support.DatabaseType.fromMetaData(DatabaseType.java:95)	at org.springframework.batch.item.database.support.SqlPagingQueryProviderFactoryBean.getObject(SqlPagingQueryProviderFactoryBean.java:155)	at org.springframework.batch.admin.service.JdbcSearchableJobExecutionDao.getPagingQueryProvider(JdbcSearchableJobExecutionDao.java:134)	at org.springframework.batch.admin.service.JdbcSearchableJobExecutionDao.getPagingQueryProvider(JdbcSearchableJobExecutionDao.java:113)	at org.springframework.batch.admin.service.JdbcSearchableJobExecutionDao.getPagingQueryProvider(JdbcSearchableJobExecutionDao.java:104)	at org.springframework.batch.admin.service.JdbcSearchableJobExecutionDao.afterPropertiesSet(JdbcSearchableJobExecutionDao.java:92)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:700)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:658)	at org.springframework.boot.SpringApplication.run(SpringApplication.java:355)	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:129)	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:116)	at org.springframework.xd.dirt.server.LauncherApplication.run(LauncherApplication.java:76)	at org.springframework.xd.dirt.server.LauncherApplication.main(LauncherApplication.java:56)