Tom,
Yes even the example application does not work for me. Either through a url or from my harddisk. I would be interested to know if you have managed to get the import to work either using the example application or by puting the applet in a webpage and trying to populate it using:
Code: Select all
tChart1.getImport().getTemplate().fromXML("http://www.steema.com/SampleData.xml");
The example error that I quoted was using that line of import code for the following applet.
Code: Select all
<applet id="tChart1" codebase="/Illuminator/Classes" archive="TeeChart.Swing.jar" code="com.steema.teechart.TChartApplet.class"
width="100%" height="400" name="tChart1" align="middle" vspace="10" hspace="10" >
<PARAM name="__XMLSOURCE" value="/BHPB/CSM/BMA/90_Sandpit/Geoff/SampleChart.xml">
</applet>
The entire stack trace reported via the Sun Java Console is as follows:
java.security.AccessControlException: access denied (java.io.FilePermission http:\www.steema.com\SampleData.xml read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.steema.teechart.imports.Imports$Template.fromXML(Imports.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
java.lang.Exception: java.security.AccessControlException: access denied (java.io.FilePermission http:\www.steema.com\SampleData.xml read)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
I gave up trying to get the import to work through the applet param as it was not reporting anything.
I believe the applet is signed as it provides a popup asking if I want to trust the applet. Though I am not sure about the permissions for this?
I have read in some other forums information about policies for the applets access but as yet have been unable to locate this. Could this be part of the problem?