Thanks,
 
I originally did NOT have the "-pixdepths 4" arg, and received the same "sun.java2d.InvalidPipeException: Unsupported bit depth: 4" error, so I
tried the pixdepths setting, which did not help. I have tried "4 8" as
well, but without success.
 
Isn't xvfb the display driver here? I'm trying to compute images on the server. Are there any additional settings it needs?
 
Anyone from Sun listening?
 
thanks,
 
jp
-----Original Message-----
From: Sathish S Rao [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 11:46 PM
To: Lee, John P (DxIx Boston)
Subject: Re: [JAVA2D] InvalidPipeException while attempting server-side AWT

Hi,
    Did you try with a pixel depth of 8? It means that 8 bits per pixel that is 256 colors. You'll have to check if your display drivers supports that many colors. Mostly it should.
 
Regards,
Sathish S
 
----- Original Message -----
From: JP Lee
To:
Sent: Thursday, July 15, 2004 10:07 PM
Subject: [JAVA2D] InvalidPipeException while attempting server-side AWT

Hi,

I'm trying to create an image inside my servlet, using 

   Solaris 8
   Tomcat 4.1.27 
   JVM 1.4.1_01-b01,

and am running xvfb with the following command line (as tomcat user):

   /usr/X11R6/bin/Xvfb :1 -screen 0 1280x1024x8 -pixdepths 4 -fbdir /tmp &

I get the following error from my servlet when I attempt to set up the Frame to draw the image in:

sun.java2d.InvalidPipeException: Unsupported bit depth: 4
at sun.awt.X11SurfaceData.getSurfaceType(X11SurfaceData.java:424)
at sun.awt.X11GraphicsConfig.getSurfaceType(X11GraphicsConfig.java:116)
at sun.awt.X11SurfaceData.createData(X11SurfaceData.java:284)
at sun.awt.motif.MComponentPeer.initialize(MComponentPeer.java:193)
at sun.awt.motif.MComponentPeer.init(MComponentPeer.java:225)
at sun.awt.motif.MWindowPeer.init(MWindowPeer.java:93)
at sun.awt.motif.MFramePeer.(MFramePeer.java:58)
at sun.awt.motif.MToolkit.createFrame(MToolkit.java:197)
at java.awt.Frame.addNotify(Frame.java:469)
. . .

I've set the pixdepths arg to 4, yet still get this error. I would think that at least anything this small would be OK. I am not setting any bit depth criteria in my code. I haven't seen much on this type of error online.

Does anyone have an idea of what the heck is going on, and how I can address this problem? Are the sun.awt source available?

thanks,

jp

 

 
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to