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".

Reply via email to