[
https://jira.jboss.org/jira/browse/RF-5166?page=com.atlassian.jira.plugin...
]
Mikhail Vitenkov commented on RF-5166:
--------------------------------------
Plus exception take place:
EVERE: An exception occurred
javax.faces.FacesException: Exception while decoding component : {Component-Path : [Class:
org.ajax4jsf.component.AjaxViewRoot,ViewId: /pages/Rich/Rich.jsp][Class:
javax.faces.component.html.HtmlForm,Id: formID][Class:
javax.faces.component.html.HtmlPanelGrid,Id: richGridID][Class:
javax.faces.component.html.HtmlPanelGroup,Id: j_id_jsp_357983163_12][Class:
javax.faces.component.UINamingContainer,Id: FileUploadSubviewID][Class:
org.richfaces.component.html.HtmlFileUpload,Id: fileUploadID]}
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:583)
at javax.faces.component.UIInput.decode(UIInput.java:231)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:709)
at javax.faces.component.UIInput.processDecodes(UIInput.java:149)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:705)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:705)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:705)
at javax.faces.component.UIForm.processDecodes(UIForm.java:65)
at org.ajax4jsf.component.AjaxViewRoot$1.invokeContextCallback(AjaxViewRoot.java:392)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
at
org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:151)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:307)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:419)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:550)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at
org.richfaces.renderkit.FileUploadRendererBase.doDecode(FileUploadRendererBase.java:135)
at org.ajax4jsf.renderkit.RendererBase.decode(RendererBase.java:76)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:579)
... 38 more
fileUpload: fileUploadListener isn't call under myfaces.
--------------------------------------------------------
Key: RF-5166
URL:
https://jira.jboss.org/jira/browse/RF-5166
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: myfaces 1.2.5, IE6, IE7, FF 3.1.3, Safari 3.1, Opera
9.62(3.3.0.BETA1)
Reporter: Mikhail Vitenkov
Assignee: Nick Belaevski
#1. Set org.apache.myfaces.CHECK_EXTENSIONS_FILTER context parameter to "false"
in web.xml;
#2. Set fileUploadListener="#{fileUpload.fileUploadListener}", where listener
defined following way:
public void fileUploadListener(UploadEvent event) throws Exception{
UploadItem upload = event.getUploadItem();
if (upload.isTempFile()) {
File file = upload.getFile();
System.out.println("FileUpload.fileUploadListener()");
} else {
ByteArrayOutputStream b = new ByteArrayOutputStream();
b.write(upload.getData());
}
System.out.println("FileUpload.fileUploadListener()");
}
#3. Navigate to page with component & try to upload any valid file(satisfied with
maxFilesQuantity, size restriction and so on).
#4. Verify "FileUpload.fileUploadListener()" message in console.
Actual behavior:
fileUploadListener was not fired.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira