Details

    • Assignee Priority:
      P2

      Description


      I am using an ace:chart that graphs 12 month of the year. When all values are null, the chart renders fine with nothing showing up. However, when I attempt to dynamically add chart values for a month, I get the following exception thrown:

      WARNING: queued exception
      java.lang.NullPointerException
      at org.icefaces.ace.model.chart.CartesianSeries.getDataJSON(CartesianSeries.java:151)
      at org.icefaces.ace.component.chart.ChartRenderer.encodeScript(ChartRenderer.java:123)
      at org.icefaces.ace.component.chart.ChartRenderer.encodeBegin(ChartRenderer.java:94)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1755)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
      at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:49)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
      at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:73)
      at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:61)
      at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:209)
      at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:130)
      at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:71)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1764)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760)
      at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:142)
      at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:981)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1757)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:391)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

        Activity

        Hide
        Nils Lundquist added a comment - - edited

        Please attach test case.

        Show
        Nils Lundquist added a comment - - edited Please attach test case.
        Hide
        Nils Lundquist added a comment - - edited

        From your description this is likely a configuration / ease of use / api shortcoming type issue. I'll need a test case to go further.

        Show
        Nils Lundquist added a comment - - edited From your description this is likely a configuration / ease of use / api shortcoming type issue. I'll need a test case to go further.
        Hide
        Brad Kroeger added a comment - - edited

        Test case showing dynamically adding a value to a chart

        Show
        Brad Kroeger added a comment - - edited Test case showing dynamically adding a value to a chart
        Hide
        Nils Lundquist added a comment -

        Revision #32641
        Committed by nils.lundquist
        A minute ago
        ICE-8766 - CartestianSeries now handles null point values.

        Show
        Nils Lundquist added a comment - Revision #32641 Committed by nils.lundquist A minute ago ICE-8766 - CartestianSeries now handles null point values.

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Brad Kroeger
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: