Hello

I'm attempting to use the session of a HttpServletRequest from a class 
derived from AbstractProcessingStep and am getting a 
java.lang.StackOverflowError.  The getSession() call of 
HttpServletRequestCocoonWrapper is:

public HttpSession getSession() {
        return this.getSession();
}

I think the comment in the constructor may point to solution:

// If the real request is needed in the future to fall back to when the
// cocoon request object dosn't support those methods use the following 
line.

e.g:

public HttpSession getSession() {
        return this.realRequest.getSession();
}

this.cocoonRequest.getSession() won't work as a cocoon session is not a 
HttpSession.

George

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to