[
http://jira.jboss.com/jira/browse/RF-2689?page=comments#action_12406062 ]
roy kachouh commented on RF-2689:
---------------------------------
I am still seeing this issue...I just downloaded richfaces 3.2 GA...I tried to upload a
file with the following tag,
Please note, I did not make any changes to the createTempFiles init-param, in other
words...the default is taken...
<rich:fileUpload
uploadData="#{FileUploader.data}"
fileUploadListener="#{FileUploader.listen}"
autoclear="true"
acceptedTypes="jpg, jpeg, png, gif"
addControlLabel="Add Photo..."
clearControlLabel="Clear Photo"
stopEntryControlLabel="Stop"
maxFilesQuantity="1">
<f:facet name="label">
<h:outputText value="{_KB}KB from {KB}KB uploaded ---
{mm}:{ss}" />
</f:facet>
</rich:fileUpload>
fileUpload:java.lang.NullPointerException appears in case
createTempFiles init parametr is set to "false"
---------------------------------------------------------------------------------------------------------
Key: RF-2689
URL:
http://jira.jboss.com/jira/browse/RF-2689
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: 3.2.0.CR4
Reporter: Mikhail Vitenkov
Assigned To: Aleksej Yanul
Fix For: 3.2.0
Step 1.In web.xml add following code:
<init-param>
<param-name>createTempFiles</param-name>
<param-value>false</param-value>
</init-param>
Step 2. Navigate to page contained fileUpload component.
Step 3. Add several files from "Choose file" modal dialog through the
"Add" command button.
Step 4. Upload them & verify stdout.
Actual behavior:
following error take place:
java.lang.NullPointerException: Colors cannot be null
at java.awt.GradientPaint.<init>(Unknown Source)
at
org.richfaces.renderkit.html.images.ProgressBarAnimatedBg.paint(ProgressBarAnimatedBg.java:92)
at org.ajax4jsf.resource.AnimationResource.send(AnimationResource.java:80)
at org.ajax4jsf.resource.ResourceLifecycle.sendResource(ResourceLifecycle.java:227)
at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:163)
at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:333)
at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
at
org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:195)
at
org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:260)
at org.ajax4jsf.Filter.doFilter(Filter.java:165)
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:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira