pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tony Smith <quickome@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: remote connection with JDBC
Date: Sun, 21 Nov 2004 20:55:55 -0800 (PST)
Message-ID: <20041122045555.84774.qmail@web41610.mail.yahoo.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0411211524320.24919@leary.csoft.net>

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!    

view thread (4+ messages)  latest in thread

Message-ID: <20041122045555.84774.qmail@web41610.mail.yahoo.com>
Permalink:  ../20041122045555.84774.qmail@web41610.mail.yahoo.com/
Also on:    postgresql.org/message-id/20041122045555.84774.qmail@web41610.mail.yahoo.com

 · 

reply

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: quickome@yahoo.com
  Subject: Re: remote connection with JDBC
  In-Reply-To: <20041122045555.84774.qmail@web41610.mail.yahoo.com>
  References: <Pine.BSO.4.56.0411211524320.24919@leary.csoft.net> <20041122045555.84774.qmail@web41610.mail.yahoo.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