java.sql.SQLException

unable to get a connection from pool of a PoolingDataSource containing an XAPool of resource jdbc/jbpm with 0 connection(s) (0 still available)

Samebug tips9

Check if your MongoDB is available.


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 web13172

  • unable to get a connection from pool of a PoolingDataSource containing an XAPool of resource jdbc/jbpm with 0 connection(s) (0 still available)
  • via jboss.org by Unknown author, 1 year ago
    unable to get a connection from pool of a PoolingDataSource containing an XAPool of resource jdbc/jbpm-ds with 0 connection(s) (0 still available)
  • unable to get a connection from pool of a PoolingDataSource containing an XAPool of resource jdbc/jbpm-ds with 1 connection(s) (1 still available)
  • Stack trace

    • java.sql.SQLException: unable to get a connection from pool of a PoolingDataSource containing an XAPool of resource jdbc/jbpm with 0 connection(s) (0 still available) at bitronix.tm.resource.jdbc.PoolingDataSource.getConnection(PoolingDataSource.java:262)[btm-2.1.4.jar:2.1.4] at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:141)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:194)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:178)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:505)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1750)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:920)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:72)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final] at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final] at org.jbpm.vertx.VerticleServiceProvider.configureServices(VerticleServiceProvider.java:141)[__vertx~e90ebbed-eb74-4894-b19a-1d48034ff951~__vertx/:na] at org.jbpm.vertx.VerticleServiceProvider.<init>(VerticleServiceProvider.java:72)[__vertx~e90ebbed-eb74-4894-b19a-1d48034ff951~__vertx/:na] at org.jbpm.vertx.VerticleServiceProvider.configure(VerticleServiceProvider.java:46)[__vertx~e90ebbed-eb74-4894-b19a-1d48034ff951~__vertx/:na] at org.jbpm.vertx.JbpmVerticle.start(JbpmVerticle.java:48)[__vertx~e90ebbed-eb74-4894-b19a-1d48034ff951~__vertx/:na] at org.vertx.java.platform.Verticle.start(Verticle.java:82)[vertx-platform-2.1.5.jar:na] at org.vertx.java.platform.impl.DefaultPlatformManager$21.run(DefaultPlatformManager.java:1758)[vertx-platform-2.1.5.jar:na] at org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:175)[vertx-core-2.1.5.jar:na] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:370)[netty-all-4.0.21.Final.jar:4.0.21.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)[netty-all-4.0.21.Final.jar:4.0.21.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)[netty-all-4.0.21.Final.jar:4.0.21.Final] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_45] Caused by: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:207)[postgresql-9.2-1003-jdbc4.jar:na] at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)[postgresql-9.2-1003-jdbc4.jar:na] at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:136)[postgresql-9.2-1003-jdbc4.jar:na] at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29)[postgresql-9.2-1003-jdbc4.jar:na] at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21)[postgresql-9.2-1003-jdbc4.jar:na] at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:31)[postgresql-9.2-1003-jdbc4.jar:na] at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)[postgresql-9.2-1003-jdbc4.jar:na] at org.postgresql.Driver.makeConnection(Driver.java:393)[postgresql-9.2-1003-jdbc4.jar:na] at org.postgresql.Driver.connect(Driver.java:267)[postgresql-9.2-1003-jdbc4.jar:na] at java.sql.DriverManager.getConnection(DriverManager.java:664)[na:1.8.0_45] at java.sql.DriverManager.getConnection(DriverManager.java:247)[na:1.8.0_45] at org.postgresql.ds.common.BaseDataSource.getConnection(BaseDataSource.java:97)[postgresql-9.2-1003-jdbc4.jar:na] at org.postgresql.xa.jdbc3.AbstractJdbc3XADataSource.getXAConnection(AbstractJdbc3XADataSource.java:54)[postgresql-9.2-1003-jdbc4.jar:na] at org.postgresql.xa.jdbc3.AbstractJdbc3XADataSource.getXAConnection(AbstractJdbc3XADataSource.java:39)[postgresql-9.2-1003-jdbc4.jar:na] at bitronix.tm.resource.jdbc.PoolingDataSource.createPooledConnection(PoolingDataSource.java:341)[btm-2.1.4.jar:2.1.4] at bitronix.tm.resource.common.XAPool.createPooledObject(XAPool.java:283)[btm-2.1.4.jar:2.1.4] at bitronix.tm.resource.common.XAPool.grow(XAPool.java:391)[btm-2.1.4.jar:2.1.4] at bitronix.tm.resource.common.XAPool.getInPool(XAPool.java:371)[btm-2.1.4.jar:2.1.4] at bitronix.tm.resource.common.XAPool.getConnectionHandle(XAPool.java:123)[btm-2.1.4.jar:2.1.4] at bitronix.tm.resource.common.XAPool.getConnectionHandle(XAPool.java:91)[btm-2.1.4.jar:2.1.4] at bitronix.tm.resource.jdbc.PoolingDataSource.getConnection(PoolingDataSource.java:258)[btm-2.1.4.jar:2.1.4] ... 22 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method)[na:1.8.0_45] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)[na:1.8.0_45] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[na:1.8.0_45] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[na:1.8.0_45] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[na:1.8.0_45] at java.net.Socket.connect(Socket.java:589)[na:1.8.0_45] at java.net.Socket.connect(Socket.java:538)[na:1.8.0_45] at org.postgresql.core.PGStream.<init>(PGStream.java:60)[postgresql-9.2-1003-jdbc4.jar:na] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:101)[postgresql-9.2-1003-jdbc4.jar:na] ... 42 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 user
    Once, 1 year ago
    39 times, 1 week ago
    2 times, 2 months ago
    6 times, 9 months ago
    Unknown user
    Once, 1 year ago
    483 more bugmates