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

Calls to DLFileEntryServiceHttp.getFileAsStream(..) fail - on principle

    Details

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

      Description

      Every call to DLFileEntryServiceHttp.getFileAsStream(..) fails with:

      {{{11:17:22,198 WARN [http-apr-8080-exec-4][code_jsp:?]

      {code="500", msg="", uri=/api/liferay/do}

      }}}
      {{java.io.NotSerializableException: java.io.FileInputStream }}
      {{ at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183) }}
      {{ at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) }}
      {{ at com.liferay.portal.servlet.TunnelServlet.doPost(TunnelServlet.java:110) }}
      {{ ... }}

      because - of course - Streams can on principal not be serialized through the HTTP tunnel.

      It looks like that this API method is a gross misconception.

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package