Share

StatCVS - Stat Your Repository

Tracker: Bugs

7 Untrusted apps failure on Mac OS X - ID: 2791301
Last Update: Comment added ( dmulter )

I've been running and upgrading StatCVS for a few years now with no
problem. Upgraded to the latest 0.5.0 version and get the following error
when running a report. I'm running on Mac OS X 10.5.7 (latest).

Tue May 12 21:00:49 sub.domain.com java[5134] <Warning>: 3891612:
(connectAndCheck) Untrusted apps are not allowed to connect to or launch
Window Server before login.
Exception in thread "main" 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:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at
sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1509)
at java.awt.Toolkit.<clinit>(Toolkit.java:1530)
at java.awt.Color.<clinit>(Color.java:250)
at
org.jfree.chart.renderer.AbstractRenderer.<clinit>(AbstractRenderer.java:14
7)
at
net.sf.statcvs.output.ConfigurationOptions.<clinit>(ConfigurationOptions.ja
va:93)
at net.sf.statcvs.Messages.getString(Messages.java:59)
at net.sf.statcvs.Main.main(Main.java:60)

There's more information about this type of problem here:

http://developer.apple.com/technotes/tn2005/tn2083.html#SECPRELOGINANDTRUST



David Multer ( dmulter ) - 2009-05-13 16:55

7

Open

None

Nobody/Anonymous

None

Latest release

Public


Comments ( 2 )




Date: 2009-05-15 21:19
Sender: dmulter

I don't know if it's fixable in the code, but I solved the problem by
passing "-Djava.awt.headless=true" on the command line when invoking the
JAR via a java command. I'll let a developer close this if this is the
recommended way to deal with this problem.


Date: 2009-05-15 21:06
Sender: dmulter

Seems like this should be avoided through the setting of
java.awt.headless=true (as the current code sets), but I am getting this
error in the latest release. Maybe some combination of a new JFreeChart and
the latest code changes?


Log in to comment.

Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
priority 5 2009-05-15 21:06 dmulter