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 EB0EF9FA319 for ; Wed, 28 Jun 2006 19:37:48 -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 40740-04 for ; Wed, 28 Jun 2006 19:37:40 -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 9844B9FA60C for ; Wed, 28 Jun 2006 19:37:40 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so25429ugf for ; Wed, 28 Jun 2006 15:37:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hYpuQFUYghk7kzOH711oEnGrazVx4A0y/NfZ7pPVdkPNDLzWXMTeg0c6LYPoUQSVBrzD9Q3KfQ1egVJvfpEUfstYVXSyBN4g2PdWkRAgYlYaRyB1cAQNW9luLCPICxjlEoR3St+riG1ysEWHviiHNW2snu7eSlD7nXUlFS+nnsI= Received: by 10.67.26.7 with SMTP id d7mr1215084ugj; Wed, 28 Jun 2006 15:37:38 -0700 (PDT) Received: by 10.66.242.19 with HTTP; Wed, 28 Jun 2006 15:37:38 -0700 (PDT) Message-ID: <36bf289b0606281537x6f679cf5yc7d530d9ea2d595b@mail.gmail.com> Date: Wed, 28 Jun 2006 18:37:38 -0400 From: "Vijay Kiran Kamuju" To: "Dave Cramer" Subject: Re: Postgresql 7.4.1 and jdbc errors Cc: pgsql-jdbc@postgresql.org In-Reply-To: <35C20066-65C2-41ED-9E1B-2E94337C4382@fastcrypt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <36bf289b0606281148m36b3631cx86e9c127c58196ac@mail.gmail.com> <35C20066-65C2-41ED-9E1B-2E94337C4382@fastcrypt.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/133 X-Sequence-Number: 15413 The port i am using for postgresql is 52008, why port 5432 Can you provide the exact url. On 6/28/06, Dave Cramer wrote: > 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 > > > >