Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ORA-02067: transaction or savepoint rollback required on reused jdbc connection

juliojgsSep 22 2023

Hi, I'm exposing a SOAP webservice on weblogic 12c

It uses a jdbc connection, which seems to be reused for every call I receive.

I had this issue:

A user calls the WS with invalid data. This results on my plsql procedure trying to update a table and getting the typical foreign key violation error. I trap the error and raise application error with a more descriptive text.

The problem is that subsequent calls to the webservice start returning this ORA-02067. It seems the jdbc session stays pending rollback. Shouldn't the FK exception and raise_application_error result in a rollback??

This post has been answered by Solomon Yakobson on Sep 22 2023
Jump to Answer

Comments

Post Details

Added on Sep 22 2023
3 comments
75 views