Failed JUnit GUi Lanch - Works for commandline
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   WILLIAM_LAM
Posted On:   Thursday, March 10, 2005 10:13 PM

I have a suite test for our project and through the command line or using ant to run the 28 test we have works 100%. When I try to initiate the -g arguement either on the command prompt or in the build.xml file, I get this strange error and so far I haven't figured how why it doesn't run the GUi. Error In the GUi: Error: java.security.AccessControlException: access denied (java.util.PropertyPermission java.class.path read) Error In DOS: C:Documents and SettingsSTYLEZDesktop50>ant TestAll Buildfile: build.xml build: [javac] Compiling 22 source files to C:Documents and SettingsSTYLEZDeskto p50class TestAll: [java]    More>>


I have a suite test for our project and through the command line or using ant to run the 28 test we have works 100%. When I try to initiate the -g arguement either on the command prompt or in the build.xml file, I get this strange error and so far I haven't figured how why it doesn't run the GUi.







Error In the GUi:

Error: java.security.AccessControlException: access denied
(java.util.PropertyPermission java.class.path read)






Error In DOS:

C:Documents and SettingsSTYLEZDesktop50>ant TestAll
Buildfile: build.xml

build:
[javac] Compiling 22 source files to C:Documents and SettingsSTYLEZDeskto
p50class

TestAll:
[java] Exception in thread "AWT-EventQueue-0" java.security.AccessControlEx
ception: access denied (java.util.PropertyPermission user.home read)
[java] at java.security.AccessControlContext.checkPermission(Unknown So
urce)
[java] at java.security.AccessController.checkPermission(Unknown Source
)
[java] at java.lang.SecurityManager.checkPermission(Unknown Source)
[java] at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)

[java] at java.lang.System.getProperty(Unknown Source)
[java] at junit.swingui.TestRunner.getSettingsFile(TestRunner.java:507)

[java] at junit.swingui.TestRunner.saveHistory(TestRunner.java:648)
[java] at junit.swingui.TestRunner.terminate(TestRunner.java:745)
[java] at junit.swingui.TestRunner$7.windowClosing(TestRunner.java:232)

[java] at java.awt.Window.processWindowEvent(Unknown Source)
[java] at javax.swing.JFrame.processWindowEvent(Unknown Source)
[java] at java.awt.Window.processEvent(Unknown Source)
[java] at java.awt.Component.dispatchEventImpl(Unknown Source)
[java] at java.awt.Container.dispatchEventImpl(Unknown Source)
[java] at java.awt.Window.dispatchEventImpl(Unknown Source)
[java] at java.awt.Component.dispatchEvent(Unknown Source)
[java] at java.awt.EventQueue.dispatchEvent(Unknown Source)
[java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown S
ource)
[java] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[java] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[java] at java.awt.EventDispatchThread.run(Unknown Source)

BUILD SUCCESSFUL
Total time: 31 seconds








Any help would be great apperciated.

   <<Less
About | Sitemap | Contact