Hi Quinton,

The problem is I don't return anything like in your example. I return a simple component.

Here is my DirectAction method :

public WOActionResults visaProjectAction() {
        directVisa = true;
        WOActionResults nextPage = null;
        NSDictionary actionParams = getParamsFromRequest(request(), null);
        String projetId = (String) actionParams.valueForKey(PROJET_ID_KEY);
        String directVisa = (String) actionParams.valueForKey(DIRECTVISA);
        NSMutableDictionary params = new NSMutableDictionary();
        if (!MyStringCtrl.isEmpty(projetId)) {
            params.put(PROJET_ID_KEY, new Integer(projetId));
        }
        if (!MyStringCtrl.isEmpty(directVisa)) {
            if (directVisa.equals("O") || directVisa.equals("OUI")) {
                params.put(DIRECTVISA, new Boolean(true));
                params.put(DIRECTVALIDATE, new Boolean(false));
            }
        }
        laSession().setActionParams(params.immutableClone());
        if (useCasService()) {
            return loginCASPage();
        } else {
            nextPage = pageWithName(DAVisaMain.class.getName());
            return nextPage;
        }
    }

Thanks
Envoyé depuis iCloud

Le 11 déc. 2013 à 22:59, Quinton Dolan <[email protected]> a écrit :


If you do something like  'return new DirectActionClass(request()).someAction();’ in your direct action method it can cause this.

On 6 Dec 2013, at 3:59 pm, Chuck Hill <[email protected]> wrote:

Try logging out a stack trace in Application.restoreSessionWithID().  You must be doing something, this is not an easy error to produce.


-- 
Chuck Hill             
Executive Managing Partner, VP Development and Technical Services

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.    

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! 

Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!

On 2013-12-05 1:01 AM, "Raymond NANEON" wrote:

Hi List,

I get this Exception "java.lang.IllegalStateException : Trying to check out a session twice in one RR loop " after using a specific method in my DirectAction, then close the page and go to my apps home.

I don't understand what going on.

Thanks for your help
Envoyé depuis iCloud
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/qdolan%40gmail.com

This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to