0

我正在尝试将我的 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 *********

用户名和密码都正确。

4

0 回答 0