I have same error, the reason is, I have a filer to trim off the long
jsession IDs from url, solution was, I stopped using invalidate in the T5
side. however, according to Peter, this happens when you have a sendRedirect
without a matching return true in a dispatcher, you can try that.


Harald Geritzer-2 wrote:
> 
> 
> hi all,
> 
> the following code causes IllegalStateExceptions on tomcat 6 while using
> jetty it works without 
> errors. any idea?
> 
>       public URL onActionFromLinkLogoff() {
>               User user = userDao.load(getVisit().getUserId());
>               auditDao.audit(AuditType.LOGOFF, user);
> 
>               String startPage = getVisit().getStartPage();
>               Session session = request.getSession(false);
>               
>               componentResources.discardPersistentFieldChanges();
>               
>               if (null != session)
>                       session.invalidate();
>               try {
>                       return new URL(startPage);
>               } catch (MalformedURLException e) {
>                       return null;
>               }
>       }
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5-5.0.18--java.lang.IllegalStateException%3A-Cannot-create-a-session-after-the-response-has-been-committed-tp22369307p22369465.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to