-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
beta
-
sparc
-
solaris_7
The JCK interactive test PrintDialogTest, which attempts to
test the java.awt.print.PrinterJob's printDialog method, throws a
SecurityException when run in SingleJVM mode. The output is as
follows.
Exception occurred during event dispatching:
java.lang.ExceptionInInitializerError: java.lang.SecurityException: Action
forbidden by JavaTest: checkPropertiesAccess
at
javasoft.sqe.javatest.JavaTestSecurityManager.checkPropertiesAccess(JavaTest
Secu
rityManager.java:106)
at java.lang.System.getProperties(System.java:488)
at sun.awt.motif.PSPrinterJob.<clinit>(PSPrinterJob.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.print.PrinterJob$1.run(PrinterJob.java:43)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.print.PrinterJob.getPrinterJob(PrinterJob.java:38)
at
javasoft.sqe.tests.api.java.awt.interactive.PrintDialogTest$ButnListnr.actio
nPer
formed(PrintDialogTest.java:278)
at java.awt.Button.processActionEvent(Button.java:329)
at java.awt.Button.processEvent(Button.java:302)
at java.awt.Component.dispatchEventImpl(Component.java:2593)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.print.PrinterJob$1.run(PrinterJob.java:43)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.print.PrinterJob.getPrinterJob(PrinterJob.java:38)
at
javasoft.sqe.tests.api.java.awt.interactive.PrintDialogTest$ButnListnr.actio
nPer
formed(PrintDialogTest.java:278)
at java.awt.Button.processActionEvent(Button.java:329)
at java.awt.Button.processEvent(Button.java:302)
at java.awt.Component.dispatchEventImpl(Component.java:2593)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
To recreate the exception, do the following:
- cd /java/jck-dev/users3/SIProtator/PrintDialogTest
- Verify that the DISPLAY environment variable is set correctly, and that
you have xhost permission to the display
- Type 'runtest'
test the java.awt.print.PrinterJob's printDialog method, throws a
SecurityException when run in SingleJVM mode. The output is as
follows.
Exception occurred during event dispatching:
java.lang.ExceptionInInitializerError: java.lang.SecurityException: Action
forbidden by JavaTest: checkPropertiesAccess
at
javasoft.sqe.javatest.JavaTestSecurityManager.checkPropertiesAccess(JavaTest
Secu
rityManager.java:106)
at java.lang.System.getProperties(System.java:488)
at sun.awt.motif.PSPrinterJob.<clinit>(PSPrinterJob.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.print.PrinterJob$1.run(PrinterJob.java:43)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.print.PrinterJob.getPrinterJob(PrinterJob.java:38)
at
javasoft.sqe.tests.api.java.awt.interactive.PrintDialogTest$ButnListnr.actio
nPer
formed(PrintDialogTest.java:278)
at java.awt.Button.processActionEvent(Button.java:329)
at java.awt.Button.processEvent(Button.java:302)
at java.awt.Component.dispatchEventImpl(Component.java:2593)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.print.PrinterJob$1.run(PrinterJob.java:43)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.print.PrinterJob.getPrinterJob(PrinterJob.java:38)
at
javasoft.sqe.tests.api.java.awt.interactive.PrintDialogTest$ButnListnr.actio
nPer
formed(PrintDialogTest.java:278)
at java.awt.Button.processActionEvent(Button.java:329)
at java.awt.Button.processEvent(Button.java:302)
at java.awt.Component.dispatchEventImpl(Component.java:2593)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
To recreate the exception, do the following:
- cd /java/jck-dev/users3/SIProtator/PrintDialogTest
- Verify that the DISPLAY environment variable is set correctly, and that
you have xhost permission to the display
- Type 'runtest'