Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

SUN AS reads error handler page after custom WS exception

843833Sep 29 2005 — edited Apr 19 2006
Hi

I have developed a WEB service and deployed it on SUN AS PE 8.1. My WEB service sometimes throws a custom exception to inform client about incorrect input date etc. That works quite well, I can tested both Java and .NET clients.

However SUN AS behaves a bit strange, if the exception is thrown. It sets HTTP exit status to 500 (internal error) and even attempts to process my error page printing to log file this:

Exception Processing ErrorPage[errorCode=500, location=/errorPage/ErrorPage.jsp]
java.lang.IllegalStateException

The problem is that some WS clients return to caller HTTP error 500, instead of SOAP fault. Is there any solution for this ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2006
Added on Sep 29 2005
2 comments
130 views