Jetspeed 2
  1. Jetspeed 2
  2. JS2-511

org.apache.jetspeed.om.portlet.impl.PortletDefinitionImpl line 558 throws NPE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1-dev
    • Fix Version/s: 2.1-dev, 2.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      WinXP SP2, JDK 1.4.2_11, Geronimo SVN head, Tomcat 5.5.15

      Description

      Geronimo default log level is debug. When an porltet app try to register itself to j2, commons-beanutils will call PortletDefinitionImpl.hashCode() to write a log. The issue is caused by PortletDefinitionImpl.getId() will return a null in PortletDefinitionImpl.hashCode(), line 558.

      Reproduce:
      1. Change your log level to debug(jetspeed\WEB-INF\conf\Log4j.properties).
      2. Have a full build and call j2:quickStart
      3. Start your Tomcat Server if you do not has a Geronimo.

      I've tested it with Tomcat 5.5.15 and Geronimo SVN head.

        Activity

        Jian Liao created issue -
        Ate Douma made changes -
        Field Original Value New Value
        Assignee Ate Douma [ adouma ]
        Hide
        Ate Douma added a comment -

        Confirmed and fixed.

        Now all portlet apps are properly loaded/registered even with rootLevel logging set to DEBUG.

        Show
        Ate Douma added a comment - Confirmed and fixed. Now all portlet apps are properly loaded/registered even with rootLevel logging set to DEBUG.
        Ate Douma made changes -
        Fix Version/s 2.1-dev [ 12310686 ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 2.1 [ 12310617 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        31d 15h 47m 1 Ate Douma 15/Apr/06 03:08

          People

          • Assignee:
            Ate Douma
            Reporter:
            Jian Liao
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development