AnsweredAssumed Answered

org.h2.jdbc.JdbcSQLException: Connection is broken: 'java.net.ConnectException: Connection refused: connect: localhost' [90067-1

Question asked by udhayakumar_t@hcl.com on Jul 24, 2013
Latest reply on Mar 10, 2014 by jbarrez
Currently i am not using H2 database, i modified the db.properties to use mysql. However, it still tries to access the H2 database and throws the following exception

org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused: connect: localhost" [90067-168]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
   at org.h2.message.DbException.get(DbException.java:158)
   at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:399)
   at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:287)
   at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:108)
   at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:92)
   at org.h2.Driver.connect(Driver.java:72)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.doGetConnection(UnpooledDataSource.java:181)
   at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.doGetConnection(UnpooledDataSource.java:176)
   at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.getConnection(UnpooledDataSource.java:80)
   at org.apache.ibatis.datasource.pooled.PooledDataSource.popConnection(PooledDataSource.java:371)
   at org.apache.ibatis.datasource.pooled.PooledDataSource.getConnection(PooledDataSource.java:80)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initDatabaseType(ProcessEngineConfigurationImpl.java:525)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initDataSource(ProcessEngineConfigurationImpl.java:487)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.init(ProcessEngineConfigurationImpl.java:332)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:310)
   at com.hcl.viacom.activiti.ActivitiDeployer.main(ActivitiDeployer.java:26)
Caused by: java.net.ConnectException: Connection refused: connect
   at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
   at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
   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 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:93)
   at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:395)
   

Outcomes