org.zkoss.zk.ui.UiException: Unsupported chart type yet: dial

Stack Overflow | Anubhav Mishra | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    While making a dial chart getting Unsupported chart type yet: dial error

    Stack Overflow | 2 months ago | Anubhav Mishra
    org.zkoss.zk.ui.UiException: Unsupported chart type yet: dial
  2. 0

    I want to display chart with Chinese, so I change library setting in the run time. {code} org.zkoss.lang.Library.setProperty("org.zkoss.zss.chart.title.font", "SansSerif, Italic, 30"); org.zkoss.lang.Library.setProperty("org.zkoss.zss.chart.legend.font", "SansSerif, plain, 18"); org.zkoss.lang.Library.setProperty("org.zkoss.zss.chart.xAxisTick.font", "SansSerif, bold, 16"); org.zkoss.lang.Library.setProperty("org.zkoss.zss.chart.xAxis.font", "SansSerif, bold, 18"); {code} After I set above property, if there exist a chart without title throws NPE: {quote} 嚴重的: >>java.lang.NullPointerException >> at org.zkoss.zkex.zul.impl.JFreeChartEngine.drawChart(JFreeChartEngine.java:364) >> at org.zkoss.zul.Chart.doSmartDraw(Chart.java:243) >> at org.zkoss.zul.Chart.access$100(Chart.java:82) >> at org.zkoss.zul.Chart$SmartDrawListener.onEvent(Chart.java:224) >> at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2743) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2714) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2655) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) >> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1720) >> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1505) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:467) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:312) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136) >> 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) {quote} You can use chart-issue.xlsx to reproduce this issue, by using the library setting code above.

    ZK-Tracker | 3 years ago | roliroli
    java.lang.NullPointerException
  3. 0

    I want to display chart with Chinese, so I change library setting in the run time. {code} org.zkoss.lang.Library.setProperty("org.zkoss.zss.chart.title.font", "SansSerif, Italic, 30"); org.zkoss.lang.Library.setProperty("org.zkoss.zss.chart.legend.font", "SansSerif, plain, 18"); org.zkoss.lang.Library.setProperty("org.zkoss.zss.chart.xAxisTick.font", "SansSerif, bold, 16"); org.zkoss.lang.Library.setProperty("org.zkoss.zss.chart.xAxis.font", "SansSerif, bold, 18"); {code} After I set above property, if there exist a chart without title throws NPE: {quote} 嚴重的: >>java.lang.NullPointerException >> at org.zkoss.zkex.zul.impl.JFreeChartEngine.drawChart(JFreeChartEngine.java:364) >> at org.zkoss.zul.Chart.doSmartDraw(Chart.java:243) >> at org.zkoss.zul.Chart.access$100(Chart.java:82) >> at org.zkoss.zul.Chart$SmartDrawListener.onEvent(Chart.java:224) >> at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2743) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2714) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2655) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) >> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1720) >> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1505) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:467) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:312) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136) >> 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) {quote} You can use chart-issue.xlsx to reproduce this issue, by using the library setting code above.

    ZK-Tracker | 3 years ago | roliroli
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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 | 4 years ago | paowang
    java.lang.IllegalArgumentException: Null 'key' argument.
  6. 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 | 4 years ago | paowang
    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. org.zkoss.zk.ui.UiException

      Unsupported chart type yet: dial

      at org.zkoss.zkex.zul.impl.JFreeChartEngine.getChartImpl()
    2. org.zkoss.zkex
      JFreeChartEngine.drawChart
      1. org.zkoss.zkex.zul.impl.JFreeChartEngine.getChartImpl(JFreeChartEngine.java:242)
      2. org.zkoss.zkex.zul.impl.JFreeChartEngine.drawChart(JFreeChartEngine.java:266)
      2 frames
    3. ZK XUL Components
      Chart$SmartDrawListener.onEvent
      1. org.zkoss.zul.Chart.doSmartDraw(Chart.java:243)
      2. org.zkoss.zul.Chart.access$100(Chart.java:82)
      3. org.zkoss.zul.Chart$SmartDrawListener.onEvent(Chart.java:224)
      3 frames
    4. ZK Kernel
      DHtmlLayoutServlet.doGet
      1. org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2746)
      2. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2717)
      3. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2658)
      4. org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
      5. org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1765)
      6. org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550)
      7. org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:512)
      8. org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:356)
      9. org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215)
      10. org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136)
      10 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      2 frames
    6. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      2 frames
    7. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    8. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
      10 frames
    9. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
      3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
      4 frames
    10. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      2 frames
    11. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame