Works just fine if you use a constant ( "pie" ), in the chart tag's type field.
But if you use a backing beans value, such as #{statistics.stuff} it gives a null pointer exception: (yes I've verified that getStuff in statistics returns the String value "pie" ---
java.lang.NullPointerException
at net.sf.jsfcomp.chartcreator.Chartlet.createChartWithPieDataSet(Chartlet.java:174)
at net.sf.jsfcomp.chartcreator.Chartlet.doGet(Chartlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
JSF Chart Creator - Problem when setting chart tag's type
-
- Posts: 54
- Joined: Sun Aug 28, 2005 8:13 pm
eta - hack?
We're in the last 10 days of a development deadline and we solved a problem last minute using Chart Creator.
Is there a hack we can do to fix this problem. Or is the fixed release due in a few days?
Thanks,
John
Is there a hack we can do to fix this problem. Or is the fixed release due in a few days?
Thanks,
John
Any other JFreeChart JSF tag wrappers
Does anyone else know of any other JSF tag wrappers for JFreeChart, that may be further along in the development cycle?
Thanks,
John
Thanks,
John
-
- Posts: 54
- Joined: Sun Aug 28, 2005 8:13 pm