X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 57F6CD1B229 for ; Sun, 1 Aug 2004 21:16:21 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 14197-04 for ; Mon, 2 Aug 2004 00:16:22 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 92421D1B215 for ; Sun, 1 Aug 2004 21:16:13 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BrQUv-0005ev-00; Mon, 02 Aug 2004 12:16:13 +1200 Message-ID: <410D87CB.3030603@opencloud.com> Date: Mon, 02 Aug 2004 12:16:11 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gaetano Mendola Cc: pgsql-jdbc@postgresql.org Subject: Re: Unknown Response Type 1 References: <410CE657.7010101@opencloud.com> <410CFC0F.1090802@bigfoot.com> In-Reply-To: <410CFC0F.1090802@bigfoot.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200408/5 X-Sequence-Number: 10727 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