Re: [INTERFACES] JDBC throws with error code 0

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: Glenn Holmer <gholmer(at)weycogroup(dot)com>
Cc: Postgres interface list <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: [INTERFACES] JDBC throws with error code 0
Date: 1999-01-24 12:17:06
Message-ID: Pine.LNX.4.04.9901241211480.14361-100000@maidast.retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Fri, 22 Jan 1999, Glenn Holmer wrote:

[snip]

> I get a nice list of skid numbers. The attached file, however,
> when compiled, produces the following output:
>
> loading JDBC class "postgresql.Driver"...
>
> connecting to jdbc:postgresql://miranda:5432/factory...
> executeQuery...
> Unknown Response Type:
> return code is: 0
>
> This is making me very confused. Why does it throw if the
> return code is 0? Can anybody shed some light on this?

This return code is part of the network protocol. It's throwing because
the driver wasn't expecting a packet of type '0'.

Are you using the driver from 6.3, or a later one?

Peter

--
Peter T Mount peter(at)retep(dot)org(dot)uk
Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
Java PDF Generator: http://www.retep.org.uk/pdf

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Chris Sinclair 1999-01-24 13:12:52 JDBC "User authentication failed"
Previous Message Michael Meskes 1999-01-24 09:08:13 Re: [INTERFACES] MS Access 97 and Pass-through SQL