pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedIllegalState Exception
3+ messages / 3 participants
[nested] [flat]
* IllegalState Exception
@ 2017-09-06 09:31 Yury Petukhou <yury.petukhou@gmail.com>
2017-09-06 15:29 ` Re: IllegalState Exception Dave Cramer <pg@fastcrypt.com>
2017-09-06 21:52 ` Re: IllegalState Exception rob stone <floriparob@gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: Yury Petukhou @ 2017-09-06 09:31 UTC (permalink / raw)
To: pgsql-jdbc
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: IllegalState Exception
2017-09-06 09:31 IllegalState Exception Yury Petukhou <yury.petukhou@gmail.com>
@ 2017-09-06 15:29 ` Dave Cramer <pg@fastcrypt.com>
1 sibling, 0 replies; 3+ messages in thread
From: Dave Cramer @ 2017-09-06 15:29 UTC (permalink / raw)
To: Yury Petukhou <yury.petukhou@gmail.com>; +Cc: pgsql-jdbc
Yury,
I think we need a bit more information. What code is running, etc.
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
On 6 September 2017 at 05:31, Yury Petukhou <yury.petukhou@gmail.com> 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
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: IllegalState Exception
2017-09-06 09:31 IllegalState Exception Yury Petukhou <yury.petukhou@gmail.com>
@ 2017-09-06 21:52 ` rob stone <floriparob@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: rob stone @ 2017-09-06 21:52 UTC (permalink / raw)
To: Yury Petukhou <yury.petukhou@gmail.com>; 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
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2017-09-06 21:52 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-09-06 09:31 IllegalState Exception Yury Petukhou <yury.petukhou@gmail.com>
2017-09-06 15:29 ` Dave Cramer <pg@fastcrypt.com>
2017-09-06 21:52 ` rob stone <floriparob@gmail.com>
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