java.net.ConnectException

Connection refused: localhost" [90067-190]

Samebug tips9

Check if your MongoDB is available.


rprp

host port isnt set

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web5776

  • via GitHub by ayakix
    ,
  • via GitHub by deepu105
    ,
  • Stack trace

    • java.net.ConnectException: Connection refused: localhost" [90067-190] at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)[h2-1.4.190.jar:1.4.190] at org.h2.message.DbException.get(DbException.java:168)[h2-1.4.190.jar:1.4.190] at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:452)[h2-1.4.190.jar:1.4.190] at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:329)[h2-1.4.190.jar:1.4.190] at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:107)[h2-1.4.190.jar:1.4.190] at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:91)[h2-1.4.190.jar:1.4.190] at org.h2.Driver.connect(Driver.java:72)[h2-1.4.190.jar:1.4.190] at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:190)[h2-1.4.190.jar:1.4.190] at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:353)[h2-1.4.190.jar:1.4.190] at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:385)[h2-1.4.190.jar:1.4.190] at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:227)[h2-1.4.190.jar:1.4.190] at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199)[h2-1.4.190.jar:1.4.190] at org.nkjmlab.util.rdb.RDBUtilWithConnectionPool.getConnection(RDBUtilWithConnectionPool.java:26)[classes/:?] at org.nkjmlab.util.rdb.RDBUtil.executeUpdate(RDBUtil.java:85)[classes/:?] at org.nkjmlab.util.rdb.RDBUtil.dropIfExists(RDBUtil.java:208)[classes/:?] at org.nkjmlab.jsonrpc.photorogaining.PhotoRogainingService.<clinit>(PhotoRogainingService.java:22)[classes/:?] at org.nkjmlab.jsonrpc.photorogaining.WebSocketManager.lambda$0(WebSocketManager.java:50)[classes/:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[?:1.8.0_77] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[?:1.8.0_77] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[?:1.8.0_77] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[?:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_77] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_77] Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method)[?:1.8.0_77] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)[?:1.8.0_77] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[?:1.8.0_77] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[?:1.8.0_77] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[?:1.8.0_77] at java.net.Socket.connect(Socket.java:589)[?:1.8.0_77] at org.h2.util.NetUtils.createSocket(NetUtils.java:122)[h2-1.4.190.jar:1.4.190] at org.h2.util.NetUtils.createSocket(NetUtils.java:102)[h2-1.4.190.jar:1.4.190] at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:114)[h2-1.4.190.jar:1.4.190] at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:448)[h2-1.4.190.jar:1.4.190] ... 21 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    raytestraytest
    Once,
    slashslash
    Once,
    tvrmsmithtvrmsmith
    13 times, last one
    batwalrus76batwalrus76
    4 times, last one
    483 more bugmates