0 Replies Latest reply on Jul 29, 2008 5:59 PM by John Buttitto

    Progress Bar.

    John Buttitto Newbie

      When I use the Rich face Progress bar I tend to get intermittent color errors.

      Anyone see this before, or know how I can shake this error..

      Below is the code.

      java.lang.NullPointerException: Colors cannot be null
      at java.awt.GradientPaint.(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)
      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:175)
      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:182)
      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.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:446)
      at java.lang.Thread.run(Thread.java:595)


      <f:subview id="reup" >
      <c:if test="${ConfigurationBean.currentres.actionmonitor.enabled == true}">
      <a4j:form id="waitForm" ajaxSubmit="true" reRender="resourceListPanel">
      <h:outputText style="font-weight: bold;" value="#{ConfigurationBean.currentres.actionmonitor.actionname} #{ConfigurationBean.currentres.actionmonitor.resinvolved}"></h:outputText>

      <a4j:outputPanel id="progressPanel">
      <rich:progressBar
      value="#{ConfigurationBean.currentres.actionmonitor.value}"
      mode="ajax"
      interval="#{ConfigurationBean.currentres.actionmonitor.time}"
      label="#{ConfigurationBean.currentres.actionmonitor.value} %"
      enabled="#{ConfigurationBean.currentres.actionmonitor.enabled}"
      minValue="0" maxValue="100" reRenderAfterComplete="reup">
      <f:facet name="complete">

      </f:facet>
      </rich:progressBar>
      </a4j:outputPanel>
      </a4j:form>
      </c:if>
      </f:subview>
      </ui:composition>