You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by pl...@jakarta.apache.org on 2004/10/15 20:35:51 UTC

[jira] Commented: (PLUTO-27) TestPortlet throws IllegalStateException

The following comment has been added to this issue:

     Author: Ken Weiner
    Created: Fri, 15 Oct 2004 11:35 AM
       Body:
To be honest, it has been a while since I flied this and I can't remember the use case that exposed the problem.  I will reopen the bug if I encounter the problem again.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/PLUTO-27?page=comments#action_54219

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/PLUTO-27

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: PLUTO-27
    Summary: TestPortlet throws IllegalStateException
       Type: Bug

     Status: Resolved
   Priority: Blocker
 Resolution: WON'T FIX

    Project: Pluto
 Components: 
             testsuite
   Versions:
             Current CVS

   Assignee: David DeWolf
   Reporter: Ken Weiner

    Created: Wed, 18 Feb 2004 7:56 PM
    Updated: Fri, 15 Oct 2004 11:35 AM
Environment: Operating System: Other
Platform: Other

Description:
On line 161 of org.apache.pluto.portalImpl.portlet.TestPortlet (version 1.2),
there is a chance that the session will have already been invalidated in which
case the portlet throws an exception with the following trace:

java.lang.IllegalStateException: getAttribute: Session already invalidated
	at
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:985)
	at
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:156)
	at
org.apache.pluto.core.impl.PortletSessionImpl.getAttribute(PortletSessionImpl.java:156)
	at org.apache.pluto.portalImpl.portlet.TestPortlet.doDispatch(TestPortlet.java:161)
	at javax.portlet.GenericPortlet.render(GenericPortlet.java:218)
	at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:243)
	at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:183)

I would like to suggest that a try/catch be put around line 161 so that in the
case of an invalidated session, the jspName variable will get set to the default
value "test1.jsp" on line 163.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira