0 Replies Latest reply on Jul 1, 2008 9:58 AM by John Buttitto

    Progress Bar issues.

    John Buttitto Newbie

      With repeated use of the Richfaces progress bar I get:

      07:49:45,499 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet
      threw exception
      java.lang.NullPointerException: Colors cannot be null
      at java.awt.GradientPaint.(GradientPaint.java:71)
      at org.richfaces.renderkit.html.images.ProgressBarAnimatedBg.paint(Progr
      essBarAnimatedBg.java:92)
      at org.ajax4jsf.resource.AnimationResource.send(AnimationResource.java:8
      0)
      at org.ajax4jsf.resource.ResourceLifecycle.sendResource(ResourceLifecycl
      e.java:221)
      at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:1
      57)
      at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceSe
      rvice.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(Interne
      tResourceService.java:195)
      at org.ajax4jsf.resource.InternetResourceService.serviceResource(Interne
      tResourceService.java:141)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:260)
      at org.ajax4jsf.Filter.doFilter(Filter.java:175)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:179)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
      onnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:262)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
      6)
      at java.lang.Thread.run(Thread.java:595)


      When I get this error usually I get a blank line on the screen and onloy if I force a rerender of my JSF page the perf bar will suddenly appear. I am trying to figure out what I am doing wrong, Any help is appreciated.

      SHould mention I am using JSF with Rcihfaces on JBOSS portal 2.6.5. SP1
      with the B2 portal bridge. I am also doing the "Server Side" impl of the perf bar.

      I get the issue about 1 out of every 10 usages. Others get it more.


      0