Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A119347580B for ; Sun, 19 Jan 2003 15:12:19 -0500 (EST) Received: from brador.elementallogic.com (unknown [209.71.252.133]) by postgresql.org (Postfix) with ESMTP id B086E474E42 for ; Sun, 19 Jan 2003 15:12:18 -0500 (EST) Received: from HARP (h24-66-152-40.gv.shawcable.net [24.66.152.40]) by brador.elementallogic.com (8.11.6/8.9.3) with SMTP id h0JKCAw01420; Sun, 19 Jan 2003 15:12:10 -0500 Reply-To: From: "Paul Stead" To: "michel verplancke" , Subject: Re: jdbc connection Date: Sun, 19 Jan 2003 12:12:17 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C2BFB4.02555340" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-reply-to: <002901c2bff3$75158d20$010210ac@principalb> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/228 X-Sequence-Number: 6078 This is a multi-part message in MIME format. ------=_NextPart_000_0013_01C2BFB4.02555340 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Just a real quick look, but it seems to me that you're closing your connection before you use it.... if( con != null) { try { con.close(); } You're closing it here catch( Exception e2 ) {} } try { result = stmt.executeQuery(Valquery); IT's HERE THAT I GET THE PROBLEM !!!!!!! } ------=_NextPart_000_0013_01C2BFB4.02555340 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Just a=20 real quick look, but it seems to me that you're closing your connection bef= ore=20 you use it....
 
     &nb= sp;if(=20 con !=3D=20 null) 
       {
  &= nbsp;    =20  try { con.close();=20 }            &n= bsp;            = ;=20 You're closing it=20 here
        &nb= sp;catch(=20 Exception e2 ) {}
      }
  =20  try
     {
  result =3D=20 stmt.executeQuery(Valquery);        = ;  
IT's HERE THAT I GET THE PROBLEM=20 !!!!!!!
     }=20

------=_NextPart_000_0013_01C2BFB4.02555340--