Re: problem about postgresql and jdbc

From: "Dave Cramer" <Dave(at)micro-automation(dot)net>
To: "'Yousry Abdallah'" <Yousry(dot)Abdallah(at)epost(dot)de>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: problem about postgresql and jdbc
Date: 2002-03-04 20:45:46
Message-ID: 00ca01c1c3bd$8fadeca0$8201a8c0@inspiron
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin pgsql-jdbc

Yoursy,

Can you give us a small program which demonstrates this problem

Dave

-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Yousry Abdallah
Sent: Friday, March 01, 2002 7:33 AM
To: pgsql-jdbc(at)postgresql(dot)org; pgsql-cygwin(at)postgresql(dot)org
Subject: [JDBC] problem about postgresql and jdbc

Hi,

i have trouble using PostgreSQL7.1.3 via jdbc on my Windows XP System
(using the actual cygwin distribution and j2sdk1.4.0).

The Database sends following error message after connection:
PacketReceiveFragment: read() failed: Connection reset by peer

The Java Program prints following stack trace:
---Single simple object test and transaction test
pl.PlException: org.postgresql.util.PSQLException:
Something unusual has occured to cause the driver to fail.
Please report this exception: Exception: java.lang.NullPointerException
Stack Trace:
java.lang.NullPointerException
at org.postgresql.Connection.openConnection(Unknown Source)
at org.postgresql.Driver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at pl.test.PostgresqlDatabase.getNewConnection(Unknown Source)
at
pl.sql.RelationalDatabase.getConnection(RelationalDatabase.java:278)
at
pl.PersistenceManager.getConnection(PersistenceManager.java:927)
at pl.PersistenceManager.saveObject(PersistenceManager.java:289)
at pl.PersistentObject.save(PersistentObject.java:133)
at pl.test.Test.performTest(Unknown Source)
at pl.test.Test.main(Unknown Source)
End of Stack Trace

Thanks in advance,
Yousry

In response to

Browse pgsql-cygwin by date

  From Date Subject
Next Message Yousry Abdallah 2002-03-05 07:48:40 Re: [JDBC] problem about postgresql and jdbc
Previous Message Jason Tishler 2002-03-04 12:50:13 Re: PGSTAT : COnnection Refused Error (pgsql 7.2-2 on cygwin

Browse pgsql-jdbc by date

  From Date Subject
Next Message Doug McNaught 2002-03-05 00:04:45 Re: JDBC: java.sql.SQLException: results returned
Previous Message Dave Cramer 2002-03-04 20:44:43 Re: Does PostgreSQL support JDBC 2.0