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

When Testing JSR-286 Event, PortletContainerImpl.doEvent method throws NullPointer Exception

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 2.0.0
    • None
    • portlet container
    • None
    • windows xp sp3 weblogic 11g

    Description

      Hello , everyone

      I deployed pluto portal and testsuite on weblogic 11g. When testing Portlet Event, for example click the Complex Payload Event Test or Simple Payload Event Test very frequently, accasionally the container will throw the following Exception:
      Exception in thread "testsuite.286TestPortlet!-1115531942|0" java.lang.NullPointerException
      at org.apache.pluto.driver.core.PortalRequestContext.getContext(PortalRequestContext.java:90)
      at org.apache.pluto.driver.services.container.PortletStateAwareResponseContextImpl.close(PortletStateAwareResponseContextImpl.java:69)
      at org.apache.pluto.container.impl.PortletContainerImpl.doEvent(PortletContainerImpl.java:423)
      at org.apache.pluto.driver.services.container.PortletWindowThread.run(PortletWindowThread.java:132),
      and sometimes also companied with the following Exception:
      Exception in thread "testsuite.286TestPortlet!-1115531942|0" java.lang.IllegalStateException: parameters map contains a values array which is empty or contains only null values
      at org.apache.pluto.container.impl.StateAwareResponseImpl.setRenderParameters(StateAwareResponseImpl.java:215)
      at org.apache.pluto.testsuite.TestPortlet.processStateAwarePhase(TestPortlet.java:173)
      at org.apache.pluto.testsuite.TestPortlet.processEvent(TestPortlet.java:178)
      at org.apache.pluto.driver.services.container.FilterChainImpl.doFilter(FilterChainImpl.java:140)
      at org.apache.pluto.testsuite.test.jsr286.filter.WildcardMappedFilter.doFilter(WildcardMappedFilter.java:66)
      at org.apache.pluto.driver.services.container.FilterChainImpl.doFilter(FilterChainImpl.java:129)
      at org.apache.pluto.driver.services.container.FilterChainImpl.processFilter(FilterChainImpl.java:71)
      at org.apache.pluto.driver.services.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:91)
      at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:368)
      at org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
      at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233)
      at org.apache.pluto.driver.container.DefaultPortletInvokerService.event(DefaultPortletInvokerService.java:133)
      at org.apache.pluto.container.impl.PortletContainerImpl.doEvent(PortletContainerImpl.java:417)
      at org.apache.pluto.driver.services.container.PortletWindowThread.run(PortletWindowThread.java:132)

      The exception does not occur every time, but it's easy to come out. You can click the Complex Payload Event Test very quickly and can see the exceptions.

      Does anybody know about the solution of this issue?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            zaul liazhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment