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 8D192D1B1AB for ; Wed, 14 Jul 2004 10:35:39 -0300 (ADT) 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 31520-08 for ; Wed, 14 Jul 2004 13:35:42 +0000 (GMT) Received: from smtp-bal.opennet.it (noder32-48.opennet.it [212.110.32.48]) by svr1.postgresql.org (Postfix) with SMTP id A6B3AD1B1B0 for ; Wed, 14 Jul 2004 10:35:31 -0300 (ADT) Received: (qmail 27869 invoked from network); 14 Jul 2004 13:17:05 -0000 Received: from unknown (HELO comai04) (212.110.56.34) by 0 with SMTP; 14 Jul 2004 13:17:05 -0000 Message-ID: <001601c469a8$87de94f0$0501a8c0@comai04> From: "Stefano Bonnin" To: Subject: SSL Problem Date: Wed, 14 Jul 2004 15:43:22 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C469B9.4B3B24D0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=HTML_20_30, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200407/154 X-Sequence-Number: 10538 This is a multi-part message in MIME format. ------=_NextPart_000_0013_01C469B9.4B3B24D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 v= ia SSL. I followed the istructions=20 ... 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 scr= een: PostgreSQL 7.4.3 JDBC3 with SSL (build 214) ssl =3D true compatible =3D 7.4 loglevel =3D 2 Using Protocol Version3 Asking server if it supports ssl Server response was (S=3DYes,N=3DNo): 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(Ab= strac tJdbc1Connection.java:284) at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(Abst= ractJ 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.(SmitConnection.java:42) at Config.(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 =DE verificato un errore d= i I/O m entre si svuotava il buffer duscita - {0} getConnection failed: org.postgresql.util.PSQLException: Si =DE 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 =DE verificato un errore di I/O mentr= e si sv uotava il buffer duscita - {0} at org.postgresql.core.PGStream.flush(PGStream.java:415) at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(Ab= strac tJdbc1Connection.java:284) at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(Abst= ractJ 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.(SmitConnection.java:42) at Config.(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.(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=3D2 at the end of the url. Thanks in advance. RedS ------=_NextPart_000_0013_01C469B9.4B3B24D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi, I have seen the same problem in the pa= st of=20 this list but I don't know how (and if) it has been solved.
I'm trying to connect my java stand alone= =20 application with postgres 7.4.2 via SSL.
 
I followed the istructions
...
htt= p://archives.postgresql.org/pgsql-jdbc/2003-08/msg00110.php
...
and then I tryed an SSL connection wi= th=20 pgAdmin: all works correctly
After I tryed to connect via java and the = following=20 error appear on the screen:
 
 
PostgreSQL 7.4.3 JDBC3 with SSL (build=20 214)
    ssl =3D true
    compatible = =3D=20 7.4
    loglevel =3D 2
Using Protocol Version3
Aski= ng=20 server if it supports ssl
Server response was (S=3DYes,N=3DNo): S
ser= ver does=20 support ssl
converting regular socket connection to=20 ssl
org.postgresql.util.PSQLException
     &= nbsp; =20 at=20 org.postgresql.core.PGStream.flush(PGStream.java:415)
   =     =20 at=20 org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(Abstrac
tJ= dbc1Connection.java:284)
       =20 at=20 org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJ
db= c1Connection.java:213)
       =20 at=20 org.postgresql.Driver.connect(Driver.java:139)
    &= nbsp;  =20 at=20 java.sql.DriverManager.getConnection(DriverManager.java:512)
  = ;     =20 at=20 java.sql.DriverManager.getConnection(DriverManager.java:140)
  = ;     =20 at=20 SmitConnection.<init>(SmitConnection.java:42)
   &n= bsp;   =20 at=20 Config.<init>(Config.java:120)
      = ; =20 at=20 ServerTask$RemindTask.run(ServerTask.java:146)
    &= nbsp;  =20 at=20 java.util.TimerThread.mainLoop(Timer.java:432)
    &= nbsp;  =20 at java.util.TimerThread.run(Timer.java:382)
Exception:=20 org.postgresql.util.PSQLException: Si =DE verificato un errore di I/O m
= entre=20 si svuotava il buffer duscita - {0}
getConnection failed:=20 org.postgresql.util.PSQLException: Si =DE verificato un erro
re di I/O m= entre=20 si svuotava il buffer duscita - {0}
Syncroro: errore nella fase di=20 connessione al database di sistema.
org.postgresql.util.PSQLException: S= i =DE=20 verificato un errore di I/O mentre si sv
uotava il buffer duscita -=20 {0}
        at=20 org.postgresql.core.PGStream.flush(PGStream.java:415)
   =     =20 at=20 org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(Abstrac
tJ= dbc1Connection.java:284)
       =20 at=20 org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJ
db= c1Connection.java:213)
       =20 at=20 org.postgresql.Driver.connect(Driver.java:139)
    &= nbsp;  =20 at=20 java.sql.DriverManager.getConnection(DriverManager.java:512)
  = ;     =20 at=20 java.sql.DriverManager.getConnection(DriverManager.java:140)
  = ;     =20 at=20 SmitConnection.<init>(SmitConnection.java:42)
   &n= bsp;   =20 at=20 Config.<init>(Config.java:120)
      = ; =20 at=20 ServerTask$RemindTask.run(ServerTask.java:146)
    &= nbsp;  =20 at=20 java.util.TimerThread.mainLoop(Timer.java:432)
    &= nbsp;  =20 at=20 java.util.TimerThread.run(Timer.java:382)
java.lang.NullPointerException=
       =20 at=20 Config.<init>(Config.java:122)
      = ; =20 at=20 ServerTask$RemindTask.run(ServerTask.java:146)
    &= nbsp;  =20 at=20 java.util.TimerThread.mainLoop(Timer.java:432)
    &= nbsp;  =20 at java.util.TimerThread.run(Timer.java:382)
 
I'have no changed my java code. I have onl= y changed=20 the jdbc url by adding ?ssl&loglevel=3D2 at the end of the url.<= /DIV>
 
Thanks in advance.
 
RedS
------=_NextPart_000_0013_01C469B9.4B3B24D0--