Legacy Knowledge Base
Published Jul. 2, 2025

Unable to upload documents to Document Library from remote machine through web service larger than 3MB

Written By

Christopher Lui

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Information about products not created by Liferay is provided for informational purposes only and does not constitute Liferay Support recommendation nor endorsement. Liferay also does not assume any responsibility for any instructions herein or referenced regarding these products.

When uploading documents larger than 3MB via web call, an error is thrown:

java.rmi.RemoteException: Akira_Functional_Requirements_v_1_6.1.docx.null
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)

Resolution

Make sure to use the correct Liferay version dependencies and that your document upload limit is set higher than the documents you are trying to upload in your portal-ext.properties.

Here are the properties to increase just the document library upload size:
dl.file.max.size=3072000
 
If you need to increase the document limit for the entire portal even more, use this property:
com.liferay.portal.upload.UploadServletRequestImpl.max.size=104857600
 
The numbers are set in bytes, so calculate accordingly.
Did this article resolve your issue ?

Legacy Knowledge Base