Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCChart2D for Java
 Intermittent issues with applets on remote server
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Josh

23 Posts

Posted - 09 Dec 2008 :  10:54:01  Show Profile  Reply with Quote
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)
......

Thanks,
Josh

quinncurtis

1164 Posts

Posted - 09 Dec 2008 :  11:18:47  Show Profile  Reply with Quote
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.


Go to Top of Page

Josh

23 Posts

Posted - 09 Dec 2008 :  11:25:37  Show Profile  Reply with Quote
Thanks. I'll just limit my testing to the local filesystem until I'm sure the create an applet that will satisfy our needs.

I'm currently using the .NET SPC version which is working well, but wanted to test the interactivity of the java applet.

Thanks again.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07