Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- at com.excelfore.api.impl.TomcatJ2EEProvider.createDataSource(TomcatJ2EEProvider.java:89)
- at com.excelfore.util.ThreadContext.<clinit>(ThreadContext.java:220)
- ... 17 more
- Caused by: java.sql.SQLException
- at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:734)
- at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:645)
- at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:466)
- at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:143)
- at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:115)
- at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:102)
- at org.apache.tomcat.jdbc.pool.DataSourceFactory.createDataSource(DataSourceFactory.java:553)
- at org.apache.tomcat.jdbc.pool.DataSourceFactory.createDataSource(DataSourceFactory.java:542)
- ... 23 more
- Caused by: java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy10.getPooledConnection(Unknown Source)
- at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:251)
- at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:198)
- at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:711)
- ... 30 more
- Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.excelfore.api.impl.PostgresDBProvider.lambda$null$0(PostgresDBProvider.java:360)
- at com.excelfore.alert.Alerter.wrapR(Alerter.java:100)
- at com.excelfore.api.impl.PostgresDBProvider.lambda$makeDataSourceForPool$1(PostgresDBProvider.java:360)
- ... 34 more
- Caused by: org.postgresql.util.PSQLException: Connection to localhost:5432 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:262)
- at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:52)
- at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:216)
- at org.postgresql.Driver.makeConnection(Driver.java:404)
- at org.postgresql.Driver.connect(Driver.java:272)
- at java.sql.DriverManager.getConnection(DriverManager.java:664)
- at java.sql.DriverManager.getConnection(DriverManager.java:247)
Advertisement
Add Comment
Please, Sign In to add comment