pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefano Bonnin <stefano.bonnin@comai.to>
To: pgsql-jdbc@postgresql.org
Subject: SSL Problem
Date: Wed, 14 Jul 2004 15:43:22 +0200
Message-ID: <001601c469a8$87de94f0$0501a8c0@comai04> (raw)

Hi, I have seen the same problem in the past of this list but I don't know how (and if) it has been solved.
I'm trying to connect my java stand alone application with postgres 7.4.2 via SSL.

I followed the istructions 
...
http://archives.postgresql.org/pgsql-jdbc/2003-08/msg00110.php
...
and then I tryed an SSL connection with pgAdmin: all works correctly
After I tryed to connect via java and the following error appear on the screen:


PostgreSQL 7.4.3 JDBC3 with SSL (build 214)
    ssl = true
    compatible = 7.4
    loglevel = 2
Using Protocol Version3
Asking server if it supports ssl
Server response was (S=Yes,N=No): S
server does support ssl
converting regular socket connection to ssl
org.postgresql.util.PSQLException
        at org.postgresql.core.PGStream.flush(PGStream.java:415)
        at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(Abstrac
tJdbc1Connection.java:284)
        at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJ
dbc1Connection.java:213)
        at org.postgresql.Driver.connect(Driver.java:139)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:140)
        at SmitConnection.<init>(SmitConnection.java:42)
        at Config.<init>(Config.java:120)
        at ServerTask$RemindTask.run(ServerTask.java:146)
        at java.util.TimerThread.mainLoop(Timer.java:432)
        at java.util.TimerThread.run(Timer.java:382)
Exception: org.postgresql.util.PSQLException: Si Þ verificato un errore di I/O m
entre si svuotava il buffer duscita - {0}
getConnection failed: org.postgresql.util.PSQLException: Si Þ verificato un erro
re di I/O mentre si svuotava il buffer duscita - {0}
Syncroro: errore nella fase di connessione al database di sistema.
org.postgresql.util.PSQLException: Si Þ verificato un errore di I/O mentre si sv
uotava il buffer duscita - {0}
        at org.postgresql.core.PGStream.flush(PGStream.java:415)
        at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(Abstrac
tJdbc1Connection.java:284)
        at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJ
dbc1Connection.java:213)
        at org.postgresql.Driver.connect(Driver.java:139)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:140)
        at SmitConnection.<init>(SmitConnection.java:42)
        at Config.<init>(Config.java:120)
        at ServerTask$RemindTask.run(ServerTask.java:146)
        at java.util.TimerThread.mainLoop(Timer.java:432)
        at java.util.TimerThread.run(Timer.java:382)
java.lang.NullPointerException
        at Config.<init>(Config.java:122)
        at ServerTask$RemindTask.run(ServerTask.java:146)
        at java.util.TimerThread.mainLoop(Timer.java:432)
        at java.util.TimerThread.run(Timer.java:382)

I'have no changed my java code. I have only changed the jdbc url by adding ?ssl&loglevel=2 at the end of the url.

Thanks in advance.

RedS

view thread (10+ messages)  latest in thread

Message-ID: <001601c469a8$87de94f0$0501a8c0@comai04>
Permalink:  ../001601c469a8$87de94f0$0501a8c0@comai04/
Also on:    postgresql.org/message-id/001601c469a8$87de94f0$0501a8c0@comai04

 · 

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: stefano.bonnin@comai.to
  Subject: Re: SSL Problem
  In-Reply-To: <001601c469a8$87de94f0$0501a8c0@comai04>
  References: <001601c469a8$87de94f0$0501a8c0@comai04>

* 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