Hi again !!

I have tested it and I have got the same exception.

Dani

--------------------------------------------------------------------------------------

At 15:14 21.09.2001 +0100, you wrote:

Hi,
I had this Problem some time ago.
Just using new URL(getCodeBase(), filename); in your Applet, and it might work.




>Hi all !!
>
>I try to load a DXF file using portfolio from an applet. It works as an
>application, but if I try to load it like this:
>
>           filename = "TestFile.dxf"
>
>           ModelLoader f = new ModelLoader();
>           Scene s = null;
>
>           try {
>             URL urlFile = getClass().getResource(filename);
>             s = f.load(urlFile);
>           }
>           catch (FileNotFoundException e) {
>                System.err.println(e);
>                System.exit(1);
>           }
>           catch (ParsingErrorException e) {
>                System.err.println(e);
>                System.exit(1);
>           }
>           catch (IncorrectFormatException e) {
>                System.err.println(e);
>                System.exit(1);
>           }
>
>I get the following exception:
>
>      java.security.AccessControlException: access denied
> (java.util.PropertyPermission * read,write)
>
>      at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
>
>      at
> java.security.AccessController.checkPermission(AccessController.java:399)
>
>      at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
>
>      at
> java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1246)
>
>      at java.lang.System.getProperties(System.java:488)
>
>      at ncsa.j3d.loaders.ModelLoader.getBaseName(ModelLoader.java:184)
>
>      at ncsa.j3d.loaders.ModelLoader.load(ModelLoader.java:66)
>
>      at DXFLoadApplet.createSceneGraph(DXFLoadApplet.java:61)
>
>      at DXFLoadApplet.init(DXFLoadApplet.java:199)
>
>      at sun.applet.AppletPanel.run(AppletPanel.java:344)
>
>      at java.lang.Thread.run(Thread.java:484)
>
>Does anyone know what happens ?
>
>Thanks in advanced !!
>
>Dani
>
>
>--
>
>Diese E-Mail enth�lt vertrauliche und/oder rechtlich gesch�tzte
>Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
>irrt�mlich erhalten haben, informieren Sie bitte sofort den Absender und
>vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
>Weitergabe dieser Mail ist nicht gestattet.
>
>This e-mail may contain confidential and/or privileged information. If you
>are not the intended recipient (or have received this e-mail in error)
>please notify the sender immediately and destroy this e-mail. Any
>unauthorized copying, disclosure or distribution of the material in this
>e-mail is strictly forbidden.
>
>
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

=====================================To unsubscribe, send email to 
[EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".





--

Diese E-Mail enth�lt vertrauliche und/oder rechtlich gesch�tzte Informationen. Wenn 
Sie nicht der richtige Adressat sind oder diese E-Mail irrt�mlich erhalten haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das 
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.

==========================================================================To 
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to