You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Colin Harris <co...@etechgroup.com.au> on 2004/09/03 15:20:22 UTC

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

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.java: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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


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

Posted by Richard Van Deren <rv...@mac.com>.
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: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


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

Posted by "J.Pietschmann" <j3...@yahoo.de>.
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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org