Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-43198

NPE occurred when try to "move" the guest category

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.2.X EE, 7.0.0 M3
    • Fix Version/s: 7.0.0 M3
    • Labels:
      None
    • Environment:
      Tomcat 7.0.42 + MySQL 5.5.29 Portal master GIT ID: 1a52eb9dc9653b69677a995b0d4ec1e52f63ad7c.
      Tomcat 7.0.42 + MySQL 5.5.29 Portal ee-6.2.x EE GIT ID: 62777c1b616c7d3cb785d1718bdb79f6f24e8c13.

      Description

      Steps to reproduce:

      1. Start the portal and login.
      2. Add MB portlet into page, press "subscribe" link (subscribe.png).
      3. Press "My Subscription" Tab.
      4. Press "Move" from the "Actions" button of Guest category (move.png).

      Expected result:
      No exception occurred.

      Actual result:
      NPE occurred on terminal, nothing displayed on screen (error.png).

      06:22:30,277 ERROR [RuntimePageImpl-3][IncludeTag:129] Current URL /web/guest/home?p_p_id=19&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-2&p_p_col_pos=1&p_p_col_count=2&_19_mbCategoryId=0&_19_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fhome%2F-%2Fmessage_boards%2Fmy-subscriptions&_19_struts_action=%2Fmessage_boards%2Fmove_category generates exception: An exception occurred processing JSP page /html/portlet/message_boards/move_category.jsp at line 29____26: long parentCategoryId = BeanParamUtil.getLong(category, request, "parentCategoryId", MBCategoryConstants.DEFAULT_PARENT_CATEGORY_ID);__27: %>__28: __29: <liferay-ui:header__30: 	backURL="<%= redirect %>"__31: 	localizeTitle="<%= (category == null) %>"__32: 	title='<%= LanguageUtil.format(pageContext, "move-x", category.getName()) %>'______Stacktrace: [Sanitized]
      java.lang.NullPointerException
      	at org.apache.jsp.html.portlet.message_005fboards.move_005fcategory_jsp._jspService(move_005fcategory_jsp.java:720)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
      	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
      	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
      	at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:55)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
      

        Attachments

        1. error.png
          error.png
          13 kB
        2. liferay.2014-01-02.log
          8 kB
        3. move.png
          move.png
          45 kB
        4. subscribe.png
          subscribe.png
          25 kB

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao (Inactive)
              Reporter:
              hong.zhao Hong Zhao (Inactive)
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 42 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 M3