Skip to main content

B47 fails virtual machine test

10 replies [Last post]
fuerte
Offline
Joined: 2004-11-22
Points: 0

at
http://java.com/en/download/help/testvm.xml

There is no dancing duke, and java console says that

TestVM 2.3 kc
Copyright (c) 2004 Sun Microsystems, Inc.
All Rights Reserved.
Exception in thread "Thread-44" java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
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.Thread.checkAccess(Unknown Source)
at java.lang.Thread.setPriority(Unknown Source)
at testvm.run(testvm.java:261)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Loading System Properties" java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
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.Thread.checkAccess(Unknown Source)
at java.lang.Thread.setPriority(Unknown Source)
at testvm.run(testvm.java:261)
at java.lang.Thread.run(Unknown Source)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmanwani
Offline
Joined: 2004-07-12
Points: 0

I cannot reproduce this error. I can see the dancing duke with b47 of mustang on WinXP SP2 professional with latest patches and Mozilla Firefox 1.0.6 and IE 6.0.

fuerte
Offline
Joined: 2004-11-22
Points: 0

It is odd. It works in IE, but it shows "TestVM 3.0 kc" in console. In Firefox it does not work, and it shows "TestVM 2.3 kc". I have the same Java in both.

kchen
Offline
Joined: 2005-05-15
Points: 0

The testvm applet has been updated to recognize Mustang and Dolphin version numbers. Firefox browser probably has testvm 2.3 in the cache. Clear your browser/JRE cache and run the applet again.

I am running XP SP2 and Firefox 1.0.6. I am unable to reproduce the problem.

fuerte
Offline
Joined: 2004-11-22
Points: 0

Firefox now shows "TestVM 3.0 kc" in console and no errors, but still no dancing duke (there was no need to clear cache).

No I still get the error as well, but I get it only when I browse away from the page.

Message was edited by: fuerte

fuerte
Offline
Joined: 2004-11-22
Points: 0

Here is a trace. I first set trace to 5 (all) and then hit F5.

Trace level set to 5: all ... completed.
basic: Stopping applet ...
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@c24c0
basic: Finding information ...
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@108786b, refcount=0
basic: Caching classloader: sun.plugin.ClassLoaderInfo@108786b
basic: Current classloader cache size: 1
basic: Done ...
basic: Joining applet thread ...
basic: Destroying applet ...
basic: Disposing applet ...
basic: Quiting applet ...
basic: Joined applet thread ...
basic: Unregistered modality listener
Exception in thread "Loading System Properties" java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
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.Thread.checkAccess(Unknown Source)
at java.lang.Thread.setPriority(Unknown Source)
at testvm.run(testvm.java:262)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-23" java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
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.Thread.checkAccess(Unknown Source)
at java.lang.Thread.setPriority(Unknown Source)
at testvm.run(testvm.java:262)
at java.lang.Thread.run(Unknown Source)
basic: Registered modality listener
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@108786b, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@19b5217
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
TestVM 3.0 kc
Copyright (c) 2004 Sun Microsystems, Inc.
All Rights Reserved.
basic: Loaded image: http://java.com/en/img/download/t1.gif
basic: Loaded image: http://java.com/en/img/download/t2.gif
basic: Loaded image: http://java.com/en/img/download/t3.gif
basic: Loaded image: http://java.com/en/img/download/t4.gif
basic: Loaded image: http://java.com/en/img/download/t5.gif
basic: Loaded image: http://java.com/en/img/download/t6.gif
basic: Loaded image: http://java.com/en/img/download/t7.gif
liveconnect: JavaScript: UniversalBrowserRead enabled
liveconnect: JavaScript: UniversalJavaPermission enabled
liveconnect: JavaScript: UniversalBrowserRead enabled
liveconnect: JavaScript: UniversalJavaPermission enabled
basic: Stopping applet ...
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@19b5217
basic: Finding information ...
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@108786b, refcount=0
basic: Caching classloader: sun.plugin.ClassLoaderInfo@108786b
basic: Current classloader cache size: 1
basic: Done ...
basic: Joining applet thread ...
basic: Destroying applet ...
basic: Disposing applet ...
basic: Quiting applet ...
basic: Joined applet thread ...
basic: Unregistered modality listener
basic: Registered modality listener
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@108786b, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@158f9d3
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
TestVM 3.0 kc
Copyright (c) 2004 Sun Microsystems, Inc.
All Rights Reserved.
basic: Loaded image: http://java.com/en/img/download/t1.gif
basic: Loaded image: http://java.com/en/img/download/t2.gif
basic: Loaded image: http://java.com/en/img/download/t3.gif
basic: Loaded image: http://java.com/en/img/download/t4.gif
basic: Loaded image: http://java.com/en/img/download/t5.gif
basic: Loaded image: http://java.com/en/img/download/t6.gif
basic: Loaded image: http://java.com/en/img/download/t7.gif
liveconnect: JavaScript: UniversalBrowserRead enabled
liveconnect: JavaScript: UniversalJavaPermission enabled
liveconnect: JavaScript: UniversalBrowserRead enabled
liveconnect: JavaScript: UniversalJavaPermission enabled
liveconnect: JavaScript: UniversalBrowserRead enabled
liveconnect: JavaScript: UniversalJavaPermission enabled

fuerte
Offline
Joined: 2004-11-22
Points: 0

Hmm it seems to load it twice...

kchen
Offline
Joined: 2005-05-15
Points: 0

The problem lies with the dancing duke animation. Something is happening when the priority of the thread is set. I'm going to file a bug against the java AppletSecurity class.

Bug ID: 6314449

Message was edited by: kchen

fuerte
Offline
Joined: 2004-11-22
Points: 0

I removed Mustang and installed 1.5.0_04 again. Now the animation works, but I still get the same exception when I refresh the page:

TestVM 3.0 kc
Copyright (c) 2004 Sun Microsystems, Inc.
All Rights Reserved.
Cookie service is not available - use cache to determine "Cookie"
Cookie service is not available - use cache to determine "Cookie"
Cookie service is not available - use cache to determine "Cookie"
TestVM 3.0 kc
Copyright (c) 2004 Sun Microsystems, Inc.
All Rights Reserved.
TestVM 3.0 kc
Copyright (c) 2004 Sun Microsystems, Inc.
All Rights Reserved.
TestVM 3.0 kc
Copyright (c) 2004 Sun Microsystems, Inc.
All Rights Reserved.
Exception in thread "Loading System Properties" java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
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.Thread.checkAccess(Unknown Source)
at java.lang.Thread.setPriority(Unknown Source)
at testvm.run(testvm.java:262)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-2254" java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
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.Thread.checkAccess(Unknown Source)
at java.lang.Thread.setPriority(Unknown Source)
at testvm.run(testvm.java:262)
at java.lang.Thread.run(Unknown Source)

dennisgu
Offline
Joined: 2005-08-18
Points: 0

I just download B47 from http://download.java.net/jdk6/binaries/

It works fine on my Window 2000 professional using IE or Mozilla.

What Platform, OS and browser do you use to get this exception?

fuerte
Offline
Joined: 2004-11-22
Points: 0

Windows XP SP2, latest patches, Firefox 1.0.6.