Jump to content
We've recently updated our Privacy Statement, available here ×
  • Unable to load large files via web services


    mdahlman

    Summary

    [toc on_off::hide=1]

    Unable to load files via web services. (Smaller files load, but larger ones fail.)

    Symptom

    The client error is the following: Each DIME Stream must be read fully or closed in succession.

    The server log shows the following:

    WARN AttachmentsImpl,ajp-8009-6:558 - Exception:

    AxisFault

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

    faultSubcode:

    faultString: java.io.IOException: No such file or directory

    faultActor:

    faultNode:

    faultDetail:

        {http://xml.apache.org/axis/}stackTrace:java.io.IOException: No such file

    or directory

        at java.io.UnixFileSystem.createFileExclusively(Native Method)

        at java.io.File.checkAndCreate(File.java:1704)

        at java.io.File.createTempFile(File.java:1793)

        at

    org.apache.axis.attachments.ManagedMemoryDataSource.flushToDisk(ManagedMemoryDataSource.java:386)

    ...

    Cause

    The error occurs only with large files. The reason for this is that Axis keeps small files entirely in memory, but it spools larger files to disk before loading them into the repository. Axis has a hard-coded limit of 16k bytes as the boundary between small and large files.

    This error indicates that Axis was not able to save the file into its designated temporary directory.

    Resolution

    You may determine which directory is used as the temporary directory by viewing webapps/jasperserver-pro/WEB-INF/server-config.wsdd:

    <parameter name="attachments.Directory" value="attachments"/>

    1. The most common solution is to change permissions on the directory webapps/jasperserver-pro/WEB-INF/attachments.
    2. An alternative solution is to designate a different directory for attachments.

    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...