From: rob stone <floriparob@gmail.com>
To: cathryn <9333724@qq.com>
To: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: Errors encountered when running JDBC testcases from OptionalTestSuite against vPG10.2
Date: Sat, 03 Mar 2018 00:59:34 +1100
Message-ID: <1519999174.3191.5.camel@gmail.com> (raw)
In-Reply-To: <tencent_331EEFC93A7B2B8E3297EED1FE23CFF7C607@qq.com>
References: <tencent_331EEFC93A7B2B8E3297EED1FE23CFF7C607@qq.com>
On Thu, 2018-03-01 at 12:48 +0800, cathryn wrote:
> Dear Sir/Mandam
> I am running JDBC testsuites against vPG10.2, but encounter below
> error:
> test:
> [junit] Testsuite:
> org.postgresql.test.jdbc2.optional.OptionalTestSuite
> [junit] Tests run: 58, Failures: 6, Errors: 2, Skipped: 1, Time
> elapsed: 4.175 sec
> [junit] Mar 01, 2018 3:42:42 AM
> org.postgresql.ds.common.BaseDataSource getConnection
> [junit] SEVERE: Failed to create a Non-Pooling DataSource from
> PostgreSQL JDBC Driver 42.2.1 for test at
> jdbc:postgresql://10.143.17.239:5432/test?loggerLevel=null&prepareThr
> eshold=5&preparedStatementCacheQueries=256&preparedStatementCacheSize
> MiB=5&databaseMetadataCacheFields=65536&databaseMetadataCacheFieldsMi
> B=5&defaultRowFetchSize=0&binaryTransfer=true&readOnly=false&binaryTr
> ansferEnable=&binaryTransferDisable=&unknownLength=2147483647&logUncl
> osedConnections=false&disableColumnSanitiser=false&tcpKeepAlive=false
> &loginTimeout=0&connectTimeout=10&socketTimeout=0&cancelSignalTimeout
> =10&receiveBufferSize=-1&sendBufferSize=-1&ApplicationName=PostgreSQL
> JDBC
> Driver&jaasLogin=true&useSpnego=false&gsslib=auto&sspiServiceClass=PO
> STGRES&allowEncodingChanges=false&targetServerType=any&loadBalanceHos
> ts=false&hostRecheckSeconds=10&preferQueryMode=extended&autosave=neve
> r&reWriteBatchedInserts=false: org.postgresql.util.PSQLException:
> Something unusual has occurred to cause the driver to fail. Please
> report this exception.
There is no &user= nor &password= in your connection URL. Maybe they
are required. Depends upon your pg_hba.conf settings.
Setting &loginTimeout=0 may cause a problem. I've never tried that one.
Most of these settings can be defined in your postgresql.conf file.
HTH
Rob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: floriparob@gmail.com, 9333724@qq.com
Subject: Re: Errors encountered when running JDBC testcases from OptionalTestSuite against vPG10.2
In-Reply-To: <1519999174.3191.5.camel@gmail.com>
References: <tencent_331EEFC93A7B2B8E3297EED1FE23CFF7C607@qq.com> <1519999174.3191.5.camel@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox