PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-29511

Overriding some portlets with liferay-portlet-ext.xml may causes NPE

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 5 results 

      Description

      1. create ext plugin
      2. modify liferay-portlet-ext.xml to override a portlet. Can just copy the exact entry from liferay-portlet.xml. I'm using journal in this case.
      3. deploy the war file
      4. restart the server
      5. you will get duplicate struts warning followed by NPE.

      Attached an example war.

        Issue Links

          Activity

          Hide
          Michael Saechang added a comment -

          Committed on:
          Portal 6.2.x GIT ID: 6169b73028cfbe447863e9af0dee21bb04c3123f.

          Show
          Michael Saechang added a comment - Committed on: Portal 6.2.x GIT ID: 6169b73028cfbe447863e9af0dee21bb04c3123f.
          Hide
          Sophia Zhang added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 2938290d4c02678565528f2a23c5ad1d462511a4.

          Before deploy the attached plugin, console will throw "Duplicate collection name web-content" error messages. After deploy the plugin, it causes NPE.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: a80d57becbd69e7cef902b67ef65e2c05cb6af04.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 9e92fd3ee490fb55da4898292881195ee5f8d5a4.

          No error displays in the console before and after deploy the plugin.

          Show
          Sophia Zhang added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 2938290d4c02678565528f2a23c5ad1d462511a4. Before deploy the attached plugin, console will throw "Duplicate collection name web-content" error messages. After deploy the plugin, it causes NPE. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: a80d57becbd69e7cef902b67ef65e2c05cb6af04. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 9e92fd3ee490fb55da4898292881195ee5f8d5a4. No error displays in the console before and after deploy the plugin.
          Hide
          Sergio Romero added a comment -

          ¿any workaround for 6.1.xGA2 CE?

          Show
          Sergio Romero added a comment - ¿any workaround for 6.1.xGA2 CE?

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 27 weeks ago

                Development

                  Structure Helper Panel