Hi all ...

I am having a problem trying to run a java program that uses jdbc to connect
to postgres. I am running RH 6.0 and a couple of jdbc drivers I found on the
net, one called rst.sql.Driver (from MIT) and another one called
postgresql.Driver. I have created a datanase called data and the postmaster
is initialized as follows:

nohup postmaster -i -D /home/users/mrbenji/data -b /usr/bin/postgres -S

When I try to execute an SQL statement from Java, I either get a broken pipe
or a connection reset by peer message, both throwing and IOException during
an InputStream.read invocation within the jdbc driver code.

Does anybody know what I could be doing wrong? Or, could anybody tell refer
to me a JDBC driver that is reliable (although I believe the ones I have
downloaded are reliable, so ignore this option unless any of you really
suggest a different driver). Maybe somebody can help by letting me step by
step how to run this thing. I feel confident enough with postgres but there
is probably something wrong with the way I am starting the postmaster. I
know by default it uses port 5432 and that is the port I am trying to talk
to from java. An instantiation of a Connection object works fine, like I
said the problem is when it tries to read from the postgres backend.

Any clues???

Thanks


Benjamin Vera-Tudela


---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to