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

Can not add custom field values to a document

    Details

      Description

      1. Add a document
      2. Define a custom field for documents
      3. Edit the document and add a value for your custom field--> You will get this exception:

      10:48:18,049 ERROR [http-bio-8888-exec-23][ExpandoBridgeImpl:518] java.lang.NullPointerException
      java.lang.NullPointerException
      at com.liferay.portlet.expando.service.permission.ExpandoColumnPermissionImpl.contains(ExpandoColumnPermissionImpl.java:66)
      at com.liferay.portlet.expando.service.permission.ExpandoColumnPermissionImpl.check(ExpandoColumnPermissionImpl.java:34)
      at com.liferay.portlet.expando.service.permission.ExpandoColumnPermissionUtil.check(ExpandoColumnPermissionUtil.java:33)
      at com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl.addValue(ExpandoValueServiceImpl.java:47)
      at com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl.addValues(ExpandoValueServiceImpl.java:77)

      at com.sun.proxy.$Proxy289.addValues(Unknown Source)
      at com.liferay.portlet.expando.service.ExpandoValueServiceUtil.addValues(ExpandoValueServiceUtil.java:83)
      at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.setAttributes(ExpandoBridgeImpl.java:505)
      at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.setAttributes(ExpandoBridgeImpl.java:538)
      at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.setAttributes(ExpandoBridgeImpl.java:530)

      at com.sun.proxy.$Proxy729.setAttributes(Unknown Source)
      at com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl.setExpandoBridgeAttributes(DLFileVersionModelImpl.java:900)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.addFileVersion(DLFileEntryLocalServiceImpl.java:1678)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.checkOutFileEntry(DLFileEntryLocalServiceImpl.java:552)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.checkOutFileEntry(DLFileEntryLocalServiceImpl.java:460)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.updateFileEntry(DLFileEntryLocalServiceImpl.java:2195)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.updateFileEntry(DLFileEntryLocalServiceImpl.java:1367)

      at com.sun.proxy.$Proxy417.updateFileEntry(Unknown Source)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl.updateFileEntry(DLFileEntryServiceImpl.java:587)

      at com.sun.proxy.$Proxy418.updateFileEntry(Unknown Source)
      at com.liferay.portal.repository.liferayrepository.LiferayRepository.updateFileEntry(LiferayRepository.java:735)
      at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.updateFileEntry(DLAppServiceImpl.java:2851)

      10:48:18,179 ERROR [http-bio-8888-exec-23][ExpandoBridgeImpl:518] java.lang.NullPointerException

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 26 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE M6