CUBA平台postgresql连接超时

时间:2016-12-29 05:37:37

标签: java database postgresql cuba-platform

我正在尝试将我的cuba平台应用程序连接到postgresql数据库。早些时候它运作良好。但是现在它抛出了一个异常,即连接超时我将所有配置与以前完全相同但是它不起作用。

org.postgresql.util.PSQLException: Connection attempt timed out.
at org.postgresql.Driver$ConnectThread.getResult(Driver.java:368)
at org.postgresql.Driver.connect(Driver.java:279)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at com.haulmont.studio.backend.e.c.e.c(SourceFile:319)
at com.haulmont.studio.backend.e.c.e.e(SourceFile:261)
at com.haulmont.studio.backend.e.y.j(SourceFile:462)
at com.haulmont.studio.backend.e.y.a(SourceFile:153)
at com.haulmont.studio.backend.e.y.a(SourceFile:131)
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.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at com.haulmont.studio.backend.h.run(SourceFile:62)

postgresql配置

Database URL jdbc:postgresql://********.ciutcoh1pkgg.ap-southeast-1.rds.amazonaws.com:5432/********
Database user *******
Database password *********

用户名和密码都是正确的。

0 个答案:

没有答案