<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>FileSizeLimitExceededException on Primefaces portlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=43672379" />
  <subtitle>FileSizeLimitExceededException on Primefaces portlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=43672379</id>
  <updated>2026-04-07T16:27:05Z</updated>
  <dc:date>2026-04-07T16:27:05Z</dc:date>
  <entry>
    <title>RE: FileSizeLimitExceededException on Primefaces portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=48695795" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=48695795</id>
    <updated>2015-02-05T17:19:44Z</updated>
    <published>2015-02-05T17:19:44Z</published>
    <summary type="html">See answer at the forum post titled &lt;a href="https://www.liferay.com/community/forums/-/message_boards/message/48695781"&gt;PortletConfigParam only handles Integer, change to Long&lt;/a&gt;.</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2015-02-05T17:19:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: FileSizeLimitExceededException on Primefaces portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=48455132" />
    <author>
      <name>Daniel S.</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=48455132</id>
    <updated>2015-01-30T22:59:45Z</updated>
    <published>2015-01-30T22:59:45Z</published>
    <summary type="html">Hi, &lt;br /&gt;&lt;br /&gt;I&amp;#39;m currently trying out this upload feature and I wonder if there is an actual limit for the file size.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve currently set the limit to 1009715200 (1GB\) and uploads of 1GB files work.&lt;br /&gt;&lt;br /&gt;But if I put in for example 3029145600 and try to upload a 2GB file it stops after about 100MB.&lt;br /&gt;&lt;br /&gt;Is there something like an internal limit for that value which makes it fall back to the 100MB standard value if it&amp;#39;s exceeded?&lt;br /&gt;&lt;br /&gt;Thanks &amp;amp; BR&lt;br /&gt;&lt;br /&gt;Daniel&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Edit:&lt;br /&gt;&lt;br /&gt;Ok, the limit is 2147483647, it&amp;#39;s an Integer &lt;img alt="emoticon" src="@theme_images_path@/emoticons/sad.gif" &gt;</summary>
    <dc:creator>Daniel S.</dc:creator>
    <dc:date>2015-01-30T22:59:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: FileSizeLimitExceededException on Primefaces portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43796840" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43796840</id>
    <updated>2014-10-10T14:24:02Z</updated>
    <published>2014-10-10T14:24:02Z</published>
    <summary type="html">Hi Ignacio,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m very glad to know that it is working for you now. Thanks for using Liferay Faces. &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;Neil</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2014-10-10T14:24:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: FileSizeLimitExceededException on Primefaces portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43776887" />
    <author>
      <name>Ignacio Santos Alonso</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43776887</id>
    <updated>2014-10-10T06:45:38Z</updated>
    <published>2014-10-10T06:45:38Z</published>
    <summary type="html">Hi Neil,&lt;br /&gt;&lt;br /&gt;I had only tried with large files, but small files ( &amp;lt;100MB ) work ok and if I check the log I see the error I posted above about size.&lt;br /&gt;So I tried applying your solution to the Primefaces demo portlet and deployed again... and it works perfectly!&lt;br /&gt;I&amp;#39;ll check my own project and see what&amp;#39;s missing.&lt;br /&gt;&lt;br /&gt;Thank you very much for pointing me in the right direction.&lt;br /&gt;&lt;br /&gt;Cheers.</summary>
    <dc:creator>Ignacio Santos Alonso</dc:creator>
    <dc:date>2014-10-10T06:45:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: FileSizeLimitExceededException on Primefaces portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43750553" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43750553</id>
    <updated>2014-10-09T17:08:00Z</updated>
    <published>2014-10-09T17:08:00Z</published>
    <summary type="html">Hi Ignacio,&lt;br /&gt;&lt;br /&gt;Does the primefaces3-portlet demo work for small file uploads? Or does it only fail for large (&amp;gt; 100mb) uploads?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Neil</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2014-10-09T17:08:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: FileSizeLimitExceededException on Primefaces portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43728699" />
    <author>
      <name>Ignacio Santos Alonso</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43728699</id>
    <updated>2014-10-09T11:54:24Z</updated>
    <published>2014-10-09T11:54:24Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Thanks a lot for the tip Neil,I finally got rid of the error but the file upload component still doesn't work.&lt;br&gt;It seems to upload the file (it shows a progress bar and the larger the file, the longer it takes to fill the bar) but when it has finished loading the file it does nothing.&lt;br&gt;The fileUploadListener is never called. &lt;br&gt;&lt;br&gt;VIEW.XHTML (RELEVANT CODE)&lt;br&gt;&lt;pre&gt;&lt;code&gt;
&amp;lt;p:fileupload fileUploadListener="#{migradorBean.handleFileUpload}" mode="advanced" uploadLabel="Cargar" cancelLabel="Cancelar" label="Seleccione archivo ZIP a importar" /&amp;gt;
				  &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;p:messages id="msgs" showDetail="true" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;BACKING BEAN (RELEVANT CODE) -&amp;gt; The log.info message never shows up, neither does the faces message&lt;br&gt;&lt;pre&gt;&lt;code&gt;
public void handleFileUpload(FileUploadEvent event) {
    	log.info("Entrando en fileUploadListener");
    	FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO,"Fichero "+ event.getFile().getFileName() + " cargado","Se procede a importar la comunidad");  
        FacesContext.getCurrentInstance().addMessage(null, msg); 
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;WEB.XML&lt;br&gt;&lt;pre&gt;&lt;code&gt;
&amp;lt;!--?xml version="1.0" encoding="UTF-8"?--&amp;gt;
&amp;lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"&amp;gt;
  	&amp;lt;!-- Instruct Mojarra to utilize JBoss-EL instead of the EL implementation provided by the servlet container. --&amp;gt;
	&amp;lt;context-param&amp;gt;
		&amp;lt;param-name&amp;gt;com.sun.faces.expressionFactory&amp;lt;/param-name&amp;gt;
		&amp;lt;param-value&amp;gt;org.jboss.el.ExpressionFactoryImpl&amp;lt;/param-value&amp;gt;
	&amp;lt;/context-param&amp;gt;
  &amp;lt;!-- Workaround for http://issues.liferay.com/browse/FACES-1194 --&amp;gt;
	&amp;lt;context-param&amp;gt;
		&amp;lt;param-name&amp;gt;com.liferay.faces.bridge.primeFileUploadForceResourceURL&amp;lt;/param-name&amp;gt;
		&amp;lt;param-value&amp;gt;true&amp;lt;/param-value&amp;gt;
	&amp;lt;/context-param&amp;gt;
  &amp;lt;!-- http://www.mastertheboss.com/jboss-web/primefaces/primefaces-file-upload-example --&amp;gt;
 &amp;lt;!-- No incluido de momento --&amp;gt;
  &amp;lt;!-- Servlet para arrancar el listener de message bus que permite funcionar al quartz --&amp;gt;  
  &amp;lt;servlet&amp;gt;
    &amp;lt;servlet-name&amp;gt;ServletInitializer&amp;lt;/servlet-name&amp;gt;
    &amp;lt;servlet-class&amp;gt;es.juntadeandalucia.ced.migrador_comunidades.arq.ServletInitializer&amp;lt;/servlet-class&amp;gt;
    &amp;lt;load-on-startup&amp;gt;1&amp;lt;/load-on-startup&amp;gt;
  &amp;lt;/servlet&amp;gt;
  &amp;lt;servlet&amp;gt;
    &amp;lt;servlet-name&amp;gt;Faces Servlet&amp;lt;/servlet-name&amp;gt;
    &amp;lt;servlet-class&amp;gt;javax.faces.webapp.FacesServlet&amp;lt;/servlet-class&amp;gt;
    &amp;lt;load-on-startup&amp;gt;1&amp;lt;/load-on-startup&amp;gt;
  &amp;lt;/servlet&amp;gt;
  &amp;lt;servlet-mapping&amp;gt;
    &amp;lt;servlet-name&amp;gt;Faces Servlet&amp;lt;/servlet-name&amp;gt;
    &amp;lt;url-pattern&amp;gt;*.xhtml&amp;lt;/url-pattern&amp;gt;
  &amp;lt;/servlet-mapping&amp;gt;
  &amp;lt;security-constraint&amp;gt;
    &amp;lt;web-resource-collection&amp;gt;
      &amp;lt;web-resource-name&amp;gt;Facelet View XHTML&amp;lt;/web-resource-name&amp;gt;
      &amp;lt;url-pattern&amp;gt;*.xhtml&amp;lt;/url-pattern&amp;gt;
    &amp;lt;/web-resource-collection&amp;gt;
    &amp;lt;auth-constraint&amp;gt;
      &amp;lt;role-name&amp;gt;nobody&amp;lt;/role-name&amp;gt;
    &amp;lt;/auth-constraint&amp;gt;
  &amp;lt;/security-constraint&amp;gt;
  &amp;lt;security-role&amp;gt;
    &amp;lt;role-name&amp;gt;nobody&amp;lt;/role-name&amp;gt;
  &amp;lt;/security-role&amp;gt;
&amp;lt;/web-app&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;PORTLET.XML&lt;br&gt;&lt;pre&gt;&lt;code&gt;
&amp;lt;!--?xml version="1.0"?--&amp;gt;

&amp;lt;portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0"&amp;gt;
	&amp;lt;portlet&amp;gt;
		&amp;lt;portlet-name&amp;gt;blablabla&amp;lt;/portlet-name&amp;gt;
		&amp;lt;display-name&amp;gt;blablabla&amp;lt;/display-name&amp;gt;
		&amp;lt;portlet-class&amp;gt;javax.portlet.faces.GenericFacesPortlet&amp;lt;/portlet-class&amp;gt;
		&amp;lt;init-param&amp;gt;
			&amp;lt;name&amp;gt;javax.portlet.faces.defaultViewId.view&amp;lt;/name&amp;gt;
			&amp;lt;value&amp;gt;/views/view.xhtml&amp;lt;/value&amp;gt;
		&amp;lt;/init-param&amp;gt;
		&amp;lt;init-param&amp;gt;
			&amp;lt;name&amp;gt;javax.portlet.faces.defaultViewId.help&amp;lt;/name&amp;gt;
			&amp;lt;value&amp;gt;/views/help.xhtml&amp;lt;/value&amp;gt;
		&amp;lt;/init-param&amp;gt;
		&amp;lt;init-param&amp;gt;
			&amp;lt;name&amp;gt;javax.faces.UPLOADED_FILE_MAX_SIZE&amp;lt;/name&amp;gt;
			&amp;lt;value&amp;gt;504857600&amp;lt;/value&amp;gt;
		&amp;lt;/init-param&amp;gt;
		&amp;lt;expiration-cache&amp;gt;0&amp;lt;/expiration-cache&amp;gt;
		&amp;lt;supports&amp;gt;
			&amp;lt;mime-type&amp;gt;text/html&amp;lt;/mime-type&amp;gt;
			&amp;lt;portlet-mode&amp;gt;view&amp;lt;/portlet-mode&amp;gt;
			&amp;lt;portlet-mode&amp;gt;help&amp;lt;/portlet-mode&amp;gt;
		&amp;lt;/supports&amp;gt;
		&amp;lt;portlet-info&amp;gt;
			&amp;lt;title&amp;gt;blablabla&amp;lt;/title&amp;gt;
			&amp;lt;short-title&amp;gt;blablabla&amp;lt;/short-title&amp;gt;
			&amp;lt;keywords&amp;gt;blablabla&amp;lt;/keywords&amp;gt;
		&amp;lt;/portlet-info&amp;gt;
		&amp;lt;security-role-ref&amp;gt;
			&amp;lt;role-name&amp;gt;administrator&amp;lt;/role-name&amp;gt;
		&amp;lt;/security-role-ref&amp;gt;
		&amp;lt;security-role-ref&amp;gt;
			&amp;lt;role-name&amp;gt;guest&amp;lt;/role-name&amp;gt;
		&amp;lt;/security-role-ref&amp;gt;
		&amp;lt;security-role-ref&amp;gt;
			&amp;lt;role-name&amp;gt;power-user&amp;lt;/role-name&amp;gt;
		&amp;lt;/security-role-ref&amp;gt;
		&amp;lt;security-role-ref&amp;gt;
			&amp;lt;role-name&amp;gt;user&amp;lt;/role-name&amp;gt;
		&amp;lt;/security-role-ref&amp;gt;
	&amp;lt;/portlet&amp;gt;
&amp;lt;/portlet-app&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;I'm working with the libraries supplied by the Primefaces portlet (primefaces3-portlet-3.2.4-ga5) and some other additional jar.&lt;br&gt;I'm not even sure that the Primefaces portlet installed on our Liferay is working fine, because when it's done loading the attachments for the job application it does nothing, it doesn't update the attached files table.&lt;br&gt;&lt;br&gt;There's probably a common problem for both the Primefaces Liferay demo portlet and my portlet.&lt;br&gt;&lt;br&gt;Any ideas?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Ignacio Santos Alonso</dc:creator>
    <dc:date>2014-10-09T11:54:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: FileSizeLimitExceededException on Primefaces portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43703570" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43703570</id>
    <updated>2014-10-08T22:51:32Z</updated>
    <published>2014-10-08T22:51:32Z</published>
    <summary type="html">Hi Ignacio,&lt;br /&gt;&lt;br /&gt;When using p:fileUpload in a portlet environment, Liferay Faces Bridge performs all of the file upload processing of the multipart request.&lt;br /&gt;&lt;br /&gt;The 100MB limit is a default provided by Liferay Faces Bridge in &lt;a href="https://github.com/liferay/liferay-faces/blob/3.2.4-ga5/bridge-impl/src/main/java/com/liferay/faces/bridge/context/map/RequestParameterMapMultiPartImpl.java#L79"&gt;RequestParameterMapMultiPartImpl.java&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;You can increase the limit by specifying an init-param in WEB-INF/portlet.xml named &lt;a href="https://github.com/liferay/liferay-faces/blob/3.2.4-ga5/bridge-impl/src/main/java/com/liferay/faces/bridge/context/map/RequestParameterMapMultiPartImpl.java#L77"&gt;javax.faces.UPLOADED_FILE_MAX_SIZE&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Note: When version 3.2.5-ga6 is released, the name of the init-param will be &lt;a href="https://github.com/liferay/liferay-faces/blob/3.2.x/bridge-impl/src/main/java/com/liferay/faces/bridge/config/PortletConfigParam.java#L110"&gt;com.liferay.faces.bridge.uploadedFileMaxSize&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Kind Regards,&lt;br /&gt;&lt;br /&gt;Neil</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2014-10-08T22:51:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: FileSizeLimitExceededException on Primefaces portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43677512" />
    <author>
      <name>Ignacio Santos Alonso</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43677512</id>
    <updated>2014-10-08T12:11:25Z</updated>
    <published>2014-10-08T12:11:25Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I've also tried using the conventional upload which worked in other versions of the portal, not using the Primefaces upload tag but instead a very basic input type="file" tag.&lt;br&gt;&lt;br&gt;I get the same error:&lt;br&gt;&lt;pre&gt;&lt;code&gt;
Caused by: org.apache.commons.fileupload.FileUploadBase$FileSizeLimitExceededException: The field zipComunidad exceeds its maximum permitted  size of 104857600 bytes.
	at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl$FileItemStreamImpl$1.raiseError(FileUploadBase.java:763)
	... 158 more
11:50:36,064 ERROR [RequestParameterMapMultiPartImpl] Stream closed
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;I'm still using Primefaces web.xml configuration and libraries though but the problem might be related to some portal misconfiguration or bug. I'll keep running tests.&lt;br&gt;&lt;br&gt;Any help will be appreciated.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Ignacio Santos Alonso</dc:creator>
    <dc:date>2014-10-08T12:11:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: FileSizeLimitExceededException on Primefaces portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43673130" />
    <author>
      <name>Ignacio Santos Alonso</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43673130</id>
    <updated>2014-10-08T11:34:39Z</updated>
    <published>2014-10-08T11:34:39Z</published>
    <summary type="html">Hi/Hola Juan,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using a 6.2 CE.&lt;br /&gt;&lt;br /&gt;Thanks.</summary>
    <dc:creator>Ignacio Santos Alonso</dc:creator>
    <dc:date>2014-10-08T11:34:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: FileSizeLimitExceededException on Primefaces portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43674543" />
    <author>
      <name>Juan Gonzalez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43674543</id>
    <updated>2014-10-08T10:46:42Z</updated>
    <published>2014-10-08T10:46:42Z</published>
    <summary type="html">Hola Ignacio,&lt;br /&gt;&lt;br /&gt;what Liferay version are you using?</summary>
    <dc:creator>Juan Gonzalez</dc:creator>
    <dc:date>2014-10-08T10:46:42Z</dc:date>
  </entry>
  <entry>
    <title>FileSizeLimitExceededException on Primefaces portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43672378" />
    <author>
      <name>Ignacio Santos Alonso</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43672378</id>
    <updated>2014-10-08T09:53:03Z</updated>
    <published>2014-10-08T09:53:03Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello all,&lt;br&gt;&lt;br&gt;I'm using the "official" Primefaces portlet (primefaces3-portlet-3.2.4-ga5) as a base for a development where I have to upload large files to the server.&lt;br&gt;I've been facing an issue when uploading files on both portlets and I don't know what to do about it:&lt;br&gt;&lt;br&gt;&lt;blockquote&gt;&lt;br&gt;Caused by: org.apache.commons.fileupload.FileUploadBase$FileSizeLimitExceededException: The field _1_WAR_primefaces3portlet_INSTANCE_Kjepi6YToLlM_:j_idt14:c2:j_idt33:c2a:j_idt44 exceeds its maximum permitted  size of 104857600 bytes.&lt;br&gt;	at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl$FileItemStreamImpl$1.raiseError(FileUploadBase.java:763)&lt;br&gt;	... 156 more&lt;br&gt;08:58:22,043 ERROR [RequestParameterMapMultiPartImpl:378] Stream closed&lt;br&gt;java.io.IOException: Stream closed&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;br&gt;I run into this exception both with the official Primefaces portlet and my own portlet.&lt;br&gt;On my portlet I tried using this configuration on web.xml:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
 &amp;lt;!-- http://www.mastertheboss.com/jboss-web/primefaces/primefaces-file-upload-example --&amp;gt;
  &amp;lt;filter&amp;gt;
	  &amp;lt;filter-name&amp;gt;PrimeFaces FileUpload Filter&amp;lt;/filter-name&amp;gt;
	  &amp;lt;filter-class&amp;gt;org.primefaces.webapp.filter.FileUploadFilter&amp;lt;/filter-class&amp;gt;
	  &amp;lt;init-param&amp;gt;
	    &amp;lt;param-name&amp;gt;thresholdSize&amp;lt;/param-name&amp;gt;
	    &amp;lt;param-value&amp;gt;500000000&amp;lt;/param-value&amp;gt;
	  &amp;lt;/init-param&amp;gt;
  &amp;lt;/filter&amp;gt;
  &amp;lt;filter-mapping&amp;gt;
	  &amp;lt;filter-name&amp;gt;PrimeFaces FileUpload Filter&amp;lt;/filter-name&amp;gt;
	  &amp;lt;servlet-name&amp;gt;Faces Servlet&amp;lt;/servlet-name&amp;gt;
  &amp;lt;/filter-mapping&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;I also tried setting extremely large file size limits on all possible settings of the Control Panel -&amp;gt; Server administration -&amp;gt; File uploads.&lt;br&gt;In addition to that, we also set the property com.liferay.portal.upload.UploadServletRequestImpl.max.size in portal-ext.properties, as suggested in&lt;br&gt;https://www.liferay.com/community/forums/-/message_boards/message/6036219&lt;br&gt;&lt;br&gt;Nothing seems to work, we keep getting the same error as if we hadn't changed the file size limits. &lt;br&gt;&lt;br&gt;Is this a bug in Liferay?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Ignacio Santos Alonso</dc:creator>
    <dc:date>2014-10-08T09:53:03Z</dc:date>
  </entry>
</feed>
