pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vijay Kiran Kamuju <infyquest@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Postgresql 7.4.1 and jdbc errors
Date: Wed, 28 Jun 2006 14:48:16 -0400
Message-ID: <36bf289b0606281148m36b3631cx86e9c127c58196ac@mail.gmail.com> (raw)

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.<init>(Socket.java:309)
	at java.net.Socket.<init>(Socket.java:124)
	at org.postgresql.core.PGStream.<init>(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



view thread (3+ messages)  latest in thread

Message-ID: <36bf289b0606281148m36b3631cx86e9c127c58196ac@mail.gmail.com>
Permalink:  ../36bf289b0606281148m36b3631cx86e9c127c58196ac@mail.gmail.com/
Also on:    postgresql.org/message-id/36bf289b0606281148m36b3631cx86e9c127c58196ac@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: infyquest@gmail.com
  Subject: Re: Postgresql 7.4.1 and jdbc errors
  In-Reply-To: <36bf289b0606281148m36b3631cx86e9c127c58196ac@mail.gmail.com>
  References: <36bf289b0606281148m36b3631cx86e9c127c58196ac@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox