X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id DAD2D9FA506 for ; Wed, 28 Jun 2006 15:48:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 10700-06 for ; Wed, 28 Jun 2006 15:48:18 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by postgresql.org (Postfix) with ESMTP id 85E019FA425 for ; Wed, 28 Jun 2006 15:48:18 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so3271075ugf for ; Wed, 28 Jun 2006 11:48:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qmFt/NShOv43+3x4WlEgL5HXg1w7zdfgnJv9gweRjpHzqt4VZV6mKGpHu+wgHHtjUWhGJzgzRp8f7aJDPYop5SpnTYzPLka4psXJ0K6eSMxUHi/9F9Z+VGwCC0FhAnPb1iEOu68ELPX0usCDoJt/tMZK16YIsmTticS9GTvdFzY= Received: by 10.66.220.17 with SMTP id s17mr1043723ugg; Wed, 28 Jun 2006 11:48:16 -0700 (PDT) Received: by 10.66.242.19 with HTTP; Wed, 28 Jun 2006 11:48:16 -0700 (PDT) Message-ID: <36bf289b0606281148m36b3631cx86e9c127c58196ac@mail.gmail.com> Date: Wed, 28 Jun 2006 14:48:16 -0400 From: "Vijay Kiran Kamuju" To: pgsql-jdbc@postgresql.org Subject: Postgresql 7.4.1 and jdbc errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/129 X-Sequence-Number: 15409 Hi, I am using Postgresql 7.4.1 and pg74.214.jdbc3.jar. Postgresql is started under port 52008. I am using a java program to connect to the database. I am using java1.4.2_07_b05 on solaris. I am getting the following error. org.postgresql.util.PSQLException: The connection attempt failed because Exception: java.net.NoRouteToHostException: Cannot assign requested address Stack Trace: java.net.NoRouteToHostException: Cannot assign requested address at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.(Socket.java:309) at java.net.Socket.(Socket.java:124) at org.postgresql.core.PGStream.(PGStream.java:47) at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:197) at org.postgresql.Driver.connect(Driver.java:139) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) Please help me with this. Thanks, Vj