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

Submitting DDL record with nested Select field causes NPE

    Details

      Description

      Steps to Reproduce:

      1. Go to Sites > Liferay > Content > Dynamic Data Lists
      2. Add new Data Definition with "text" field and nested "select" field
      3. Add new List with created Data Definition
      4. Add new List record
      5. Input "text" field
      6. Select option for "select" field
      7. Publish

      Expected Result:
      Record publishes without error and list records display in table on the page.

      Actual Result:
      Page does not render list records and portal throws NPE:

      21:15:06,327 ERROR [http-bio-9080-exec-9][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_auth=kAR713nm&p_p_id=com_liferay_dynamic_data_lists_web_portlet_DDLPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_displayStyle=list&_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_recordSetId=20739&_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_mvcPath=%2Fview_record_set.jsp&_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_redirect=http%3A%2F%2Flocalhost%3A9080%2Fgroup%2Fguest%2F%7E%2Fcontrol_panel%2Fmanage%3Fp_p_auth%3DkAR713nm%26p_p_id%3Dcom_liferay_dynamic_data_lists_web_portlet_DDLPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_mvcPath%3D%252Fview.jsp%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_cur%3D1%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_delta%3D20%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_description%3D%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_name%3D%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_orderByCol%3Dmodified-date%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_orderByType%3Dasc generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.liferay.dynamic.data.mapping.render.impl.BaseListDDMFormFieldValueRenderer$1.getDDMFormFieldOptionLabel(BaseListDDMFormFieldValueRenderer.java:84)
      	at com.liferay.dynamic.data.mapping.render.impl.BaseListDDMFormFieldValueRenderer$1.get(BaseListDDMFormFieldValueRenderer.java:53)
      	at com.liferay.dynamic.data.mapping.render.impl.BaseListDDMFormFieldValueRenderer$1.get(BaseListDDMFormFieldValueRenderer.java:42)
      	at com.liferay.portal.kernel.util.ListUtil.toString(ListUtil.java:546)
      	at com.liferay.dynamic.data.mapping.render.BaseDDMFormFieldValueRenderer.render(BaseDDMFormFieldValueRenderer.java:43)
      	at org.apache.jsp.view_005frecords_jsp._jspService(view_005frecords_jsp.java:1003)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	at com.liferay.portal.servlet.jsp.compiler.JspServlet.service(JspServlet.java:274)
      	at com.liferay.portal.servlet.jsp.compiler.JspServlet.service(JspServlet.java:285)
      	at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      	at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:50)
      	at com.liferay.portal.portlet.tracker.internal.PortletTracker$RestrictPortletServletRequestFilter.doFilter(PortletTracker.java:1445)
      	at org.eclipse.equinox.http.servlet.internal.registration.FilterRegistration.doFilter(FilterRegistration.java:118)
      	at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:45)
      	at com.liferay.portal.portlet.tracker.internal.PortletTracker$RestrictPortletServletRequestFilter.doFilter(PortletTracker.java:1445)
      21:15:06,963 TRACE [elasticsearch[Black Goliath][bulk][T#3]][index:134] [Black Goliath] [20118][0] took[682.2ms], took_millis[682], type[LiferayDocumentType], id[com.liferay.dynamic.data.lists.model.DDLRecord_PORTLET_20741], routing[], source[{"uid":"com.liferay.dynamic.data.lists.model.DDLRecord_PORTLET_20741","scopeGroupId":"20146","ddm__keyword__20735__Textdhlc_fi_FI":"asdf","priority_sortable":0.0,"ddm__keyword__20735__Textdhlc_pt_BR":"asdf","visible":"true","ddm__keyword__20735__Textdhlc_hu_HU":"asdf","createDate_sortable":1445375706180,"ddm__keyword__20735__Selectdpq1_fr_FR":"value 2","expirationDate_sortable":9223372036854775807,"ddm__keyword__20735__Textdhlc_fr_FR_sortable":"asdf","ddm__keyword__20735__Selectdpq1_en_US":"value 2","ddm__keyword__20735__Textdhlc_en_US":"asdf","ddm__keyword__20735__Selectdpq1_hu_HU":"value 2","ddm__keyword__20735__Selectdpq1_es_ES":"value 2","ddm__keyword__20735__Textdhlc_ca_ES_sortable":"asdf","ddmContent":"value 2 asdf","ddm__keyword__20735__Selectdpq1_ca_ES":"value 2","priority":"0.0","userId":"20163","ddm__keyword__20735__Textdhlc_ja_JP_sortable":"asdf","ratings_sortable":0.0,"userName":"test test","ddm__keyword__20735__Selectdpq1_nl_NL_sortable":"value 2","ddm__keyword__20735__Selectdpq1_es_ES_sortable":"value 2","ddm__keyword__20735__Selectdpq1_de_DE_sortable":"value 2","publishDate_sortable":0,"publishDate":"19700101000000","ddm__keyword__20735__Textdhlc_pt_BR_sortable":"asdf","expirationDate":"2922789940817071255","ddm__keyword__20735__Selectdpq1_fi_FI":"value 2","ddm__keyword__20735__Selectdpq1_en_US_sortable":"value 2","status":"0","recordSetId":"20739","ddm__keyword__20735__Textdhlc_de_DE_sortable":"asdf","entryClassPK":"20741","ddm__keyword__20735__Textdhlc_fr_FR":"asdf","ddm__keyword__20735__Selectdpq1_ja_JP":"value 2","modified":"20151020211506","ddm__keyword__20735__Selectdpq1_fr_FR_sortable":"value 2","ddm__keyword__20735__Selectdpq1_ca_ES_sortable":"value 2","viewCount_sortable":0,"modified_sortable":1445375706180,"ratings":"0.0","viewCount":"0","ddm__keyword__20735__Textdhlc_iw_IL":"asdf","ddm__keyword__20735__Textdhlc_zh_CN":"asdf","ddm__keyword__20735__Textdhlc_ja_JP":"asdf","ddm__keyword__20735__Selectdpq1_iw_IL":"value 2","ddm__keyword__20735__Selectdpq1_zh_CN":"value 2","ddm__keyword__20735__Textdhlc_fi_FI_sortable":"asdf","version":"1.0","ddm__keyword__20735__Textdhlc_en_US_sortable":"asdf","ddm__keyword__20735__Selectdpq1_iw_IL_sortable":"value 2","ddm__keyword__20735__Selectdpq1_hu_HU_sortable":"value 2","ddm__keyword__20735__Selectdpq1_pt_BR_sortable":"value 2","ddm__keyword__20735__Textdhlc_zh_CN_sortable":"asdf","ddm__keyword__20735__Textdhlc_nl_NL":"asdf","createDate":"20151020211506","localized_title":"new testnested select for list: test","localized_title_en_US":"new testnested select for list: test","localized_title_en_US_sortable":"new testnested select for list: test","localized_title_es_ES":"new testnested select for list: test","localized_title_es_ES_sortable":"new testnested select for list: test","localized_title_ja_JP":"new testnested select for list: test","localized_title_ja_JP_sortable":"new testnested select for list: test","localized_title_iw_IL":"new testnested select for list: test","localized_title_iw_IL_sortable":"new testnested select for list: test","localized_title_ca_ES":"new testnested select for list: test","localized_title_ca_ES_sortable":"new testnested select for list: test","localized_title_fi_FI":"new testnested select for list: test","localized_title_fi_FI_sortable":"new testnested select for list: test","localized_title_pt_BR":"new testnested select for list: test","localized_title_pt_BR_sortable":"new testnested select for list: test","localized_title_fr_FR":"new testnested select for list: test","localized_title_fr_FR_sortable":"new testnested select for list: test","localized_title_nl_NL":"new testnested select for list: test","localized_title_nl_NL_sortable":"new testnested select for list: test","localized_title_hu_HU":"new testnested select for list: test","localized_title_hu_HU_sortable":"new testnested select for list: test","localized_title_zh_CN":"new testnested select for list: test","localized_title_zh_CN_sortable":"new testnested select for list: test","localized_title_de_DE":"new testnested select for list: test","localized_title_de_DE_sortable":"new testnested select for list: test","ddm__keyword__20735__Selectdpq1_fi_FI_sortable":"value 2","entryClassName":"com.liferay.dynamic.data.lists.model.DDLRecord","classTypeId":"20739","ddm__keyword__20735__Selectdpq1_pt_BR":"value 2","ddm__keyword__20735__Textdhlc_iw_IL_sortable":"asdf","ddm__keyword__20735__Textdhlc_nl_NL_sortable":"asdf","ddm__keyword__20735__Selectdpq1_nl_NL":"value 2","ddm__keyword__20735__Textdhlc_es_ES_sortable":"asdf","ddm__keyword__20735__Selectdpq1_zh_CN_sortable":"value 2","ddm__keyword__20735__Textdhlc_es_ES":"asdf","groupId":"20146","stagingGroup":"false","ddm__keyword__20735__Textdhlc_hu_HU_sortable":"asdf","ddm__keyword__20735__Textdhlc_de_DE":"asdf","ddm__keyword__20735__Selectdpq1_ja_JP_sortable":"value 2","ddm__keyword__20735__Selectdpq1_de_DE":"value 2","companyId":"20118","ddm__keyword__20735__Textdhlc_ca_ES":"asdf"}]
      

      This error is then thrown each time the user attempts to view the records for this list.

      Reproduced on:
      Tomcat 7.0.62 + MySQL 5.6.25. Portal master GIT ID: e738dd7390bd4d098144f6e3820ad89d9fb44d8e.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                victor.ware Victor Ware
                Reporter:
                victor.ware Victor Ware
                Participants of an Issue:
                Recent user:
                Brian Wulbern
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 32 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 Alpha 2