SonarQube 6.7.1 WEB不能与JDBC 42.1.4一起使用[默认值]

SonarQube 6.7.1 WEB不能与JDBC 42.1.4一起使用[默认值],sonarqube,sonarqube-ops,Sonarqube,Sonarqube Ops,操作系统:Uduntu 16.04 64位LTS SonarQube:6.7.1 PostgreSql:9.5 Java:1.8.0_144 默认SonarQube包含JDBC 42.1.4和web.log中的以下错误: ERROR web[][o.postgresql.Driver] Connection error: org.postgresql.util.PSQLException: The connection attempt failed. at org.postgre

操作系统:Uduntu 16.04 64位LTS SonarQube:6.7.1 PostgreSql:9.5 Java:1.8.0_144

默认SonarQube包含JDBC 42.1.4和web.log中的以下错误:

ERROR web[][o.postgresql.Driver] Connection error:
org.postgresql.util.PSQLException: The connection attempt failed.
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:275)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
        at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:194)
        at org.postgresql.Driver.makeConnection(Driver.java:450)
        at org.postgresql.Driver.connect(Driver.java:252)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
        at org.apache.commons.pool.impl.GenericObjectPool.addObject(GenericObjectPool.java:1617)
        at org.apache.commons.pool.impl.GenericObjectPool.ensureMinIdle(GenericObjectPool.java:1575)
        at org.apache.commons.pool.impl.GenericObjectPool.access$700(GenericObjectPool.java:190)
        at org.apache.commons.pool.impl.GenericObjectPool$Evictor.run(GenericObjectPool.java:1709)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
Caused by: java.net.UnknownHostException: localhost
但当我更新到JDBC4.2驱动程序时,42.2.1运行良好


也许sonarqube的人会看到并修复它。

实际上,sonarqube 6.7.1中打包的PostgreSQL驱动程序版本有一些bug。驱动程序在SonarQube 6.7.2中升级,在编写本文时未发布。 请参阅相关票据: