Home > Archive > PostgreSQL JDBC > July 2005 > Re: org.postgresql.util.PSQLException: ERROR: current









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: org.postgresql.util.PSQLException: ERROR: current
Kevin Grittner

2005-07-20, 11:23 am

It isn't necessarily that simple. Since the previous error didn't
generate a stack trace, it was presumably caught and handled as an
"expected" issue. The problem may be that other database products
tolerate execution of further statements after an exception, and the
framework is assuming such behavior.

I've seen cases where the transaction is automatically rolled back by
the database product in response to some problems, allowing statements
to proceed under a new database transaction. I've also seen cases where
an exception is tolerated within a database transaction without ending
the transaction or prohibiting further queries (e.g. an insert fails,
and you can try an update, all in the same transaction).

It may be that the framework is not handling the PostgreSQL approach of
"aborting" a database transaction without rolling it back. This may
require a fix in JBoss.

-Kevin

[color=darkred]
Somewhere before the query that threw the exception an error occured.

Fix that and this exception will go away.

.. . .
[color=darkred]
[color=darkred]
[color=darkred]


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com