获取org.postgresql.util.PSQLException:连接尝试失败。错误

时间:2019-01-11 06:13:48

标签: postgresql docker jdbc hikaricp

我正在将Mac与docker容器一起使用,但出现以下错误 在启动服务器时。

  

org.postgresql.util.PSQLException:连接尝试失败。在   org.postgresql.Driver $ ConnectThread.getResult(Driver.java:346)   〜[postgresql-9.1-903.jdbc4.jar :?]在   org.postgresql.Driver.connect(Driver.java:269)   〜[postgresql-9.1-903.jdbc4.jar :?]在   com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:112)   〜[HikariCP-java7-2.4.12.jar :?]在   com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:118)   〜[HikariCP-java7-2.4.12.jar :?]在   com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:341)   〜[HikariCP-java7-2.4.12.jar :?]在   com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:193)   〜[HikariCP-java7-2.4.12.jar :?]在   com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:428)   〜[HikariCP-java7-2.4.12.jar :?]在   com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:499)   〜[HikariCP-java7-2.4.12.jar :?]在   com.zaxxer.hikari.pool.HikariPool。(HikariPool.java:112)   〜[HikariCP-java7-2.4.12.jar :?]在   com.zaxxer.hikari.HikariDataSource。(HikariDataSource.java:72)   〜[HikariCP-java7-2.4.12.jar :?]在   com.pega.platform.datastore.connection.internal.jdbc.JdbcConnectionManager.newHikariDataSource(JdbcConnectionManager.java:188)   〜[datastore.jar :?]在   com.pega.platform.datastore.connection.internal.jdbc.JdbcConnectionManager.initializeDataSource(JdbcConnectionManager.java:147)   〜[datastore.jar :?]在   com.pega.platform.datastore.connection.internal.jdbc.JdbcConnectionManager.newDataSource(JdbcConnectionManager.java:120)   〜[datastore.jar :?]在   com.pega.platform.datastore.connection.internal.jdbc.JdbcConnectionManager.get(JdbcConnectionManager.java:98)   〜[datastore.jar :?]在   com.pega.platform.logicaldatastore.connection.internal.ConnectionBrokerImpl.getConnection(ConnectionBrokerImpl.java:100)   〜[logical-datastore.jar :?]在   com.pega.pegarules.data.internal.store.DataAdminDbNameFinderImpl.selectDbNameDefs(DataAdminDbNameFinderImpl.java:115)   〜[prprivate.jar :?]在   com.pega.pegarules.data.internal.store.DataAdminDbNameFinderImpl.findAllDbNameDefs(DataAdminDbNameFinderImpl.java:95)   〜[prprivate.jar :?]在   com.pega.pegarules.data.internal.store.DataAdminDbNameFinderImpl.findAll(DataAdminDbNameFinderImpl.java:83)   〜[prprivate.jar :?]在   com.pega.pegarules.data.internal.store.ConnectionBrokerAdapter.initializeConfigurationMaps(ConnectionBrokerAdapter.java:201)   〜[prprivate.jar :?]在   com.pega.pegarules.data.internal.store.ConnectionBrokerAdapter.initializeConfigurationMaps(ConnectionBrokerAdapter.java:193)   〜[prprivate.jar :?]在   com.pega.pegarules.data.internal.PRDataProviderImpl.getConnectionBroker(PRDataProviderImpl.java:743)   〜[prprivate.jar :?]在   com.pega.pegarules.data.internal.PRDataProviderImpl.getConnectionManager(PRDataProviderImpl.java:710)   〜[prprivate.jar :?]在   com.pega.pegarules.data.internal.PRDataProviderImpl.isMultiTenantEnvironment(PRDataProviderImpl.java:1381)   〜[prprivate.jar :?]在   com.pega.pegarules.deploy.internal.archive.ParUtilsImpl.setStageDirectory(ParUtilsImpl.java:215)   〜[prprivate.jar :?]在   com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineStartup.initEngine(EngineStartup.java:526)   〜[prprivate.jar :?]在   com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._initEngine_privact(EngineImpl.java:172)   〜[prprivate.jar :?]在   com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.doStartup(EngineImpl.java:145)   〜[prprivate.jar :?]在   com.pega.pegarules.web.servlet.WebAppLifeCycleListener._contextInitialized_privact(WebAppLifeCycleListener.java:216)   〜[prwebj2ee.jar :?]在   com.pega.pegarules.web.servlet.AbstractLifeCycleListener._contextInitialized_privact(AbstractLifeCycleListener.java:159)   〜[prwebj2ee.jar :?]在   com.pega.pegarules.web.servlet.AbstractLifeCycleListener.contextInitialized(AbstractLifeCycleListener.java:73)   〜[prwebj2ee.jar :?]在   sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)   〜[?:1.8.0_101]在   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)   〜[?:1.8.0_101]在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)   〜[?:1.8.0_101]在java.lang.reflect.Method.invoke(Method.java:498)   〜[?:1.8.0_101]在   com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370)   〜[prbootstrap-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]在   com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411)   〜[prbootstrap-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]在   com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)   〜[prbootstrap-api-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]在   com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)   〜[prbootstrap-api-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]在   com.pega.pegarules.internal.web.servlet.WebAppLifeCycleListenerBoot.contextInitialized(WebAppLifeCycleListenerBoot.java:92)   〜[prbootstrap-api-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]在   org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4728)   〜[catalina.jar:8.0.21]在   org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166)   〜[catalina.jar:8.0.21]在   org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)   〜[catalina.jar:8.0.21]在   org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)   〜[catalina.jar:8.0.21]在   org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)   〜[catalina.jar:8.0.21]在   org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)   〜[catalina.jar:8.0.21]在   org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1096)   〜[catalina.jar:8.0.21]在   org.apache.catalina.startup.HostConfig $ DeployDirectory.run(HostConfig.java:1756)   〜[catalina.jar:8.0.21]在   java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)   〜[?:1.8.0_101]在   java.util.concurrent.FutureTask.run(FutureTask.java:266)   〜[?:1.8.0_101]在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)   [?:1.8.0_101]在   java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)   [?:1.8.0_101],位于java.lang.Thread.run(Thread.java:745)[?:1.8.0_101]   由:java.net.SocketException:连接重置在   java.net.SocketInputStream.read(SocketInputStream.java:209)   〜[?:1.8.0_101]在   java.net.SocketInputStream.read(SocketInputStream.java:141)   〜[?:1.8.0_101]

0 个答案:

没有答案