I'm currently experiencing an intermittent issue with a java applet not painting when ran from a remote server. Using the latest version of Eclipse and the latest trial version of QCChart2D, I have compiled the LinePlotSalesVolume example and created a hosting HTML page. This works fine when viewing from the local filesystem. However, when the same folder / files are copied to a remote server and viewed, a NullPointerException is generated in the java console for every page load and the chart isn't painted everytime.
Any thoughts on what might be causing this issue, or what I can try to resolve it?
Additional info: Modern PC with XP Pro running IE 7 Both servers running IIS 'Trial Mode' isn't displayed on chart when viewing from local filesystem, but IS displayed when viewing from remote server (when the chart is painted).
Partial Stack Trace: Exception in thread "AWT-EventQueue-64" java.lang.NullPointerException at com.quinncurtis.chart2djava.ChartView.checkMode(ChartView.java:397) at com.quinncurtis.chart2djava.ChartView.draw(ChartView.java:1018) at com.quinncurtis.chart2djava.ChartView.paintComponent(ChartView.java:270) at javax.swing.JComponent.paint(Unknown Source) ......
It must be related to the fact that you are using a trial version of the software. In the commercial version of the software the ChartView.checkMode method doesn't do anything. In the trial version it accesses the qcchart2djava.jar file and determines if it is a valid trial version of the library. Probably some sort of security violation is taking place on the remote server. There is nothing we can recommend, other than the fact that the commercial version of the software will not have the same problem, because the qcchart2djava.dll is not accessed to check its validity.