java.lang.IllegalArgumentException: Null 'key' argument.

ZK-Tracker | paowang | 3 years ago
  1. 0

    If load a *xls* file with line chart and non-contiguous series data, ZSS will throw a exception with message *"Null 'key' argument."* The series data are incorrect when loading data into chart model. reproducing step: # load the attached file *chart-separate.xls* #* ZSS will throw a exception and doesn't draw such chart Note that another attached file *chart-separate.xlsx* won't get this issue. stack trace: {noformat} Jul 4, 2013 4:52:30 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1352 SEVERE: >>java.lang.IllegalArgumentException: Null 'key' argument. >> at org.jfree.data.DefaultKeyedValues.setValue(DefaultKeyedValues.java:229) >> at org.jfree.data.DefaultKeyedValues2D.setValue(DefaultKeyedValues2D.java:337) >> at org.jfree.data.category.DefaultCategoryDataset.setValue(DefaultCategoryDataset.java:252) >> at org.zkoss.zkex.zul.impl.JFreeChartEngine.CategoryModelToCategoryDataset(JFreeChartEngine.java:554) >> at org.zkoss.zkex.zul.impl.JFreeChartEngine.access$3300(JFreeChartEngine.java:182) >> at org.zkoss.zkex.zul.impl.JFreeChartEngine$Line.createChart(JFreeChartEngine.java:1160) >> at org.zkoss.zkex.zul.impl.JFreeChartEngine.drawChart(JFreeChartEngine.java:336) >> at org.zkoss.zul.Chart.doSmartDraw(Chart.java:242) >> at org.zkoss.zul.Chart.access$100(Chart.java:82) >> at org.zkoss.zul.Chart$SmartDrawListener.onEvent(Chart.java:223) >> at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2732) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2703) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2644) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) >> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1710) >> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1495) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:464) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:316) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:135) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) >> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) >> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) >> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) >> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) >> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) >> at org.mortbay.jetty.Server.handle(Server.java:326) >> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) >> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) >> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) >> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) {noformat}

    ZK-Tracker | 3 years ago | paowang
    java.lang.IllegalArgumentException: Null 'key' argument.
  2. 0

    If load a *xls* file with line chart and non-contiguous series data, ZSS will throw a exception with message *"Null 'key' argument."* The series data are incorrect when loading data into chart model. reproducing step: # load the attached file *chart-separate.xls* #* ZSS will throw a exception and doesn't draw such chart Note that another attached file *chart-separate.xlsx* won't get this issue. stack trace: {noformat} Jul 4, 2013 4:52:30 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1352 SEVERE: >>java.lang.IllegalArgumentException: Null 'key' argument. >> at org.jfree.data.DefaultKeyedValues.setValue(DefaultKeyedValues.java:229) >> at org.jfree.data.DefaultKeyedValues2D.setValue(DefaultKeyedValues2D.java:337) >> at org.jfree.data.category.DefaultCategoryDataset.setValue(DefaultCategoryDataset.java:252) >> at org.zkoss.zkex.zul.impl.JFreeChartEngine.CategoryModelToCategoryDataset(JFreeChartEngine.java:554) >> at org.zkoss.zkex.zul.impl.JFreeChartEngine.access$3300(JFreeChartEngine.java:182) >> at org.zkoss.zkex.zul.impl.JFreeChartEngine$Line.createChart(JFreeChartEngine.java:1160) >> at org.zkoss.zkex.zul.impl.JFreeChartEngine.drawChart(JFreeChartEngine.java:336) >> at org.zkoss.zul.Chart.doSmartDraw(Chart.java:242) >> at org.zkoss.zul.Chart.access$100(Chart.java:82) >> at org.zkoss.zul.Chart$SmartDrawListener.onEvent(Chart.java:223) >> at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2732) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2703) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2644) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) >> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1710) >> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1495) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:464) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:316) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:135) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) >> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) >> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) >> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) >> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) >> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) >> at org.mortbay.jetty.Server.handle(Server.java:326) >> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) >> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) >> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) >> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) {noformat}

    ZK-Tracker | 3 years ago | paowang
    java.lang.IllegalArgumentException: Null 'key' argument.
  3. 0

    DynamicReports • View topic - Grouped record with table headers

    dynamicreports.org | 7 months ago
    java.lang.IllegalArgumentException: Null 'key' argument.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    *User impact* can't generate report for plan with manual stage which was not started *Description* If plan has manual stage then buildDate field of AbstractResultSummary for this build is null until user manually run this particular stage. This field is used on report generator to sort data on report preparation phase. If this field is null for some records it can put record into incorrect place of collection. Then we iterate on collection expecting that first element is the earliest event in series. If at the middle of collection we found element with getStatDate() earlier than current RegularTimePeriod we can't find next corresponding RegularTimePeriod and go over 9999 years limit of JFreeChart. Also nullability of this field doesn't allow user to filter records by date on Reports UI The following appear in the log files: {noformat} java.lang.IllegalArgumentException: Null 'key' argument. at org.jfree.data.DefaultKeyedValues2D.getRowIndex(DefaultKeyedValues2D.java:184) at org.jfree.data.DefaultKeyedValues2D.setValue(DefaultKeyedValues2D.java:321) at org.jfree.data.DefaultKeyedValues2D.addValue(DefaultKeyedValues2D.java:304) at org.jfree.data.time.TimeTableXYDataset.add(TimeTableXYDataset.java:219) at com.atlassian.bamboo.reports.collector.AbstractTimePeriodCollector.writeCollaterToDataSet(AbstractTimePeriodCollector.java:202) at com.atlassian.bamboo.reports.collector.AbstractTimePeriodCollector.getDataset(AbstractTimePeriodCollector.java:83) at com.atlassian.bamboo.ww2.actions.reports.ViewReport.runReport(ViewReport.java:171) at com.atlassian.bamboo.ww2.actions.reports.ViewReport.doGenerate(ViewReport.java:128) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450) {noformat} *Workaround* Run SQL query and rebuild indexes {code} update BUILDRESULTSUMMARY set BUILD_DATE=BUILD_COMPLETED_DATE where BUILD_DATE IS NULL and BUILD_TYPE='CHAIN'; {code} *Fix* We will skip AbstractResultSummary which have this field empty, because technically this build was not even started

    Atlassian JIRA | 2 years ago | Sultan Maiyaki [Atlassian]
    java.lang.IllegalArgumentException: Null 'key' argument.
  6. 0

    Jasper report test runned from maven

    Stack Overflow | 1 year ago | Pavel Niedoba
    java.lang.IllegalArgumentException: Null 'key' argument.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Null 'key' argument.

      at org.jfree.data.DefaultKeyedValues.setValue()
    2. jfreechart
      DefaultCategoryDataset.setValue
      1. org.jfree.data.DefaultKeyedValues.setValue(DefaultKeyedValues.java:229)
      2. org.jfree.data.DefaultKeyedValues2D.setValue(DefaultKeyedValues2D.java:337)
      3. org.jfree.data.category.DefaultCategoryDataset.setValue(DefaultCategoryDataset.java:252)
      3 frames
    3. org.zkoss.zkex
      JFreeChartEngine.drawChart
      1. org.zkoss.zkex.zul.impl.JFreeChartEngine.CategoryModelToCategoryDataset(JFreeChartEngine.java:554)
      2. org.zkoss.zkex.zul.impl.JFreeChartEngine.access$3300(JFreeChartEngine.java:182)
      3. org.zkoss.zkex.zul.impl.JFreeChartEngine$Line.createChart(JFreeChartEngine.java:1160)
      4. org.zkoss.zkex.zul.impl.JFreeChartEngine.drawChart(JFreeChartEngine.java:336)
      4 frames
    4. ZK XUL Components
      Chart$SmartDrawListener.onEvent
      1. org.zkoss.zul.Chart.doSmartDraw(Chart.java:242)
      2. org.zkoss.zul.Chart.access$100(Chart.java:82)
      3. org.zkoss.zul.Chart$SmartDrawListener.onEvent(Chart.java:223)
      3 frames
    5. ZK Kernel
      DHtmlLayoutServlet.doGet
      1. org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2732)
      2. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2703)
      3. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2644)
      4. org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
      5. org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1710)
      6. org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1495)
      7. org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:464)
      8. org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:316)
      9. org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215)
      10. org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:135)
      10 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    7. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
      7. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      8. org.mortbay.jetty.Server.handle(Server.java:326)
      9. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      10. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
      11. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
      12. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      13. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      14. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
      14 frames
    8. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      1 frame