From: shrenik vikam <sonytone@rediffmail.com>
To: pgsql-jdbc@postgresql.org
Subject: problem of network is unreachable
Date: 16 Dec 2005 08:50:49 -0000
Message-ID: <20051216085049.32713.qmail@webmail46.rediffmail.com> (raw)
Note: Forwarded message attached
-- Original Message --
From: "shrenik vikam" <sonytone@rediffmail.com>
To: pgsql-jdbc@postgresql.org
Cc: sonytone@rediffmail.com
Subject: problem of network is unreachable
shrenik vikam
Feel good when somebody Miss u. Feel better when somebody Loves u. But feel best when somebody never forgets u.
i have properly configured the m/c with the two files as
1) postgresql.conf
2) pg_hba.conf
for Redhat 9 found in folder /ver/lib/pgssql/data
abt java compilation no such error is their
i am sure abt the java & postgresql configuration
still i am having problem here the stack trace with the program is given
Stack trace is ::::::::::::::::::
[root@localhost root]# javac JdbcDemo.java
[root@localhost root]# java JdbcDemo
Exception geneated The connection attempt failed because Exception: java.net.So cketException: Network is unreachable
Stack Trace:
java.net.SocketException: Network is unreachable
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:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.<init>(Socket.java:291)
at java.net.Socket.<init>(Socket.java:119)
at org.postgresql.PG_Stream.<init>(PG_Stream.java:38)
at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJ dbc1Connection.java:160)
at org.postgresql.Driver.connect(Driver.java:122)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at JdbcDemo.<init>(JdbcDemo.java:12)
at JdbcDemo.main(JdbcDemo.java:43)
End of Stack Trace
plz tell me some idea or suggestion
shrenik vikam
Feel good when somebody Miss u. Feel better when somebody Loves u. But feel best when somebody never forgets u.
Attachments:stacktrace.txt (text/plain, 1.2K) download
[root@localhost root]# javac JdbcDemo.java
[root@localhost root]# java JdbcDemo
Exception geneated The connection attempt failed because Exception: java.net.So cketException: Network is unreachable
Stack Trace:
java.net.SocketException: Network is unreachable
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:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.<init>(Socket.java:291)
at java.net.Socket.<init>(Socket.java:119)
at org.postgresql.PG_Stream.<init>(PG_Stream.java:38)
at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJ dbc1Connection.java:160)
at org.postgresql.Driver.connect(Driver.java:122)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at JdbcDemo.<init>(JdbcDemo.java:12)
at JdbcDemo.main(JdbcDemo.java:43)
End of Stack Trace
JdbcDemo.class (application/java, 1.9K) download
JdbcDemo.java (application/octet-stream, 1001B) download
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: sonytone@rediffmail.com
Subject: Re: problem of network is unreachable
In-Reply-To: <20051216085049.32713.qmail@webmail46.rediffmail.com>
References: <20051216085049.32713.qmail@webmail46.rediffmail.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