• 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
Fwd: WOResponse HandleException problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: WOResponse HandleException problem


  • Subject: Fwd: WOResponse HandleException problem
  • From: Calven Eggert <email@hidden>
  • Date: Wed, 19 Dec 2012 08:14:17 -0500

*bump*

anyone have any ideas?

Begin forwarded message:

From: Calven Eggert <email@hidden>
Subject: WOResponse HandleException problem
Date: 17 December, 2012 4:04:00 PM EST
To: email@hidden

I have a framework that has overridden WOResponse HandleException for many years.  

Today I have discovered that there is a problem with the page I display to the user.  The page shows text and a button at the bottom of the page is labelled "Go to Login Page".  It used to go to the login page of the application but now when clicked on it seems to do nothing.  When clicked on a second time it then correctly goes to the login page.

I can't seem to figure out why it's no longer working.  I can confirm that it was working properly in May of 2011.  I haven't a clue when it stopped working.  Some kind of upgrade may have caused it to stop.  Java version, Eclipse.... no idea.

This is how it is handled:

    public WOResponse handleException(Exception anException, WOContext aContext)
    {
        super.handleException(anException, aContext);
        COREErrorPage errorPage = (COREErrorPage) pageWithName("COREErrorPage", aContext);
        errorPage.initialize(true, anException, theUser, "", "", null);
        return errorPage.generateResponse();
    }


My error page does this when the user clicks on the button, but only the second time it is clicked:

    public WOComponent loginPage() {
        WORedirect redirect = new WORedirect(context());
        try {
            redirect.setUrl(((COREApplication)application()).logoutLink());
        } catch (Exception e) {
            e.printStackTrace();
            e = null;
            redirect.setUrl(((COREApplication)application()).logoutLink());
        }
        ((CORESession)session()).terminate();
        return redirect;
    }

Any help in solving this mystery is appreciated.

Calven


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WOResponse HandleException problem
      • From: Chuck Hill <email@hidden>
    • Re: WOResponse HandleException problem
      • From: John Huss <email@hidden>
References: 
 >WOResponse HandleException problem (From: Calven Eggert <email@hidden>)

  • Prev by Date: Re: Migrations problem with FrontBase
  • Next by Date: Re: Migrations problem with FrontBase
  • Previous by thread: WOResponse HandleException problem
  • Next by thread: Re: WOResponse HandleException problem
  • Index(es):
    • Date
    • Thread