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 E5D909FADD1 for ; Wed, 28 Jun 2006 18:51:49 -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 31995-06 for ; Wed, 28 Jun 2006 18:50:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 4B4A09FA64B for ; Wed, 28 Jun 2006 18:50:34 -0300 (ADT) Received: (qmail 18156 invoked from network); 28 Jun 2006 21:50:29 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 28 Jun 2006 21:50:29 -0000 In-Reply-To: <36bf289b0606281148m36b3631cx86e9c127c58196ac@mail.gmail.com> References: <36bf289b0606281148m36b3631cx86e9c127c58196ac@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <35C20066-65C2-41ED-9E1B-2E94337C4382@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Postgresql 7.4.1 and jdbc errors Date: Wed, 28 Jun 2006 17:50:28 -0400 To: Vijay Kiran Kamuju X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/130 X-Sequence-Number: 15410 Vijay, This is pretty self-explanatory. Can you telnet to port 5432 on the machine you are trying to connect to ? If so check http://jdbc.postgresql.org for instructions on how to connect. Dave On 28-Jun-06, at 2:48 PM, Vijay Kiran Kamuju wrote: > 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 > > ---------------------------(end of > broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match >