Re: Mac os x - InternalError: Can't connect to window server - not enough permissions.

2004-09-04 Thread J.Pietschmann
Colin Harris wrote:
java.lang.InternalError: Can't connect to window server - not enough
permissions.
See:
 http://xml.apache.org/fop/graphics.html#batik
Run FOP as if in a headless server environment.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Mac os x - InternalError: Can't connect to window server - not enough permissions.

2004-09-04 Thread Richard Van Deren
I am been using FOP also on the mac, embedded cocoa application.  The  
headless solution worked great for me until apple came up with Java  
1.4.2 update 1,  then I had to use a NSTread to get it to work.   It  
took me a couple of weeks to understand NSTread.

I had the window server problem too, about a year ago.   I solved it  
then by making a system service do the FOP.I do not think that  
needs to be done now.
I am working on a sample application akin to FOEditor to show my  
methods.   Also, the TestXSLT application is a good example.   It is  
currently broken because of the Java 1.4.2 update 1.

Good luck.   I wanted to publish my solution, but, I have not cleaned  
up my code enough yet.
Let me know if you have any problems.   I would like to work with a  
group that tries to write an example of the correct way to use FOP in  
a Cocoa Application.

I guess you are using it from a pure Java application.   I have not  
tried it that way.  I would like to know your solution.   My  
application will be converted to Java when it grows up.
Java on the Mac is a moving target.  It is improving all them time,  
but, it is hard to keep up.

For a while I thought FOP would never work.   It has something to do  
with the way Apple has implemented Java AWT and Swing in Cocoa.

Rich Van Deren
On Sep 3, 2004, at 9:20 AM, Colin Harris wrote:

Hi
I've been using FOP for some time now and think it works great.  
However I
have just deployed the app for the first time on a mac and I'm getting  
the
following error.

[ERROR] Logger not set
[WARNING] Screen logger not set - Using ConsoleLogger.
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
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:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at
sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native  
Method)
at
sun.awt.image.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
at
sun.awt.image.GifImageDecoder.clinit(GifImageDecoder.java:365)
at
sun.awt.image.InputStreamImageSource.getDecoder(InputStreamImageSource. 
java:
219)
at
sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:139)
at
sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.jav 
a:248
)
at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:1

I wouldn't normally post a question like this without looking into it  
for a
long time myself but in this case its urgent.
If anyone has any ideas on what could cause this or how it could be  
fixed
please let me know.

Thanks
col.
Specs:Mac OS 10.3
  JDK 1.4.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]