Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1erlDv-0002fL-UH for pgsql-jdbc@arkaria.postgresql.org; Fri, 02 Mar 2018 13:59:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1erlDv-0004ju-1b for pgsql-jdbc@arkaria.postgresql.org; Fri, 02 Mar 2018 13:59:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1erlDu-0004jk-Pj for pgsql-jdbc@lists.postgresql.org; Fri, 02 Mar 2018 13:59:46 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1erlDs-0002Nl-7T for pgsql-jdbc@postgresql.org; Fri, 02 Mar 2018 13:59:45 +0000 Received: by mail-pf0-x241.google.com with SMTP id f80so4031859pfa.8 for ; Fri, 02 Mar 2018 05:59:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:mime-version :content-transfer-encoding; bh=WvgOOlTH+BJTRvC15D8VvFxXHMKH63wpDpl4hvCLI+8=; b=l5x4QuXrN1100d1Irwv0d6Mhdl+4edgLF21T8khM4prwcdrYFJmGIiDQwhkHTshYn3 wMrEzkj6pF1XQoYyGzBMQx7cWkYpvdxx6LFuEqpI4iNSX3aPaQ01EGeAkPBe/i2KYXRU +fN+oAq85c0gzF4RWuhLCixvd9Uh0EClKyHCPf0/p9d0dOGDP7eogX99oaMqPw2eFZaF HiAeTWpFRBuIK4cYViRdYUcx4xImfwMNQ2OMlXLsY5Zr5uTMsZ76svO4M2kFp2eaebzL nagzllYvF2dr29KaiKMyMOAJGV5GbzhPU5IRoiie+RkqdhM+kMEjyac8eu+VJeLHwvGg XP/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=WvgOOlTH+BJTRvC15D8VvFxXHMKH63wpDpl4hvCLI+8=; b=iUWXwzUKIAiikJAmJbpZ5A+KWQpYE/oP1pKv1rDJ9ypKOv+JncgUKfKAeQ0huj0H45 a+RFXkyJizVMbbCaT15hFhlwLtSMVr6ya1LAQk1JJpvAjfol9Uzj1EhBpKiff8ojTFnh VOSsUSfFTAhLfsYSroDFlvmLGnWsetPCHWj9sesIiS2cPgfL7aCdoGUmgrUvI2uUpZcr JekHLm5/ek0mGSY9mqptGZoc89myMJ1E56V65UUO6AhJDh4BvUkBUcXXzd94ZrZDwe1C 9YHJhAvNdttfs0Va0Dw4qD3a9hS1FH+N4Vx1wpiN8RMx2rUbgYhvALJ09ptxnSPhAkwz HeKA== X-Gm-Message-State: APf1xPDKASg7+COdzrsxQctf5iDhHhZyxWnWSP6/UQy7dElhAvL3VYU7 aKhfM/t0+vfGE/M3XRE6wh4= X-Google-Smtp-Source: AG47ELuTtTf5gOnW6x/2/hSF+MiID9FqKz2rdrhum66mzcN3HCJfb15USyLA/JqsFrKCmVmAEn1Xng== X-Received: by 10.98.161.10 with SMTP id b10mr5765722pff.240.1519999181436; Fri, 02 Mar 2018 05:59:41 -0800 (PST) Received: from roblaptop (d49-188-35-108.sun1.vic.optusnet.com.au. [49.188.35.108]) by smtp.gmail.com with ESMTPSA id w83sm13020137pfi.171.2018.03.02.05.59.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Mar 2018 05:59:40 -0800 (PST) Message-ID: <1519999174.3191.5.camel@gmail.com> Subject: Re: Errors encountered when running JDBC testcases from OptionalTestSuite against vPG10.2 From: rob stone To: cathryn <9333724@qq.com>, pgsql-jdbc Date: Sat, 03 Mar 2018 00:59:34 +1100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.2-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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