I got exactly the same problem here.
How to avoid this problem, since the call to System.getProperties() is made
from the method getBaseName() of ModelLoader?
I could load my models perfectly using Sun's ObjectFile loader, even on
appletviewer. But using the NCSA's ModelLoader I get that error when running
on appletviewer (or any browser). How to avoid it?
Thanks
Jo�o Henrique
Electronics Engineering Student
Instituto Tecnol�gico de Aeron�utica - ITA - Brazil
----- Original Message -----
From: Steve Pietrowicz <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 11, 2000 11:14 AM
Subject: Re: [JAVA3D] Java3D application ok,but Applet has security Error
> The method you're referring to here attempts to do the following:
>
> Properties props = System.getProperties();
>
> That's why you're getting the error.
>
> At 01:42 PM 10/11/2000 +0000, david Xia wrote:
> > I have a problem with the Java3D Applet, my java3D program can run as
an
> >application or applet. When I run it as an application, no any problem,
it
> >works fine. But when I run it as an applet, then it showed the following
> >error message, I do not know what it really means and what is wrong with
the
> >program.(When I read in the file, I have already set the file's attribute
to
> >readable/writeable,and I have access right to it). Could anyone help me
> >about this?
> >
> > Thanks.
> >
> >David
> >
> >--------------------------------------------------------------------
> >
> >Reeti[34] xiang$ appletviewer xxdtest3.html
> >java.security.AccessControlException: access denied
> >(java.util.PropertyPermissio
> >n * read,write)
> > at
> >java.security.AccessControlContext.checkPermission(AccessControlConte
> >xt.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:101)
> > at xxdtest3.createSceneGraph(xxdtest3.java:62)
> > at xxdtest3.<init>(xxdtest3.java:161)
> > at java.lang.Class.newInstance0(Native Method)
> > at java.lang.Class.newInstance(Class.java:237)
> > at sun.applet.AppletPanel.createApplet(AppletPanel.java:579)
> > at sun.applet.AppletPanel.runLoader(AppletPanel.java:515)
> > at sun.applet.AppletPanel.run(AppletPanel.java:293)
> > at java.lang.Thread.run(Thread.java:484)
> >
> >
> >
> >
> >_________________________________________________________________________
> >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> >
> >Share information about yourself, create your own public profile at
> >http://profiles.msn.com.
> >
>
>===========================================================================
> >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".
===========================================================================
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".