0 Replies Latest reply on Mar 10, 2011 7:14 AM by Walt Corey

    java.lang.IllegalArgumentException: Requires index >= 0.      at org.jfree.util.AbstractObjectList.set(AbstractObjectList.java:127)      at org.jfree.util.BooleanList.setBoolean(BooleanList.java:84)      at org.jfree.chart.renderer.AbstractRenderer.setSeriesItemLabel

    Walt Corey Newbie

      Trying to create a linechart via the following code with seam 2.2.1GA under Jboss 5.1.0.GA
      I cannot discern where the negative index is coming from. Any suggestions or ideas?


           <rich:tab>
               <f:facet name="label">
                   <h:panelGroup><h:graphicImage style="vertical-align: middle; padding-right: 4px;"/>Chart (#{DailyActivity.resultList.size()})</h:panelGroup>
              </f:facet>
              <div class="results">
                               <p:linechart title="Activity" domainAxisLabel="Date"
                                    domainLabelPosition="UP_45" legend="true" width="1000" height="600">
                                    <p:series key="inserts">
                                         <ui:repeat value="#{DailyActivity.resultList}" var="_day">
                                              <p:data key="#{_day.date}" value="#{_day.dayTotal.raw.inserts}" />
                                         </ui:repeat>
                                    </p:series>
                                    <p:series key="deletes">
                                         <ui:repeat value="#{DailyActivity.resultList}" var="_day">
                                              <p:data key="#{_day.date}" value="#{_day.dayTotal.raw.deletes}" />
                                         </ui:repeat>
                                    </p:series>
      
                                    <p:series key="smoothed Inserts">
                                         <ui:repeat value="#{DailyActivity.resultList}" var="_day">
                                              <p:data key="#{_day.date}"
                                                   value="#{_day.dayTotal.rolling.inserts}" />
                                         </ui:repeat>
                                    </p:series>
      
                                    <p:series key="smoothed Deletes">
                                         <ui:repeat value="#{DailyActivity.resultList}" var="_day">
                                              <p:data key="#{_day.date}"
                                                   value="#{_day.dayTotal.rolling.deletes}" />
                                         </ui:repeat>
                                    </p:series>
                               </p:linechart>
                </div>
           </rich:tab>
      </rich:tabPanel>
      





      java.lang.IllegalArgumentException: Requires index >= 0.
           at org.jfree.util.AbstractObjectList.set(AbstractObjectList.java:127)
           at org.jfree.util.BooleanList.setBoolean(BooleanList.java:84)
           at org.jfree.chart.renderer.AbstractRenderer.setSeriesItemLabelsVisible(AbstractRenderer.java:1798)
           at org.jfree.chart.renderer.AbstractRenderer.setSeriesItemLabelsVisible(AbstractRenderer.java:1784)
           at org.jfree.chart.renderer.AbstractRenderer.setSeriesItemLabelsVisible(AbstractRenderer.java:1773)
           at org.jboss.seam.pdf.ui.UIChartSeries.configureSeries(UIChartSeries.java:182)
           at org.jboss.seam.pdf.ui.UIChartSeries.encodeEnd(UIChartSeries.java:141)
           at org.jboss.seam.pdf.ui.ITextComponent.encode(ITextComponent.java:300)
           at org.jboss.seam.pdf.ui.ITextComponent.encodeChildren(ITextComponent.java:256)
           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
           at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
           at org.richfaces.renderkit.TabRendererBase.encodeChildren(TabRendererBase.java:149)
           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
           at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
           at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:266)
           at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:261)
           at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
           at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:166)
           at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:83)
           at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:157)
           at org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:124)
           at org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:685)
           at org.ajax4jsf.component.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:556)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)