Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Cron Tests, Creating a Color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cron Tests, Creating a Color



Hi All,

As part of our nightly procedures, we run our suite of tests on OSX. These run as a cron job, checking out the most relevant code from CVS, running the suite, and uploading the results to our webserver. Unfortunately, because the logged-in user is not the user that runs the cron job, it seems that there are some permission problems, notably with the window server. We receive the following error when attempting to create a Color object (or more specifically, attempting to statically access the Color class).

------

Can't connect to window server - not enough permissions.

|java.lang.InternalError: Can't connect to window server - not enough permissions.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1389)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1401)
at java.awt.Toolkit.<clinit>(Toolkit.java:1422)
at java.awt.Color.<clinit>(Color.java:250)
at com.limegroup.gnutella.settings.SettingTest$TestSettings.<init>(SettingTest.java:49)
at com.limegroup.gnutella.settings.SettingTest.testSetting(SettingTest.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.limegroup.gnutella.util.BaseTestCase.runBare(BaseTestCase.java:185)
at com.limegroup.gnutella.util.BaseTestCase.run(BaseTestCase.java:202)

|----

I've tried using the -Djava.awt.headless=true, and some other setting (that I can't remember off the top of my head), but nothing seems to help.

Any clues?

Thanks,
Sam
||
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.