Luis,

The problem is in Tapestry-- not in your code. I believe the problem is 
here: (Note: I'm using version 1.0.8, so this code may have changed)

-- ApplicationServlet.java----

...to line #202


boolean dirty = engine.service(context);

HttpSession session = context.getSession();

if (session != null)
{
   boolean forceStore =
   engine.isStateful() && (session.getAttribute(attributeName) == null);

...
   try
   {
   }
   catch (IllegalStateException ex)
   {
   }
...

Notice that session.getAttribute() on line 214 is called *outside* the
try/catch for IllegalStateException. That's where the exception is thrown 
from (well after your own try/catch, which is inside the service method).

I fixed the problem by using a custom subclass of ApplicationServlet, where 
I extend the super implementation of servic() like this:

        protected void doService(
                HttpServletRequest request,
                HttpServletResponse response)
                throws IOException, ServletException
        {
                try
                {
                        super.doService( request, response);
                }
                catch(IllegalStateException anException)
                {
                        PXLog.log(this, "doService", "session was invalidated", 
PXLog.DEBUG);
                }
        }



>EJB's and associates are way out my league.

Be careful to make the distinction between sophistication and random 
complexity.





_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to