#97 Untrusted apps failure on Mac OS X

Latest release
open
nobody
None
7
2009-05-15
2009-05-13
No

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:147)
at net.sf.statcvs.output.ConfigurationOptions.<clinit>(ConfigurationOptions.java: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

Discussion

  • David Multer

    David Multer - 2009-05-15

    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?

     
  • David Multer

    David Multer - 2009-05-15
    • priority: 5 --> 7
     
  • David Multer

    David Multer - 2009-05-15

    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.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks