Upload File Portlet Failed with IllegalArgumentException (Doc ID 1564570.1)

Last updated on NOVEMBER 12, 2015

Applies to:

Oracle WebCenter Portal - Version 11.1.1.6.0 to 11.1.1.7.0 [Release 11g]
Information in this document applies to any platform.

Symptoms

Portletize JSF page which is using ADF faces component <af:inputFile> to upload component and follow the "<Note 1530144.1> Upload File Portlet Does NOT Warn File Size Limit" to configure trinidad-config.xml and web.xml to limit file size.
Still get and error attempting to upload specific file which size is greater than configured max size.

WC_Portlet server logs, shows:

<Feb 22, 2013 5:51:50 PM CST> <Error> <org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl> <BEA-000000> <
java.lang.IllegalArgumentException
       at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler$Disposition.<init>(MultipartFormHandler.java:811)
       at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.getNextPart(MultipartFormHandler.java:188)
       at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest(FileUploadConfiguratorImpl.java:125)
       at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:562)
       at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:212)
       at oracle.portlet.bridge.adf.context.ADFPortletFacesContextFactoryImpl.runConfigurators(ADFPortletFacesContextFactoryImpl.java:116)
       at oracle.portlet.bridge.adf.context.ADFPortletFacesContextFactoryImpl.getFacesContext(ADFPortletFacesContextFactoryImpl.java:96)
       at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
       at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.getFacesContext(BridgeImpl.java:1590)
       at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:336)
       at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:692)
       at javax.portlet.faces.GenericFacesPortlet.doActionDispatchInternal(GenericFacesPortlet.java:627)
       at javax.portlet.faces.GenericFacesPortlet.processAction(GenericFacesPortlet.java:287)
       at oracle.portlet.bridge.adf.application.ADFBridgePortlet.processAction(ADFBridgePortlet.java:230)
       at com.bea.portlet.container.PortletStub.doAction(PortletStub.java:969)
       at com.bea.portlet.container.FilterChainGenerator.runFilterChain(FilterChainGenerator.java:99)
       at com.bea.portlet.container.PortletStub.processAction(PortletStub.java:332)
       at com.bea.portlet.container.AppContainer.invokeProcessAction(AppContainer.java:713)
       at com.bea.wsrp.producer.adapter.javaportlet.JavaPortletAdapter.performInteraction(JavaPortletAdapter.java:358)
       at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doPerformBlockingInteraction(MarkupServiceHandler.java:938)
       at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doService(MarkupServiceHandler.java:288)
       at com.bea.wsrp.producer.handlers.AbstractServiceHandler.service(AbstractServiceHandler.java:71)
       at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:349)
       at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:250)
       at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:208)
       ......

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms