From: | rob stone <floriparob(at)gmail(dot)com> |
---|---|
To: | Yury Petukhou <yury(dot)petukhou(at)gmail(dot)com>, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: IllegalState Exception |
Date: | 2017-09-06 21:52:42 |
Message-ID: | 1504734762.23506.2.camel@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-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
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2017-09-11 02:37:39 | Re: [JDBC] Channel binding support for SCRAM-SHA-256 |
Previous Message | Dave Cramer | 2017-09-06 15:29:51 | Re: IllegalState Exception |