Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XsZeh-0007tI-Tu for pgsql-jdbc@arkaria.postgresql.org; Sun, 23 Nov 2014 16:04:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XsZeg-00024K-O0 for pgsql-jdbc@arkaria.postgresql.org; Sun, 23 Nov 2014 16:04:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XsZee-00024B-Dx for pgsql-jdbc@postgresql.org; Sun, 23 Nov 2014 16:04:52 +0000 Received: from omr-m3.mx.aol.com ([64.12.233.221]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XsZeV-00055y-DD for pgsql-jdbc@postgresql.org; Sun, 23 Nov 2014 16:04:50 +0000 Received: from mtaomg-aaa02.mx.aol.com (mtaomg-aaa02.mx.aol.com [172.27.1.228]) by omr-m3.mx.aol.com (Outbound Mail Relay) with ESMTP id C5CD0380000A1 for ; Sun, 23 Nov 2014 11:04:39 -0500 (EST) Received: from core-lpa02b.mail.aol.com (core-lpa02.mail.aol.com [10.76.11.12]) by mtaomg-aaa02.mx.aol.com (OMAG/Core Interface) with ESMTP id 5E51738000083 for ; Sun, 23 Nov 2014 11:04:39 -0500 (EST) To: pgsql-jdbc@postgresql.org Subject: Having issues with tests X-MB-Message-Source: WebUI X-MB-Message-Type: User MIME-Version: 1.0 From: rapidtransit440@aol.com Content-Type: multipart/alternative; boundary="--------MB_8D1D54E513198C2_E88_137DB8_webmail-m290.sysops.aol.com" X-Mailer: AOL Webmail STANDARD Received: from 173.76.159.184 by webmail-m290.sysops.aol.com (64.12.152.48) with HTTP (WebMailUI); Sun, 23 Nov 2014 11:04:38 -0500 Message-Id: <8D1D54E50A52767-E88-66B80@webmail-m290.sysops.aol.com> X-Originating-IP: [173.76.159.184] Date: Sun, 23 Nov 2014 11:04:38 -0500 x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20140625; t=1416758679; bh=x7HBKsrQzQa+M4zu+WzYJ6GKC0ZSVzub5VNImLQvqtw=; h=From:To:Subject:Message-Id:Date:MIME-Version:Content-Type; b=J4aWfrUOVaQsTFzqXgeYj0Gi1sbiwti04Sy5C+F2acy8U+7sUk6UC+D8yaQlaM7Jw 9kuPPqLSAS2lfS8UNLMj83P2YFdrbM+BK9IgnNzWjWuAOfFAofVD/InalQRbUoNCr4 cN7mlZ3mk9ehelwhQesQO2yaDybSXqNAL1ge7Yvw= x-aol-sid: 3039ac1b01e4547205974a0e X-Pg-Spam-Score: 1.0 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org This is a multi-part message in MIME format. ----------MB_8D1D54E513198C2_E88_137DB8_webmail-m290.sysops.aol.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" I=20recently=20forked=20Postgresql=20JDBC=20=20to=20use=20some=20unsafe=20method= s=20to=20get=20char=20arrays=0A=0A=0AThis=20was=20before:=0A=20=2041.8%=20-=2046= 2=20ms=20-=204=20inv.=20com.zaxxer.hikari.proxy.ConnectionJavassistProxy.prepare= Statement=0A=20=2041.8%=20-=20462=20ms=20-=204=20inv.=20com.zaxxer.hikari.proxy.= ConnectionProxy.prepareStatement=0A=20=2041.8%=20-=20462=20ms=20-=204=20inv.=20j= ava.sql.Connection.prepareStatement=0A=20=2041.8%=20-=20462=20ms=20-=204=20inv.=20= org.postgresql.jdbc2.AbstractJdbc2Connection.prepareStatement=0A=20=2041.8%=20-=20= 462=20ms=20-=204=20inv.=20org.postgresql.jdbc3.AbstractJdbc3Connection.prepareSt= atement=0A=20=2041.8%=20-=20462=20ms=20-=204=20inv.=20org.postgresql.jdbc4.Jdbc4= Connection.prepareStatement=0A=20=2041.8%=20-=20462=20ms=20-=204=20inv.=20org.po= stgresql.jdbc4.Jdbc4PreparedStatement.=0A=20=2041.8%=20-=20462=20ms=20-=20= 4=20inv.=20org.postgresql.jdbc4.Jdbc4PreparedStatement.=0A=20=2041.8%=20-=20= 462=20ms=20-=204=20inv.=20org.postgresql.jdbc4.Jdbc4Statement.=0A=20=2041.= 8%=20-=20462=20ms=20-=204=20inv.=20org.postgresql.jdbc4.AbstractJdbc4Statement.<= init>=0A=20=2041.8%=20-=20462=20ms=20-=204=20inv.=20org.postgresql.jdbc3g.Abstra= ctJdbc3gStatement.=0A=20=2041.8%=20-=20462=20ms=20-=204=20inv.=20org.postg= resql.jdbc3.AbstractJdbc3Statement.=0A=20=2041.8%=20-=20462=20ms=20-=204=20= inv.=20org.postgresql.jdbc2.AbstractJdbc2Statement.=0A=20=2040.3%=20-=2044= 5=20ms=20-=204=20inv.=20org.postgresql.core.v3.QueryExecutorImpl.createParameter= izedQuery=0A=20=2040.3%=20-=20445=20ms=20-=204=20inv.=20org.postgresql.core.v3.Q= ueryExecutorImpl.parseQuery=0A=20=2040.2%=20-=20445=20ms=20-=204=20inv.=20java.l= ang.String.toCharArray=20<------(Yeah=20seriously)=0A=0A=0A=0AI=20forgot=20to=20= print=20the=20after=20but=20the=20after,=20my=20slowest=20method=20was=20StringB= uffer.toString()=20in=20the=20after=0A=0A=0AEven=20before=20and=20after=20my=20c= hanges=20I=20kept=20getting=20failed=20tests=20(I=20skipped=20SSL=20tests=20for=20= now=20because=20I=20still=20can't=20figure=20out=20TestNG's=20@Provider=20annota= tion)=0A=0A=0A=0A=0A1.=20This=20is=20obvious=20I=20can=20fix=20myself:=0A=0A\bui= ld.xml=20(The=20system=20cannot=20find=20the=20file=20specified)=0Ajava.io.FileN= otFoundException:=20\build.xml=20(The=20system=20cannot=20find=20the=20file=20sp= ecified)=0A=09at=20java.io.FileInputStream.open(Native=20Method)=0A=09at=20java.= io.FileInputStream.(FileInputStream.java:138)=0A=09at=20java.io.FileInputS= tream.(FileInputStream.java:93)=0A=09at=20org.postgresql.test.jdbc2.BlobTe= st.compareBlobsLOAPI(BlobTest.java:270)=0A=09at=20org.postgresql.test.jdbc2.Blob= Test.testUploadBlob_LOOP(BlobTest.java:119)=0A=0A=0A2.=20This=20is=20obvious=20I= =20can=20fix=20myself=0A\build.xml=20(The=20system=20cannot=20find=20the=20file=20= specified)=0Ajava.io.FileNotFoundException:=20\build.xml=20(The=20system=20canno= t=20find=20the=20file=20specified)=0A=09at=20java.io.FileInputStream.open(Native= =20Method)=0A=09at=20java.io.FileInputStream.(FileInputStream.java:138)=0A= =09at=20java.io.FileInputStream.(FileInputStream.java:93)=0A=09at=20org.po= stgresql.test.jdbc2.BlobTest.compareBlobs(BlobTest.java:312)=0A=09at=20org.postg= resql.test.jdbc2.BlobTest.testUploadBlob_NATIVE(BlobTest.java:133)=0A=0A=0A=0A=0A= 3.=20No=20clue=0Aexpected=20[0]=20but=20found=20[-1]=0Ajava.lang.AssertionError:= =20expected=20[0]=20but=20found=20[-1]=0A=09at=20org.testng.Assert.fail(Assert.j= ava:94)=0A=09at=20org.testng.Assert.failNotEquals(Assert.java:494)=0A=09at=20org= .testng.Assert.assertEquals(Assert.java:123)=0A=09at=20org.testng.Assert.assertE= quals(Assert.java:370)=0A=09at=20org.testng.Assert.assertEquals(Assert.java:380)= =0A=09at=20org.postgresql.test.jdbc4.PGCopyInputStreamTest.testReadBytesCorrectl= yHandlesEof(PGCopyInputStreamTest.java:45)=0A=0A=0A=0A=0A4.=20This=20one=20is=20= weird=20=20if=20I=20run=20it=20separate=20it=20works=0AERROR:=20could=20not=20de= termine=20data=20type=20of=20parameter=20$1=0Aorg.postgresql.util.PSQLException:= =20ERROR:=20could=20not=20determine=20data=20type=20of=20parameter=20$1=0A=09at=20= org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.= java:2100)=0A=09at=20org.postgresql.core.v3.QueryExecutorImpl.processResults(Que= ryExecutorImpl.java:1839)=0A=09at=20org.postgresql.core.v3.QueryExecutorImpl.exe= cute(QueryExecutorImpl.java:249)=0A=09at=20org.postgresql.jdbc2.AbstractJdbc2Sta= tement.execute(AbstractJdbc2Statement.java:550)=0A=09at=20org.postgresql.jdbc2.A= bstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:418)=0A=09at=20= org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:= 412)=0A=09at=20org.postgresql.test.jdbc2.PreparedStatementTest.testComments(Prep= aredStatementTest.java:406)=0A=0A=0A=0A=0A5.=20This=20one=20is=20weird=20=20if=20= I=20run=20it=20separate=20it=20works=0AERROR:=20could=20not=20determine=20data=20= type=20of=20parameter=20$1=0Aorg.postgresql.util.PSQLException:=20ERROR:=20could= =20not=20determine=20data=20type=20of=20parameter=20$1=0A=09at=20org.postgresql.= core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2100)=0A=09= at=20org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.j= ava:1839)=0A=09at=20org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecut= orImpl.java:249)=0A=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.execute(A= bstractJdbc2Statement.java:550)=0A=09at=20org.postgresql.jdbc2.AbstractJdbc2Stat= ement.executeWithFlags(AbstractJdbc2Statement.java:418)=0A=09at=20org.postgresql= .jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:412)=0A=09at=20= org.postgresql.test.jdbc2.PreparedStatementTest.testDollarQuotes(PreparedStateme= ntTest.java:359)=0A=0A=0A=0A=0A5.=20This=20is=20obvious=0ALarge=20Objects=20may=20= not=20be=20used=20in=20auto-commit=20mode.=0Aorg.postgresql.util.PSQLException:=20= Large=20Objects=20may=20not=20be=20used=20in=20auto-commit=20mode.=0A=09at=20org= .postgresql.largeobject.LargeObjectManager.createLO(LargeObjectManager.java:287)= =0A=09at=20org.postgresql.largeobject.LargeObjectManager.createLO(LargeObjectMan= ager.java:275)=0A=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.setBinarySt= ream(AbstractJdbc2Statement.java:1536)=0A=09at=20org.postgresql.jdbc2.AbstractJd= bc2Statement.setAsciiStream(AbstractJdbc2Statement.java:1467)=0A=09at=20org.post= gresql.test.jdbc2.PreparedStatementTest.doSetAsciiStream(PreparedStatementTest.j= ava:175)=0A=09at=20org.postgresql.test.jdbc2.PreparedStatementTest.testSetAsciiS= tream(PreparedStatementTest.java:79)=0A=0A=0A=0A=0A6.=20No=20clue=0AERROR:=20col= umn=20"bin"=20is=20of=20type=20bytea=20but=20expression=20is=20of=20type=20oid=0A= =20=20Hint:=20You=20will=20need=20to=20rewrite=20or=20cast=20the=20expression.=0A= =20=20Position:=2043=0Aorg.postgresql.util.PSQLException:=20ERROR:=20column=20"b= in"=20is=20of=20type=20bytea=20but=20expression=20is=20of=20type=20oid=0A=20=20H= int:=20You=20will=20need=20to=20rewrite=20or=20cast=20the=20expression.=0A=20=20= Position:=2043=0A=09at=20org.postgresql.core.v3.QueryExecutorImpl.receiveErrorRe= sponse(QueryExecutorImpl.java:2100)=0A=09at=20org.postgresql.core.v3.QueryExecut= orImpl.processResults(QueryExecutorImpl.java:1839)=0A=09at=20org.postgresql.core= .v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:249)=0A=09at=20org.postgres= ql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:550)=0A=09at= =20org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Sta= tement.java:418)=0A=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.executeUp= date(AbstractJdbc2Statement.java:368)=0A=09at=20org.postgresql.test.jdbc2.Prepar= edStatementTest.doSetBinaryStream(PreparedStatementTest.java:168)=0A=09at=20org.= postgresql.test.jdbc2.PreparedStatementTest.testSetBinaryStream(PreparedStatemen= tTest.java:58)=0A=0A=0A=0A=0A7.=20No=20clue=0AShould=20have=20failed=20with=20ty= pe=20mismatch.=0Ajava.lang.AssertionError:=20Should=20have=20failed=20with=20typ= e=20mismatch.=0A=09at=20org.testng.Assert.fail(Assert.java:94)=0A=09at=20org.pos= tgresql.test.jdbc2.PreparedStatementTest.testUnknownSetObject(PreparedStatementT= est.java:768)=0A=0A=0A=0A=0A8.=20No=20clue=0AERROR:=20column=20"data"=20is=20of=20= type=20bytea=20but=20expression=20is=20of=20type=20bigint=0A=20=20Hint:=20You=20= will=20need=20to=20rewrite=20or=20cast=20the=20expression.=0A=20=20Position:=204= 6=0Aorg.postgresql.util.PSQLException:=20ERROR:=20column=20"data"=20is=20of=20ty= pe=20bytea=20but=20expression=20is=20of=20type=20bigint=0A=20=20Hint:=20You=20wi= ll=20need=20to=20rewrite=20or=20cast=20the=20expression.=0A=20=20Position:=2046=0A= =09at=20org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecu= torImpl.java:2100)=0A=09at=20org.postgresql.core.v3.QueryExecutorImpl.processRes= ults(QueryExecutorImpl.java:1839)=0A=09at=20org.postgresql.core.v3.QueryExecutor= Impl.execute(QueryExecutorImpl.java:249)=0A=09at=20org.postgresql.jdbc2.Abstract= Jdbc2Statement.execute(AbstractJdbc2Statement.java:550)=0A=09at=20org.postgresql= .jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:418)=0A= =09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2S= tatement.java:368)=0A=09at=20org.postgresql.test.jdbc2.ServerCursorTest.createRo= ws(ServerCursorTest.java:46)=0A=09at=20org.postgresql.test.jdbc2.ServerCursorTes= t.testBasicFetch(ServerCursorTest.java:54)=0A=0A=0A=0A=0A9.=20No=20clue=0AERROR:= =20column=20"data"=20is=20of=20type=20bytea=20but=20expression=20is=20of=20type=20= bigint=0A=20=20Hint:=20You=20will=20need=20to=20rewrite=20or=20cast=20the=20expr= ession.=0A=20=20Position:=2046=0Aorg.postgresql.util.PSQLException:=20ERROR:=20c= olumn=20"data"=20is=20of=20type=20bytea=20but=20expression=20is=20of=20type=20bi= gint=0A=20=20Hint:=20You=20will=20need=20to=20rewrite=20or=20cast=20the=20expres= sion.=0A=20=20Position:=2046=0A=09at=20org.postgresql.core.v3.QueryExecutorImpl.= receiveErrorResponse(QueryExecutorImpl.java:2100)=0A=09at=20org.postgresql.core.= v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1839)=0A=09at=20org.p= ostgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:249)=0A=09at=20= org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:= 550)=0A=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(Abst= ractJdbc2Statement.java:418)=0A=09at=20org.postgresql.jdbc2.AbstractJdbc2Stateme= nt.executeUpdate(AbstractJdbc2Statement.java:368)=0A=09at=20org.postgresql.test.= jdbc2.ServerCursorTest.createRows(ServerCursorTest.java:46)=0A=09at=20org.postgr= esql.test.jdbc2.ServerCursorTest.testBinaryFetch(ServerCursorTest.java:73)=0A=0A= =0A=0A=0A10.=20No=20clue=0AERROR:=20column=20"data"=20is=20of=20type=20bytea=20b= ut=20expression=20is=20of=20type=20bigint=0A=20=20Hint:=20You=20will=20need=20to= =20rewrite=20or=20cast=20the=20expression.=0A=20=20Position:=2041=0Aorg.postgres= ql.util.PSQLException:=20ERROR:=20column=20"data"=20is=20of=20type=20bytea=20but= =20expression=20is=20of=20type=20bigint=0A=20=20Hint:=20You=20will=20need=20to=20= rewrite=20or=20cast=20the=20expression.=0A=20=20Position:=2041=0A=09at=20org.pos= tgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:21= 00)=0A=09at=20org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecu= torImpl.java:1839)=0A=09at=20org.postgresql.core.v3.QueryExecutorImpl.execute(Qu= eryExecutorImpl.java:249)=0A=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.= execute(AbstractJdbc2Statement.java:550)=0A=09at=20org.postgresql.jdbc2.Abstract= Jdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:418)=0A=09at=20org.p= ostgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java= :368)=0A=09at=20org.postgresql.test.jdbc2.ServerPreparedStmtTest.testBytea(Serve= rPreparedStmtTest.java:230)=0A=0A=0A=0A=0A11.=20No=20clue=0AERROR:=20invalid=20i= nput=20syntax=20for=20integer:=20"test=20string"=0Aorg.postgresql.util.PSQLExcep= tion:=20ERROR:=20invalid=20input=20syntax=20for=20integer:=20"test=20string"=0A=09= at=20org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutor= Impl.java:2100)=0A=09at=20org.postgresql.core.v3.QueryExecutorImpl.processResult= s(QueryExecutorImpl.java:1839)=0A=09at=20org.postgresql.core.v3.QueryExecutorImp= l.execute(QueryExecutorImpl.java:249)=0A=09at=20org.postgresql.jdbc2.AbstractJdb= c2Statement.execute(AbstractJdbc2Statement.java:550)=0A=09at=20org.postgresql.jd= bc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:418)=0A=09= at=20org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2State= ment.java:311)=0A=09at=20org.postgresql.test.jdbc2.ServerPreparedStmtTest.testTy= peChange(ServerPreparedStmtTest.java:286)=0A=0A=0A=0A=0A12.=20Not=20gonna=20fix=20= yet=0ACan't=20invoke=20public=20void=20org.postgresql.test.ssl.SslTest.runTest()= =20throws=20java.lang.Throwable:=20either=20make=20it=20static=20or=20add=20a=20= no-args=20constructor=20to=20your=20class=0Aorg.testng.TestNGException:=20=0ACan= 't=20invoke=20public=20void=20org.postgresql.test.ssl.SslTest.runTest()=20throws= =20java.lang.Throwable:=20either=20make=20it=20static=20or=20add=20a=20no-args=20= constructor=20to=20your=20class=0A=09at=20org.testng.internal.Utils.checkInstanc= eOrStatic(Utils.java:795)=0A=0A=0A13.=20No=20clue=0AERROR:=20column=20"bin"=20is= =20of=20type=20bytea=20but=20expression=20is=20of=20type=20bigint=0A=20=20Hint:=20= You=20will=20need=20to=20rewrite=20or=20cast=20the=20expression.=0A=20=20Positio= n:=2065=0Aorg.postgresql.util.PSQLException:=20ERROR:=20column=20"bin"=20is=20of= =20type=20bytea=20but=20expression=20is=20of=20type=20bigint=0A=20=20Hint:=20You= =20will=20need=20to=20rewrite=20or=20cast=20the=20expression.=0A=20=20Position:=20= 65=0A=09at=20org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(Query= ExecutorImpl.java:2100)=0A=09at=20org.postgresql.core.v3.QueryExecutorImpl.proce= ssResults(QueryExecutorImpl.java:1839)=0A=09at=20org.postgresql.core.v3.QueryExe= cutorImpl.execute(QueryExecutorImpl.java:249)=0A=09at=20org.postgresql.jdbc2.Abs= tractJdbc2Statement.execute(AbstractJdbc2Statement.java:550)=0A=09at=20org.postg= resql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:= 418)=0A=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(Abstrac= tJdbc2Statement.java:368)=0A=09at=20org.postgresql.jdbc2.AbstractJdbc2ResultSet.= insertRow(AbstractJdbc2ResultSet.java:849)=0A=09at=20org.postgresql.test.jdbc2.U= pdateableResultTest.testUpdateStreams(UpdateableResultTest.java:225)=0A=0A=0AIf=20= anyone=20could=20help=20it=20would=20be=20greatly=20appreciated,=20I=20used=20gr= adle=20so=20all=20you=20have=20to=20do=20is:=20"gradlew=20test"=20you=20don't=20= need=20to=20have=20Groovy=20or=20Gradle=20installed=20=0AConnection=20properties= =20are=20set=20in=20src/test/resources/test.properties=0AMy=20repo:=20https://gi= thub.com/RapidTransit/postgres=0A=0A=0A=0A=0A ----------MB_8D1D54E513198C2_E88_137DB8_webmail-m290.sysops.aol.com Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="us-ascii" I=20recently=20forked=20Postgresql=20JDBC=20&n= bsp;to=20use=20some=20unsafe=20methods=20to=20get=20char=20arrays=0A=
=0A

=0A
=0A=0A
This=20was=20before:
=0A=0A
 = ;=2041.8%=20-=20462=20ms=20-=204=20inv.=20com.zaxxer.hikari.proxy.ConnectionJava= ssistProxy.prepareStatement
=0A=0A
 = =2041.8%=20-=20462=20ms=20-=204=20inv.=20com.zaxxer.hikari.proxy.ConnectionProxy= .prepareStatement
=0A=0A
 =2041.8%=20= -=20462=20ms=20-=204=20inv.=20java.sql.Connection.prepareStatement
=0A= =0A
 =2041.8%=20-=20462=20ms=20-=204=20inv.=20or= g.postgresql.jdbc2.AbstractJdbc2Connection.prepareStatement
=0A=0A =2041.8%=20-=20462=20ms=20-=204=20inv.=20org.pos= tgresql.jdbc3.AbstractJdbc3Connection.prepareStatement
=0A=0A
 =2041.8%=20-=20462=20ms=20-=204=20inv.=20org.postgres= ql.jdbc4.Jdbc4Connection.prepareStatement
=0A=0A
 =2041.8%=20-=20462=20ms=20-=204=20inv.=20org.postgresql.jdbc4.Jdbc= 4PreparedStatement.<init>
=0A=0A
&n= bsp;=2041.8%=20-=20462=20ms=20-=204=20inv.=20org.postgresql.jdbc4.Jdbc4PreparedS= tatement.<init>
=0A=0A
 =2041.= 8%=20-=20462=20ms=20-=204=20inv.=20org.postgresql.jdbc4.Jdbc4Statement.<init&= gt;
=0A=0A
 =2041.8%=20-=20462=20ms=20= -=204=20inv.=20org.postgresql.jdbc4.AbstractJdbc4Statement.<init>=0A=0A
 =2041.8%=20-=20462=20ms=20-=204=20in= v.=20org.postgresql.jdbc3g.AbstractJdbc3gStatement.<init>
=0A=0A=
 =2041.8%=20-=20462=20ms=20-=204=20inv.=20org.p= ostgresql.jdbc3.AbstractJdbc3Statement.<init>
=0A=0A
 =2041.8%=20-=20462=20ms=20-=204=20inv.=20org.postgresql.= jdbc2.AbstractJdbc2Statement.<init>
=0A=0A
 =2040.3%=20-=20445=20ms=20-=204=20inv.=20org.postgresql.core.v3.Qu= eryExecutorImpl.createParameterizedQuery
=0A=0A
 =2040.3%=20-=20445=20ms=20-=204=20inv.=20org.postgresql.core.v3.Que= ryExecutorImpl.parseQuery
=0A=0A
 =20= 40.2%=20-=20445=20ms=20-=204=20inv.=20java.lang.String.toCharArray=20<------(= Yeah=20seriously)
=0A
=0A=0A

=0A=
=0A=0A
I=20forgot=20to=20print=20the=20a= fter=20but=20the=20after,=20my=20slowest=20method=20was=20StringBuffer.toString(= )=20in=20the=20after
=0A=0A

=0A
=0A=0A
Even=20before=20and=20after=20my=20chan= ges=20I=20kept=20getting=20failed=20tests=20(I=20skipped=20SSL=20tests=20for=20n= ow=20because=20I=20still=20can't=20figure=20out=20TestNG's=20@Provider=20annotat= ion)
=0A=0A

=0A
=0A=0A
=0A=0A=0A
1= .=20This=20is=20obvious=20I=20can=20fix=20myself:
=0A=0A
=0A
\build.xml=20(The=20system=20cannot=20find=20the=20file=20= specified)
=0A=0A
java.io.FileNotFoundException:=20\build.xml=20(The=20= system=20cannot=20find=20the=20file=20specified)
=0A=0A
=09at=20java.io.FileInputStr= eam.open(Native=20Method)
=0A=0A
=09at=20java.io.FileInputStream.<init>(FileI= nputStream.java:138)
=0A=0A
=09at=20java.io.FileInputStream.<init>(FileInputS= tream.java:93)
=0A=0A
=09at=20org.postgresql.test.jdbc2.BlobTest.compareBlobsLOAPI(= BlobTest.java:270)
=0A=0A
=09at=20org.postgresql.test.jdbc2.BlobTest.testUploadBlob= _LOOP(BlobTest.java:119)
=0A=0A

=0A
=0A=0A
2.=20This=20is=20= obvious=20I=20can=20fix=20myself=0A=0A
\build.xml=20(The=20system=20cannot=20= find=20the=20file=20specified)
=0A=0A
java.io.FileNotFoundException:=20= \build.xml=20(The=20system=20cannot=20find=20the=20file=20specified)
=0A=0A=
=09at=20= java.io.FileInputStream.open(Native=20Method)
=0A=0A
=09at=20java.io.FileInputStrea= m.<init>(FileInputStream.java:138)
=0A=0A
=09at=20java.io.FileInputStream.<= ;init>(FileInputStream.java:93)
=0A=0A
=09at=20org.postgresql.test.jdbc2.BlobTes= t.compareBlobs(BlobTest.java:312)
=0A=0A
=09at=20org.postgresql.test.jdbc2.BlobTest= .testUploadBlob_NATIVE(BlobTest.java:133)
=0A=0A

=0A
=0A=0A
=0A
=0A=0A
3.=20No=20clue
=0A=0A
expected=20[0]=20but=20= found=20[-1]
=0A=0A
java.lang.AssertionError:=20expected=20[0]=20but=20= found=20[-1]
=0A=0A
=09at=20org.testng.Assert.fail(Assert.java:94)
=0A=0A
= =09at=20org.= testng.Assert.failNotEquals(Assert.java:494)
=0A=0A
=09at=20org.testng.Assert.asser= tEquals(Assert.java:123)
=0A=0A
=09at=20org.testng.Assert.assertEquals(Assert.java:= 370)
=0A=0A
=09at=20org.testng.Assert.assertEquals(Assert.java:380)
=0A=0A=09at=20org= .postgresql.test.jdbc4.PGCopyInputStreamTest.testReadBytesCorrectlyHandlesEof(PG= CopyInputStreamTest.java:45)
=0A=0A

=0A
=0A=0A

=0A=0A=0A
4.=20This=20one=20is=20weird=20 if=20I=20run=20it=20separate=20= it=20works
=0A=0A
ERROR:=20could=20not=20determine=20data=20type=20of=20= parameter=20$1
=0A=0A
org.postgresql.util.PSQLException:=20ERROR:=20cou= ld=20not=20determine=20data=20type=20of=20parameter=20$1
=0A=0A
=09at=20org.postgres= ql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2100)=0A=0A
=09<= /span>at=20org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutor= Impl.java:1839)
=0A=0A
=09at=20org.postgresql.core.v3.QueryExecutorImpl.execute(Que= ryExecutorImpl.java:249)
=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement= .execute(AbstractJdbc2Statement.java:550)
=0A=0A
=09at=20org.postgresql.jdbc2.Abstr= actJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:418)
=0A=0A<= div>=09at=20= org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:= 412)
=0A=0A
=09at=20org.postgresql.test.jdbc2.PreparedStatementTest.testComments(Pr= eparedStatementTest.java:406)
=0A=0A

=0A
=0A=0A

=0A=0A=0A
5.=20This=20one=20is=20weird=20 if=20I=20run=20it=20separate=20= it=20works
=0A=0A
ERROR:=20could=20not=20determine=20data=20type=20of=20= parameter=20$1
=0A=0A
org.postgresql.util.PSQLException:=20ERROR:=20cou= ld=20not=20determine=20data=20type=20of=20parameter=20$1
=0A=0A
=09at=20org.postgres= ql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2100)=0A=0A
=09<= /span>at=20org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutor= Impl.java:1839)
=0A=0A
=09at=20org.postgresql.core.v3.QueryExecutorImpl.execute(Que= ryExecutorImpl.java:249)
=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement= .execute(AbstractJdbc2Statement.java:550)
=0A=0A
=09at=20org.postgresql.jdbc2.Abstr= actJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:418)
=0A=0A<= div>=09at=20= org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:= 412)
=0A=0A
=09at=20org.postgresql.test.jdbc2.PreparedStatementTest.testDollarQuote= s(PreparedStatementTest.java:359)
=0A=0A

=0A
=0A=0A

=0A=
=0A=0A
5.=20This=20is=20obvious
=0A=0A
Large=20Objects=20may=20= not=20be=20used=20in=20auto-commit=20mode.
=0A=0A
org.postgresql.util.P= SQLException:=20Large=20Objects=20may=20not=20be=20used=20in=20auto-commit=20mod= e.
=0A=0A
= =09at=20org.postgresql.largeobject.LargeObjectManager.createLO(LargeObjec= tManager.java:287)
=0A=0A
=09at=20org.postgresql.largeobject.LargeObjectManager.cre= ateLO(LargeObjectManager.java:275)
=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc= 2Statement.setBinaryStream(AbstractJdbc2Statement.java:1536)
=0A=0A
=09at=20org.pos= tgresql.jdbc2.AbstractJdbc2Statement.setAsciiStream(AbstractJdbc2Statement.java:= 1467)
=0A=0A
=09at=20org.postgresql.test.jdbc2.PreparedStatementTest.doSetAsciiStre= am(PreparedStatementTest.java:175)
=0A=0A
=09at=20org.postgresql.test.jdbc2.Prepare= dStatementTest.testSetAsciiStream(PreparedStatementTest.java:79)
=0A=0A
=0A
=0A=0A

=0A
=0A=0A
6.=20No=20clue
=0A=0A
= ERROR:=20column=20"bin"=20is=20of=20type=20bytea=20but=20expression=20is=20of=20= type=20oid
=0A=0A
 =20Hint:=20You=20will=20need=20to=20rewrite=20o= r=20cast=20the=20expression.
=0A=0A
 =20Position:=2043
=0A=0A=
org.postgresql.util.PSQLException:=20ERROR:=20column=20"bin"=20is=20of=20ty= pe=20bytea=20but=20expression=20is=20of=20type=20oid
=0A=0A
 =20Hi= nt:=20You=20will=20need=20to=20rewrite=20or=20cast=20the=20expression.
=0A=0A=
 =20Position:=2043
=0A=0A
=09at=20org.postgresql.core.v3.QueryExecutorImp= l.receiveErrorResponse(QueryExecutorImpl.java:2100)
=0A=0A
=09at=20org.postgresql.c= ore.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1839)
=0A=0A=
=09at=20= org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:249)=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statem= ent.java:550)
=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.executeWit= hFlags(AbstractJdbc2Statement.java:418)
=0A=0A
=09at=20org.postgresql.jdbc2.Abstrac= tJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:368)
=0A=0A
<= span=20class=3D"Apple-tab-span"=20style=3D"white-space:pre">=09at=20org.p= ostgresql.test.jdbc2.PreparedStatementTest.doSetBinaryStream(PreparedStatementTe= st.java:168)
=0A=0A
=09at=20org.postgresql.test.jdbc2.PreparedStatementTest.testSet= BinaryStream(PreparedStatementTest.java:58)
=0A=0A

=0A
=0A=0A<= div>
=0A
=0A=0A
7.=20No=20clue
=0A=0A
Should=20have=20faile= d=20with=20type=20mismatch.
=0A=0A
java.lang.AssertionError:=20Should=20= have=20failed=20with=20type=20mismatch.
=0A=0A
=09at=20org.testng.Assert.fail(Asser= t.java:94)
=0A=0A
=09at=20org.postgresql.test.jdbc2.PreparedStatementTest.testUnkno= wnSetObject(PreparedStatementTest.java:768)
=0A=0A

=0A
=0A=0A<= div>
=0A
=0A=0A
8.=20No=20clue
=0A=0A
ERROR:=20column=20"da= ta"=20is=20of=20type=20bytea=20but=20expression=20is=20of=20type=20bigint
=0A= =0A
 =20Hint:=20You=20will=20need=20to=20rewrite=20or=20cast=20the=20ex= pression.
=0A=0A
 =20Position:=2046
=0A=0A
org.postgresql= .util.PSQLException:=20ERROR:=20column=20"data"=20is=20of=20type=20bytea=20but=20= expression=20is=20of=20type=20bigint
=0A=0A
 =20Hint:=20You=20will= =20need=20to=20rewrite=20or=20cast=20the=20expression.
=0A=0A
 =20= Position:=2046
=0A=0A
=09at=20org.postgresql.core.v3.QueryExecutorImpl.receiveError= Response(QueryExecutorImpl.java:2100)
=0A=0A
=09at=20org.postgresql.core.v3.QueryEx= ecutorImpl.processResults(QueryExecutorImpl.java:1839)
=0A=0A
=09at=20org.postgresq= l.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:249)
=0A=0A
= =09at=20org.= postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:550)=
=0A=0A
=09= at=20org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(Abstrac= tJdbc2Statement.java:418)
=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2Statemen= t.executeUpdate(AbstractJdbc2Statement.java:368)
=0A=0A
=09at=20org.postgresql.test.= jdbc2.ServerCursorTest.createRows(ServerCursorTest.java:46)
=0A=0A
=09at=20org.post= gresql.test.jdbc2.ServerCursorTest.testBasicFetch(ServerCursorTest.java:54)=0A=0A

=0A
=0A=0A

=0A
=0A=0A
9.=20No=20clue
= =0A=0A
ERROR:=20column=20"data"=20is=20of=20type=20bytea=20but=20expression=20= is=20of=20type=20bigint
=0A=0A
 =20Hint:=20You=20will=20need=20to=20= rewrite=20or=20cast=20the=20expression.
=0A=0A
 =20Position:=2046<= /div>=0A=0A
org.postgresql.util.PSQLException:=20ERROR:=20column=20"data"=20= is=20of=20type=20bytea=20but=20expression=20is=20of=20type=20bigint
=0A=0A<= div> =20Hint:=20You=20will=20need=20to=20rewrite=20or=20cast=20the=20expres= sion.
=0A=0A
 =20Position:=2046
=0A=0A
=09at=20org.postgresql.core.v3= .QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2100)
=0A=0A=
=09at=20= org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1= 839)
=0A=0A
=09at=20org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorI= mpl.java:249)
=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.execute(Ab= stractJdbc2Statement.java:550)
=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2State= ment.executeWithFlags(AbstractJdbc2Statement.java:418)
=0A=0A
=09at=20org.postgresq= l.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:368)=0A=0A
=09at=20org.postgresql.test.jdbc2.ServerCursorTest.createRows(ServerCursorTest= .java:46)
=0A=0A
=09at=20org.postgresql.test.jdbc2.ServerCursorTest.testBinaryFetch= (ServerCursorTest.java:73)
=0A=0A

=0A
=0A=0A

=0A
= =0A=0A
10.=20No=20clue
=0A=0A
ERROR:=20column=20"data"=20is=20of=20= type=20bytea=20but=20expression=20is=20of=20type=20bigint
=0A=0A
 = =20Hint:=20You=20will=20need=20to=20rewrite=20or=20cast=20the=20expression.=0A=0A
 =20Position:=2041
=0A=0A
org.postgresql.util.PSQLExce= ption:=20ERROR:=20column=20"data"=20is=20of=20type=20bytea=20but=20expression=20= is=20of=20type=20bigint
=0A=0A
 =20Hint:=20You=20will=20need=20to=20= rewrite=20or=20cast=20the=20expression.
=0A=0A
 =20Position:=2041<= /div>=0A=0A
=09= at=20org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryE= xecutorImpl.java:2100)
=0A=0A
=09at=20org.postgresql.core.v3.QueryExecutorImpl.proces= sResults(QueryExecutorImpl.java:1839)
=0A=0A
=09at=20org.postgresql.core.v3.QueryEx= ecutorImpl.execute(QueryExecutorImpl.java:249)
=0A=0A
=09at=20org.postgresql.jdbc2.= AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:550)
=0A=0A
= =09at=20org.= postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.= java:418)
=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(= AbstractJdbc2Statement.java:368)
=0A=0A
=09at=20org.postgresql.test.jdbc2.ServerPre= paredStmtTest.testBytea(ServerPreparedStmtTest.java:230)
=0A=0A

=0A=
=0A=0A

=0A
=0A=0A
11.=20No=20clue
=0A=0A
ERROR:=20= invalid=20input=20syntax=20for=20integer:=20"test=20string"
=0A=0A
org.= postgresql.util.PSQLException:=20ERROR:=20invalid=20input=20syntax=20for=20integ= er:=20"test=20string"
=0A=0A
=09at=20org.postgresql.core.v3.QueryExecutorImpl.receiv= eErrorResponse(QueryExecutorImpl.java:2100)
=0A=0A
=09at=20org.postgresql.core.v3.Q= ueryExecutorImpl.processResults(QueryExecutorImpl.java:1839)
=0A=0A
=09at=20org.pos= tgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:249)
=0A=0A=
=09at=20= org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:= 550)
=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(Ab= stractJdbc2Statement.java:418)
=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2State= ment.executeQuery(AbstractJdbc2Statement.java:311)
=0A=0A
=09at=20org.postgresql.te= st.jdbc2.ServerPreparedStmtTest.testTypeChange(ServerPreparedStmtTest.java:286)<= /div>=0A=0A

=0A
=0A=0A

=0A
=0A=0A
12.=20Not=20gonn= a=20fix=20yet
=0A=0A
Can't=20invoke=20public=20void=20org.postgresql.te= st.ssl.SslTest.runTest()=20throws=20java.lang.Throwable:=20either=20make=20it=20= static=20or=20add=20a=20no-args=20constructor=20to=20your=20class
=0A=0Aorg.testng.TestNGException: 
=0A=0A
Can't=20invoke=20public=20vo= id=20org.postgresql.test.ssl.SslTest.runTest()=20throws=20java.lang.Throwable:=20= either=20make=20it=20static=20or=20add=20a=20no-args=20constructor=20to=20your=20= class
=0A=0A
=09at=20org.testng.internal.Utils.checkInstanceOrStatic(Utils.java:795= )
=0A=0A

=0A
=0A=0A
13.=20No=20clue
=0A=0A
ERROR:= =20column=20"bin"=20is=20of=20type=20bytea=20but=20expression=20is=20of=20type=20= bigint
=0A=0A
 =20Hint:=20You=20will=20need=20to=20rewrite=20or=20= cast=20the=20expression.
=0A=0A
 =20Position:=2065
=0A=0Aorg.postgresql.util.PSQLException:=20ERROR:=20column=20"bin"=20is=20of=20type=20= bytea=20but=20expression=20is=20of=20type=20bigint
=0A=0A
 =20Hint= :=20You=20will=20need=20to=20rewrite=20or=20cast=20the=20expression.
=0A=0A=
 =20Position:=2065
=0A=0A
=09at=20org.postgresql.core.v3.QueryExecutorImp= l.receiveErrorResponse(QueryExecutorImpl.java:2100)
=0A=0A
=09at=20org.postgresql.c= ore.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1839)
=0A=0A=
=09at=20= org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:249)=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statem= ent.java:550)
=0A=0A
=09at=20org.postgresql.jdbc2.AbstractJdbc2Statement.executeWit= hFlags(AbstractJdbc2Statement.java:418)
=0A=0A
=09at=20org.postgresql.jdbc2.Abstrac= tJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:368)
=0A=0A
<= span=20class=3D"Apple-tab-span"=20style=3D"white-space:pre">=09at=20org.p= ostgresql.jdbc2.AbstractJdbc2ResultSet.insertRow(AbstractJdbc2ResultSet.java:849= )
=0A=0A
=09= at=20org.postgresql.test.jdbc2.UpdateableResultTest.testUpdateStreams(Upd= ateableResultTest.java:225)
=0A=0A

=0A
=0A=0A
If=20anyone=20= could=20help=20it=20would=20be=20greatly=20appreciated,=20I=20used=20gradle=20so= =20all=20you=20have=20to=20do=20is:=20"gradlew=20test"=20you=20don't=20need=20to= =20have=20Groovy=20or=20Gradle=20installed 
=0A=0A
Connection=20pr= operties=20are=20set=20in=20src/test/resources/test.properties
=0A=0A
M= y=20repo:=20https://github.com/RapidTransit/postgres
=0A=0A

=0A=0A=0A

=0A
=0A
=0A ----------MB_8D1D54E513198C2_E88_137DB8_webmail-m290.sysops.aol.com--