Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

java.lang.ExceptionInInitializerError: java.security

0 views
Skip to first unread message

hajar

unread,
Apr 5, 2002, 12:28:53 PM4/5/02
to
hello,
i write an applet wich communicate with his server in order to get an
image from it and then transform it.
so the first step which is getting image is done but only using
appletviewer
(when i try to view my applet using the browser the applet can't
initialize)
i can view the image
/****************/
fileURL = new URL(getCodeBase()+"bonj1.gif");
Image awtImage = Toolkit.getDefaultToolkit().getImage( fileURL);
/***************/
but when i add this instruction

RenderedOp image = JAI.create("awtimage", awtImage);

i get this error:
/********************/
java.lang.ExceptionInInitializerError:
java.security.AccessControlException: acc
ess denied (java.util.PropertyPermission java.home read)
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.checkPropertyAccess(SecurityManager.java:12
78)
at java.lang.System.getProperty(System.java:560)
at com.sun.media.jai.util.PropertyUtil$1.run(PropertyUtil.java:89)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.media.jai.util.PropertyUtil.getFileFromClasspath(PropertyUtil
.java:114)
at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistr
y.java:360)
at javax.media.jai.JAI.<clinit>(JAI.java:382)
at TestApplet0.init(TestApplet0.java:88)
at sun.applet.AppletPanel.run(AppletPanel.java:344)
at java.lang.Thread.run(Thread.java:484)
/********************/

so do you have any idea on this?is this in relation with the
java.security file and the java.policy file
and why i can get the image using appletviewer and i can't with the
browser(IE5.0)
i use jdk1.3.1
thanks in advance

0 new messages