有人成功地将 Compose 提供的 PostgreSQL 连接到 Eclipse 的数据库查看器了吗?

Has somebody successful connected Compose provided PostgreSQL to Eclipse's database viewer?

我正在尝试这样做,但得到了 Connection failed with unspecified error,您可以在主题末尾看到完整的堆栈跟踪。当我使用 pgAdmin III 它工作完美,使用此驱动程序的代码连接 9.4-1206-jdbc41 没问题,只有 Eclipse 不工作。

我尝试了很多驱动程序 4.0、4.1、4.2,但没有任何帮助。

我在这里使用以下格式:

Database: compose
URL: postgres://<username>:<password>@aws.......dblayer.com:10336/compose
Username: <username>
Password: <password>

Eclipse 版本:Luna 服务版本 2 (4.4.2)

异常的完整堆栈跟踪:

java.lang.Exception: Connection failed with unspecified error.
at org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:110)
at org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:54)
at org.eclipse.datatools.enablement.internal.postgresql.PostgreSQLJDBCConnection.<init>(PostgreSQLJDBCConnection.java:47)
at org.eclipse.datatools.enablement.internal.postgresql.PostgreSQLConnectionFactory.createConnection(PostgreSQLConnectionFactory.java:51)
at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359)
at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76)
at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

好的,我的 url 格式错误,正确的格式如下:

jdbc:postgresql://<host>:<port>/<database>

归功于此线程:Connect to Postgresql 9.2 from Eclipse Data Tools Platform