From: | "Yousry Abdallah" <Yousry(dot)Abdallah(at)epost(dot)de> |
---|---|
To: | "# sriram #" <sriram(at)imsc(dot)ernet(dot)in>, <pgsql-jdbc(at)postgresql(dot)org>, <pgsql-cygwin(at)postgresql(dot)org> |
Subject: | Re: [JDBC] problem about postgresql and jdbc |
Date: | 2002-03-05 07:48:40 |
Message-ID: | 001c01c1c41a$2b52b940$d27ab1ac@wwwwh13x9ln7t6 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-cygwin pgsql-jdbc |
Hi,
it was a configuration problem (something unusual ?). I forgot the database
name in the url:
jdbc:postgresql://localhost:5432/Database
----------
in Method java.sql.DriverManager.getConnection.
Thanks,
Yousry
----- Original Message -----
From: "# sriram #" <sriram(at)imsc(dot)ernet(dot)in>
To: "Yousry Abdallah" <Yousry(dot)Abdallah(at)epost(dot)de>
Sent: Tuesday, March 05, 2002 4:36 AM
Subject: Re: [JDBC] problem about postgresql and jdbc
> somewhat similar to what i experience...
> check out if pgsql is still running when you execute the code
>
> On Fri, 1 Mar 2002, Yousry Abdallah wrote:
>
> !Date: Fri, 1 Mar 2002 13:32:43 +0100
> !From: Yousry Abdallah <Yousry(dot)Abdallah(at)epost(dot)de>
> !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
> !
>
> ----------
> mAtScIeNcE
> ----------
>
From | Date | Subject | |
---|---|---|---|
Next Message | Jason Tishler | 2002-03-05 12:22:34 | Re: could not initialize database directory; |
Previous Message | Dave Cramer | 2002-03-04 20:45:46 | Re: problem about postgresql and jdbc |
From | Date | Subject | |
---|---|---|---|
Next Message | tsmets | 2002-03-05 08:47:28 | Problem to connect from host via JDBC ... |
Previous Message | Nortje, Jacques | 2002-03-05 05:30:08 | Boolean type |