X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 605343A5103 for ; Mon, 22 Nov 2004 04:55:59 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 71928-07 for ; Mon, 22 Nov 2004 04:55:57 +0000 (GMT) Received: from web41610.mail.yahoo.com (web41610.mail.yahoo.com [66.218.93.110]) by svr1.postgresql.org (Postfix) with SMTP id 8406F3A50C4 for ; Mon, 22 Nov 2004 04:55:56 +0000 (GMT) Received: (qmail 84776 invoked by uid 60001); 22 Nov 2004 04:55:55 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=3WzQ7ZMFlqUnxeOrnpC51fdbeoMRbBNiXRZPR/ttIZZk2cY9zK/I3W8G3L588ETjb206Tl7aDNy7MehI6uRbtjvRlDLLsnWk3CSxW6SvsM6Dg/4CAWHTUAgSHLjAl142Sxp6J4h3mC8HuclnH2udAC3PQ36vuaBRJxGW3rTP+HA= ; Message-ID: <20041122045555.84774.qmail@web41610.mail.yahoo.com> Received: from [64.136.49.227] by web41610.mail.yahoo.com via HTTP; Sun, 21 Nov 2004 20:55:55 PST Date: Sun, 21 Nov 2004 20:55:55 -0800 (PST) From: Tony Smith Subject: Re: remote connection with JDBC To: pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-598329159-1101099355=:84482" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=HTML_FONTCOLOR_RED, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200411/163 X-Sequence-Number: 11585 --0-598329159-1101099355=:84482 Content-Type: text/plain; charset=us-ascii Hi: Thank you for your email. I downloaded the new jar file and still got the same exception. The error location is now different. org.postgresql.util.PSQLException: The connection attempt failed. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:136) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:63) at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:117) at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30) at org.postgresql.jdbc3.Jdbc3Connection.(Jdbc3Connection.java:24) at org.postgresql.Driver.connect(Driver.java:183) at java.sql.DriverManager.getConnection(DriverManager.java:538) at java.sql.DriverManager.getConnection(DriverManager.java:188) at Test.main(Test.java:29) Caused by: java.io.EOFException at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:243) at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:253) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:94) ... 8 more Kris Jurka wrote: On Sun, 21 Nov 2004, Tony Smith wrote: > java.io.EOFException > at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:244) > at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:222) You should check in your server log file to see if it has anything interesting to say about this failure. What authentication method are you using (md5/crypt/password/...)? The driver shouldn't be bailing out with an error like that, but it is unclear where the actual problem is. The stacktrace line numbers don't match up with the current source, so it would be helpful if you downloaded the lastest version of the driver. http://jdbc.postgresql.org/download.html#jars Kris Jurka ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster --------------------------------- Do you Yahoo!? The all-new My Yahoo! – Get yours free! --0-598329159-1101099355=:84482 Content-Type: text/html; charset=us-ascii
Hi:
 
Thank you for your email. I downloaded the new jar file and still got the same exception.
The error location is now different.
 

org.postgresql.util.PSQLException: The connection attempt failed.

at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:136)

at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:63)

at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:117)

at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)

at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)

at org.postgresql.Driver.connect(Driver.java:183)

at java.sql.DriverManager.getConnection(DriverManager.java:538)

at java.sql.DriverManager.getConnection(DriverManager.java:188)

at Test.main(Test.java:29)

Caused by: java.io.EOFException

at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:243)

at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:253)

at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:94)

... 8 more



Kris Jurka <books@ejurka.com> wrote:


On Sun, 21 Nov 2004, Tony Smith wrote:

> java.io.EOFException
> at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:244)
> at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:222)

You should check in your server log file to see if it has anything
interesting to say about this failure. What authentication method are you
using (md5/crypt/password/...)? The driver shouldn't be bailing out with
an error like that, but it is unclear where the actual problem is. The
stacktrace line numbers don't match up with the current source, so it
would be helpful if you downloaded the lastest version of the driver.

http://jdbc.postgresql.org/download.html#jars

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Do you Yahoo!?
The all-new My Yahoo! – Get yours free! --0-598329159-1101099355=:84482--