Skip to Main Content

Java Development Tools

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.

Customizing Error Messages/Error Code in ADF BC Rest Web Services

Roshan SuntharanJun 13 2022

Hi there,
We are looking for a way to customize error messages and codes in our ADF BC Rest webservices. Everything I've already looked at and been recommended shows implementing a custom error handler and setting it in DataBindings.cpx file and such. However, from all my research, it appears that this requires the uses of a UI to make this possible. Otherwise, this file is utterly useless. To be specific, we are using "ADF REST Web Application" projects, and not "ADF Fusion Web Application" - we are currently using both 12.2.1.3 and 12.2.1.4 weblogic (and JDeveloper) for our various clients.
Our application is purely webservice calls, no UI, and they typically get made from programs like Postman, ReadyAPI and such. Since most of our input validation, error checking, etc. is being done in our database (also an Oracle database), we want to be able to see what the error coming back is to adjust it and make it more user-friendly.
Also, as a result of 12.2.1.4 weblogic move, it appears the error message(s) are muted when the web service response is a 500. As a result, any issues that arise in the database come back to the webservice but we are unable to tell where the error occurred off the bat - we have to go into our logs which is time wasted.
If anyone can suggest a way to create custom error messages, and possibly even change the response code without the use of ADF BC UIs, that would be great. Thanks for everything.

This post has been answered by Timo Hahn on Jun 20 2022
Jump to Answer

Comments

843834
Did you include your parser jar file in the archive tag? Thats required.

<applet code="Some.class" archive="some.jar, parser.jar" width=100 height=200></applet>
843834
Thank you very much Sir. Please inform me of the methods involved in assigning duke-dollars so i can give you some.
1 - 2

Post Details

Added on Jun 13 2022
3 comments
752 views