[richfaces-issues] [JBoss JIRA] Created: (RF-2403) FileUpload: NPE in org.richfaces.renderkit.html.images.ColorUtils
Juergen Zimmermann (JIRA)
jira-events at lists.jboss.org
Wed Mar 5 09:47:58 EST 2008
FileUpload: NPE in org.richfaces.renderkit.html.images.ColorUtils
-----------------------------------------------------------------
Key: RF-2403
URL: http://jira.jboss.com/jira/browse/RF-2403
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: JDK 6u4, RF 3.2.0CR1, Facelets 1.1.14, JBossAS 4.2.2, JSF RI 1.2_08
Reporter: Juergen Zimmermann
When invoking a JSF page with <rich:fileUpload> I get a NPE in the JBoss console with the stacktrace below.
Looking at http://anonsvn.jboss.org/repos/richfaces/trunk/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images I'd recommend for the methode ColorUtils.adjustLightness() to test whether the object c is null. Just the same as in method overwriteAlpha.
2008-03-05 15:20:08,663 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/hska].[jsfServlet]] Servlet.service() for servlet jsfServlet threw exception
java.lang.NullPointerException
at org.richfaces.renderkit.html.images.ColorUtils.adjustLightness(ColorUtils.java:202)
at org.richfaces.renderkit.html.images.ProgressBarAnimatedBg.createMainStage(ProgressBarAnimatedBg.java:105)
at org.richfaces.renderkit.html.images.ProgressBarAnimatedBg.paint(ProgressBarAnimatedBg.java:87)
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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
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:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:566)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
at java.lang.Thread.run(Thread.java:619)
--
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
More information about the richfaces-issues
mailing list