pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Alberto Rodriguez Galdo <argaldo@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: possible bug
Date: Thu, 28 Apr 2005 12:40:06 +1200
Message-ID: <427030E6.3060906@opencloud.com> (raw)
In-Reply-To: <a8ae983d05042716431a08586c@mail.gmail.com>
References: <a8ae983d05042716431a08586c@mail.gmail.com>

Alberto Rodriguez Galdo wrote:

> This is the stackTrace:
> 
> org.postgresql.util.PSQLException: ERROR: invalid message format
>         at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1471)
>         at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1256)
>         at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:175)
>         at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:389)
>         at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:314)
>         at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:306)

Can't reproduce this against 8.0.0 with the build 310 jar. Testcase
attached. What are you doing differently to this testcase? The schema I
used (in case it wasn't an error at the Parse stage) is:

test=# \d backupitem
     Table "public.backupitem"
    Column    |  Type   | Modifiers
--------------+---------+-----------
 idbackup     | integer |
 pathservidor | text    |
 pathoriginal | text    |
 hash         | text    |
 esenlace     | text    |
 metadatos    | text    |

You might want to try appending '?loglevel=2' to your connection URL;
that should generate screeds of debugging to stderr that may be useful
in debugging this. (send it to me off-list if it's large)

-O

Attachments:

TestQuotes.java (text/plain, 1.3K) download import java.sql.*; // Run with one argument: a JDBC url to connect to. public class TestQuotes { private static final String QUERY = "insert into backupItem (idbackup,pathservidor,pathoriginal,hash,esenlace,metadatos) values (null,'/home/argaldo/datos/software/tomcat/tomcat/webapps/ubt/backup/dani/null/home/argaldo/test/prueba','/home/argaldo/test/prueba','1C940736976FFFFFFFCFFFFFF866EFFFFFFECFFFFFF827EFFFFFFDC413F7FFFFFFAF76FFFFFFF967','false','<rdf:RDF\n xmlns:ubt=\"http://www.pepe.es/ubt/\"\n xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" >\n <rdf:Description rdf:about=\"http://www.pepe.es/ubt/archivo\">\n <ubt:permisos>420</ubt:permisos>\n <ubt:UID>1000</ubt:UID>\n <ubt:tipoArchivo>UNIX</ubt:tipoArchivo>\n <ubt:esEnlace>false</ubt:esEnlace>\n <ubt:esEnlaceDuro>false</ubt:esEnlaceDuro>\n <ubt:ultimaModificacion>1114629588</ubt:ultimaModificacion>\n <ubt:GID>1000</ubt:GID>\n <ubt:ultimoAcceso>1114644020</ubt:ultimoAcceso>\n </rdf:Description>\n</rdf:RDF>\n')"; public static void main(String[] args) throws Exception { Class.forName("org.postgresql.Driver"); Connection c = DriverManager.getConnection(args[0]); Statement s = c.createStatement(); s.executeUpdate(QUERY); c.close(); } }

view thread (2+ messages)

Message-ID: <427030E6.3060906@opencloud.com>
Permalink:  ../427030E6.3060906@opencloud.com/
Also on:    postgresql.org/message-id/427030E6.3060906@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, argaldo@gmail.com
  Subject: Re: possible bug
  In-Reply-To: <427030E6.3060906@opencloud.com>
  References: <a8ae983d05042716431a08586c@mail.gmail.com> <427030E6.3060906@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox