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

Calls to DLAppServiceHttp.addFileEntry(..., InputStream, ...) always fail

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 6.2.0 CE GA1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows7, Tomcat 7, JRE 7

      Description

      Calling method

      public static FileEntry addFileEntry(HttpPrincipal httpPrincipal, ..., InputStream is, long size, ServiceContext serviceContext)

      of DLAppServiceHttp always result in a

      com.liferay.portal.kernel.exception.SystemException:
      java.io.NotSerializableException:java.io.FileInputStream
      at com.liferay.portal.service.http.TunnelUtil.invoke(TunnelUtil.java:97)

      because Streams cannot be serialized in principle.

      I suggest to completely remove this erroneous and misleading method from the API.

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            clerch777 Christian Lerch
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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

                Packages

                Version Package