Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-646

ActionValveImpl can throw NullPointerException under clustered environment.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.1-dev, 2.1
    • Components Core
    • None

    Description

      When servlet containers are clustered, ActionValveImpl can throw NullPointerException as follows:

      ActionValveImpl.java:initWindow.window.getPortletEntity()[null]
      java.lang.NullPointerException
      at org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.initWindow(ActionValveImpl.java:187)
      at org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:88)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
      at org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:77)
      ...

      The reason why this symptom occurs is that the cache for portlet windows is shared among containers, but the portlet entity for a portlet window cannot be synchronized among containers.
      So, a portlet window can be retrieved from the cache, but its portlet entity can be null.

      Therefore, I added a path to check if portlet entity is null, and to refresh the portlet window with validated portlet entity. See my patch.

      Attachments

        1. JS2-646-diff.txt
          2 kB
          Woonsan Ko

        Activity

          People

            taylor David Sean Taylor
            woon_san Woonsan Ko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: