It seems that file is never uploaded, progress bar doesn't show anything and there is also error in the server log, root cause seems to be Caused by: java.lang.NumberFormatException: null at java.lang.Long.parseLong(Long.java:404) [rt.jar:1.7.0_25] at java.lang.Long.parseLong(Long.java:483) [rt.jar:1.7.0_25] at org.richfaces.context.FileUploadFacesContextFactory.getFacesContext(FileUploadFacesContextFactory.java:129) [richfaces-components-ui-4.3.2.Final.jar:4.3.2.Final] at com.sun.faces.context.InjectionFacesContextFactory.getFacesContext(InjectionFacesContextFactory.java:121) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1] at org.jboss.portletbridge.bridge.controller.Jsf20ControllerImpl.getFacesContext(Jsf20ControllerImpl.java:621) [portletbridge-impl-3.2.1.Final-redhat-1.jar:3.2.1.Final-redhat-1] at org.jboss.portletbridge.bridge.controller.Jsf20ControllerImpl.renderResource(Jsf20ControllerImpl.java:278) [portletbridge-impl-3.2.1.Final-redhat-1.jar:3.2.1.Final-redhat-1] ... 136 more Steps to reproduce 1. Start JPP 2. Deploy Showcase portlet 3. Go to Inputs/rich:fileUpload 4. Try to deploy some image
Tested with PBR 3.2.1.Final and RF 4.3.2
Is the PBR richfaces extension jar included in the showcase war? The stacktrace looks like it isn't present.
Yes, it's there, I thought that richfaces4-depchain should add it to the project https://github.com/portletbridge/portletbridge/blob/3.2.1.Final/examples/richfaces-showcase/pom.xml#L65
Try removing the beans.xml and the references to the portlet filter from portlet.xml I think the issue is that the CDI integration library for portlets is wrapping the portlet request into a http one, which makes the RF File Upload context factory kick in, and not the PBR one for RF. If that fix works for you, not sure if we can do anything code related. It may need to be updated docs stating that rich:fileUpload can't be used in a CDI portlet.
Ok, I can confirm that this behaviour is caused by adding CDI to the portlet so I suppose we need to just update the docs.
Jared, can you please provide me a link for documentation so I can close this issue?
This is now resolved in GateIn master by GTNPORTAL-3275. CDI Portlet Integration library was upgraded, and the new version defaults to not wrapping multipart requests in the filter, but it is also possible to revert to wrapping all requests.
Verified on JPP 6.1.1.DR1-prod that the updated library fixes this issue.