Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-27

TestPortlet throws IllegalStateException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Won't Fix
    • unspecified
    • None
    • portlets-testsuite
    • None
    • Operating System: Other
      Platform: Other
    • 27047

    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.

      Attachments

        Activity

          People

            ddewolf David H. DeWolf
            kweiner Ken Weiner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: