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 bu...@apache.org on 2004/02/18 20:56:53 UTC

DO NOT REPLY [Bug 27047] New: - TestPortlet throws IllegalStateException

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27047>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27047

TestPortlet throws IllegalStateException

           Summary: TestPortlet throws IllegalStateException
           Product: Pluto
           Version: Current CVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general
        AssignedTo: pluto-dev@jakarta.apache.org
        ReportedBy: kweiner@unicon.net


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.