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 04:30:52 UTC

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

Message:

   The following issue has been resolved as WON'T FIX.

   Resolver: David DeWolf
       Date: Thu, 14 Oct 2004 7:30 PM

Now that the testsuite has been rewritten, please resubmit with updated information.  I still *could* happen, but I'm interested in seeing a usecase on it.  Are you attempting to log a user out and then re-render or something?
---------------------------------------------------------------------
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: Thu, 14 Oct 2004 7:30 PM
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