pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Unknown Response Type 1
Date: Mon, 02 Aug 2004 12:16:11 +1200
Message-ID: <410D87CB.3030603@opencloud.com> (raw)
In-Reply-To: <410CFC0F.1090802@bigfoot.com>
References: <ceiibv$sb$1@floppy.pyrenet.fr>
	<410CE657.7010101@opencloud.com>
	<410CFC0F.1090802@bigfoot.com>

Gaetano Mendola wrote:

> This is the stack trace:
> 
> org.postgresql.util.PSQLException: Unknown Response Type 1
> at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:193)
> 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.executeQuery(AbstractJdbc1Statement.java:231) 
> 
> at 
> net.eutelsat.opensky.sdr.command.db.SpSdrCheckPasswd.execute(SpSdrCheckPasswd.java:97) 

(this stacktrace appears to match the REL7_4_1 driver code)

This means that the driver unexpectedly received a ParseComplete message 
from the backend. As the driver you're using never issues a Parse 
message, I'm not sure how this can ever happen. The most likely cause is 
that the driver and the server are somehow getting out of sync as to 
where the message boundaries lie.

I haven't seen this before and there's nothing obviously wrong with the 
driver's protocol-level code that I can see.. so unless you can 
reproduce it, it's a bit of a dead end :(

> The application:
> 
> PreparedStatement theStatement;
> theStatement = theConnection.prepareStatement( "SELECT foo ( ?,? )"  );
> theStatement.setString( 1 , aLogin );
> theStatement.setString( 2 , aPassword );
> 
> ResultSet rs = theStatement.executeQuery();   <---- Line 97
> 
> 
> and in the server side:
> 
> LOG:  statement: SELECT foo ( 'login','password' )
> LOG:  duration: 0.691 ms

Do you have the previous query on that connection logged?

Was there anything unusual in the server logs at around the same time?

-O



view thread (7+ messages)  latest in thread

Message-ID: <410D87CB.3030603@opencloud.com>
Permalink:  ../410D87CB.3030603@opencloud.com/
Also on:    postgresql.org/message-id/410D87CB.3030603@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, mendola@bigfoot.com
  Subject: Re: Unknown Response Type 1
  In-Reply-To: <410D87CB.3030603@opencloud.com>
  References: <ceiibv$sb$1@floppy.pyrenet.fr> <410CE657.7010101@opencloud.com> <410CFC0F.1090802@bigfoot.com> <410D87CB.3030603@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