pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rob stone <floriparob@gmail.com>
To: Yury Petukhou <yury.petukhou@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: IllegalState Exception
Date: Thu, 07 Sep 2017 07:52:42 +1000
Message-ID: <1504734762.23506.2.camel@gmail.com> (raw)
In-Reply-To: <CAKuTYX9-Vi8TGMSkdJpshxQJ1gj+mtFYzNeWf8XQi3b+8q+1bw@mail.gmail.com>
References: <CAKuTYX9-Vi8TGMSkdJpshxQJ1gj+mtFYzNeWf8XQi3b+8q+1bw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>



On Wed, 2017-09-06 at 12:31 +0300, Yury Petukhou wrote:
> Dear Sir/Madam,
> 
> My name is Yury Petukhou. I have a question on jdbc usage. 
> 
> In my application I use postgres-9.4.12.12 JDBC driver. 
> 
> When I make an INSERT or SELECT request I get IllegalState Exception
> with description 
> "Received resultset tuples, but no field structure for them"
> 
> What can be the reason? I have looked through FAQ and documentation
> and found only description of the exception but not the reason.
> 
> This exception is thrown occasionally not systematically, so it's not
> an application logic error. Database is used by my application only.
> 
> Thank you for reply.
> 
> Best regards,
> Yury Petukhou


IllegalStateException is Throwable, so is this message
"Received resultset tuples, but no field structure for them"
the message or the cause?

You can retrieve both via Throwable.getMessage() and
Throwable.getCause().

This exception is usually caused by changing the data data type of a
parameter mid-stream due to your prepared statement expecting an
integer, say, and receiving a string.

HTH,
Rob


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (3+ messages)

Message-ID: <1504734762.23506.2.camel@gmail.com>
Permalink:  ../1504734762.23506.2.camel@gmail.com/
Also on:    postgresql.org/message-id/1504734762.23506.2.camel@gmail.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: floriparob@gmail.com, yury.petukhou@gmail.com
  Subject: Re: IllegalState Exception
  In-Reply-To: <1504734762.23506.2.camel@gmail.com>
  References: <CAKuTYX9-Vi8TGMSkdJpshxQJ1gj+mtFYzNeWf8XQi3b+8q+1bw@mail.gmail.com> <1504734762.23506.2.camel@gmail.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