Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1266

Cannot serialize objects to JSON in plugins

Details

    Description

      A classCastException may occur when serializing objects to JSON in a plugin (or more specifically, objects not accessible to portal-impl.jar).

      To address this issue, com.liferay.util.json.JSONFactoryUtil has been added to util-java.jar. This new class should be used if the class that is serialized is not available to portal-impl.jar. For classes that are available to portal-impl.jar, the existing com.liferay.portal.kernel.json.JSONFactoryUtil can still be used.

      Attachments

        Issue Links

          Activity

            People

              support-ee EE Support
              samuel.kong Samuel Kong
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP4 (5.1.7)
                  5.2 EE SP2 (5.2.6)