• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Missing WOExceptionPage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing WOExceptionPage


  • Subject: Re: Missing WOExceptionPage
  • From: "B. Olav Anderson" <email@hidden>
  • Date: Fri, 28 Nov 2003 15:40:43 -0800

This is a bug in wo 5.1 onward I think. I filed it in Radar.

Seems to only happen in deployment using DirectActions.

The work around is to override dispatchRequest() and catch an exception there and return handleException(). I also override performActionNamed() in WODirectAction.

Hope this helps.


On Friday, November 28, 2003, at 08:08 AM, Erlandsson Martin wrote:

Hi list,

WO 5.2.2 is giving me a really hard time, hiding exceptions thrown in
direct actions. I managed to isolate the problem to the following
provoking code:

  public final WOComponent testWOExceptionPageAction() {
    try {
        throw new NullPointerException();
    } catch (NullPointerException ex) {
        logger.log(Level.WARNING, "about to return WOExceptionPage",
ex);
        return new WOExceptionPage(context());
    }
  }


Instead of the Exception Page, I get the following response:

<html><head><title>Error</title></head><body>Your request produced an
error.</body></html>


This response is generated in WODirectActionRequestHandler (according to a decompiler). In this case, I get a stack trace in the log, but in many other cases I don't.

Can anyone tell me why I can't get a sensible Exception page?

Details:
WO 5.2.2
Java 1.4.1
Deploying on Tomcat 4.1.27
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Cocoa EOF enquiry
  • Next by Date: Re: Access Database
  • Previous by thread: Re: Missing WOExceptionPage
  • Next by thread: Re: next release of WO?
  • Index(es):
    • Date
    • Thread