JDBC3 "invalid message format" error - Mailing list pgsql-jdbc

From Mikhail Ts
Subject JDBC3 "invalid message format" error
Date
Msg-id 20040323060206.17576.qmail@web13504.mail.yahoo.com
Whole thread Raw
List pgsql-jdbc
I have 2 computers: Linux Debian 2.2.20-idepci + PostgreSQL 7.4.1 and
another WinXP running Java client application. I have a simple DB where
I'm trying to insert large number of records, >1000. This was done for
testing purposes. Problem: every time I run my client program it gets
"invalid message format" error but each time in different place from
content point of view: sometimes it fails after 200 records, sometimes
- after 1000. I have only single connection to DB (checked by ps aux |
postmaster) and actually can continue job using the same SQL Connection
object on which error occured. Any help is appreciated.

stack trace looks like this:
org.postgresql.util.PSQLException: ERROR: invalid message format


    at
org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139)

    at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:154)

    at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:101)

    at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)

    at
org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:515)

    at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50)

    at
org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:271)

    at
org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:257)



Mikhail.

______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca

pgsql-jdbc by date:

Previous
From: Mikhail Ts
Date:
Subject: Invalid message format
Next
From: Gunjeet Singh
Date:
Subject: Using User Defined Type in JDBC code