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

Applet crashes 1.3 Plug-in

0 views
Skip to first unread message

Laurence V

unread,
May 26, 2000, 3:00:00 AM5/26/00
to
Hi,

I've got an UML Sequence diagram rendering applet which uses some Java 2 Platform features (Java2D to be specific). This
applet worked fine in IE4.0 and the 1.2.2 Plug-In.

I recently upgraded to the Java 2 Platform version 1.3 JDK.. which installs a newer associated plug-in. Now the same
applet (unmodified) fails to start [it does init() ok] and produces this in the plug-in console:

Java(TM) Plug-in: Version 1.3.0-C
Using JRE version 1.3.0 Java HotSpot(TM) Client VM
User home directory = C:\WINDOWS
Proxy Configuration: no proxy

JAR cache enabled.
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.applet.AppletSecurity.checkAccess(Unknown Source)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.Thread.init(Unknown Source)
at java.lang.Thread.<init>(Unknown Source)
at org.lv.applets.UMLSequenceDiagramApplet.start(UMLSequenceDiagramApplet.java:199)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

The code which is security-checked is simply a new Thread(this):

/*************************************************************************
* Allow browser to manage our animation thread
*************************************************************************/
public void start() {

if (animationThread == null) {
animationThread = new Thread(this); // <<<<<<<<<<<< LINE 199 IS THIS LINE
animationThread.start();
}
}

I've tried fiddling with Internet Explorer's "security" settings.. even tried disabling the sandbox completely. Still
the exception is thrown. This looks like a bug in IE.

Now the question: does anyone know how to bypass this problem using IE4.0 and the 1.3 plug-in?

If not, does anyone know how I can force IE to use the 1.2.2 plug-in instead? I've got 1.2.2 and 1.3 installed here, but
1.3 seems to have clobbered 1.2.2 JRE and plug-in.

Basically, I'd like my applet to work again! :-(

L.


Carsten Friedrich

unread,
May 28, 2000, 3:00:00 AM5/28/00
to
Hi Laurence,

l...@claradot.codot.uk (Laurence V) writes:
> I recently upgraded to the Java 2 Platform version 1.3 JDK.. which installs a newer associated plug-in. Now the same
> applet (unmodified) fails to start [it does init() ok] and produces this in the plug-in console:

> ...

I think, I basically get the same Exception. One of my programs (using
threads) is working, another one (using threads as well) isn't and
shows the same symptoms as yours. As the thread part of the programs
is identical, I assume the problem is somewhere else, although the
error is reported there. Unfortunatly that is all I know so
far. Please keep me up to date if you find out anything new.

Carsten

p.s.> Im using the JDK1.3 plugin with netscape 4.7 on NT.

--
**********************************************************************
Carsten Friedrich .-_|\ University of Newcastle
frie...@cs.newcastle.edu.au / \ Dept of Computer Science and
ph. +61 2 4921 7242 \.--._* <- Software Engineering
fax +61 2 4921 6929 v Callaghan NSW 2308, Australia
**********************************************************************

0 new messages