5 Replies Latest reply on Apr 4, 2008 5:12 PM by Alexey Kakunin

    fileUpload - NullPointerException: Colors cannot be null

    kA kA Newbie

      Hi.

      I have a strange problem with the fileUpload component.
      I got the following NullPointerException:



      13:42:46,630 ERROR [[default]] Servlet.service() for servlet default threw exception
      java.lang.NullPointerException: Colors cannot be null
      at java.awt.GradientPaint.<init>(GradientPaint.java:71)
      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:221)
      at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:157)
      at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:333)
      ....


      That's the component;


      ...
      <rich:fileUpload id="uploadComponent" uploadData="#{testBean.data}" fileUploadListener="#{testBean.upload}" />
      ...


      I'm using the JSF-RI, Seam and Facelets.

      Did anybody get the same exception?
      Any ideas?