problem of network is unreachable

Поиск
Список
Период
Сортировка
От shrenik vikam
Тема problem of network is unreachable
Дата
Msg-id 20051216085049.32713.qmail@webmail46.rediffmail.com
обсуждение исходный текст
Список pgsql-jdbc

 


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.

Вложения

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Guillaume Cottenceau
Дата:
Сообщение: Re: an efficient way of checking if the connection to a db is actually open
Следующее
От: Simon Moses
Дата:
Сообщение: setting & using connection pool in beans for tomcat.