Mark Richters wrote:

> "Alexander V. Konstantinou" <[EMAIL PROTECTED]> writes:
>
> > I have submitted a bug report concerning an error running the
SwingSet
> demo
> > on a RedHat 5.2 machine running XFree + AcceleratedX in 32-bit mode.

> > After posting, I tried restarting in 16-bit mode and the demo
executed.

My computer is an IBM 300PL with an S3Trio3D card using the 32 bpp
XFree86
FrameBuffer driver on Linux kernel 2.2.   I have been running my Swing
applications for a couple months using JDK1.1.7 and Swing 1.1 using this

same hardware and software setup.   Now, however, whenever I try to run
the
SwingSet demo using the JDK 1.2 Preview from Blackdown, I get the error
listed at the end of this message which is identical to the error
reported
by Alexander Konstantinou.  Since there was some speculation that this
was a
Sun problem, I also posted the error to the Java2D list.  Here is the
response that I got from the Sun engineer.  They have successfully run
SwingSet on 32 bpp cards.  So perhaps it is a problem with the Linux
port
after all.  I have submitted a bug report on the Blackdown site.

>>>>>Response from [EMAIL PROTECTED] (Jerry Evans)
>>>>>>>>>>>>>>>>>>>

It looks like the IllegalArgumentException comes from a BufferedImage
constructor:

    public BufferedImage (ColorModel cm,
                          WritableRaster raster,
                          boolean isRasterPremultiplied,
                          Hashtable properties)

This constructor calls cm.isCompatibleRaster(raster), which must be
returning false.  The code in
DirectColorModel.isCompatibleRaster(Raster)
looks OK to me, so possibly the Linux port has somehow constructed
an IntegerInterleavedRaster or a DirectColorModel with inconsistent
arguments when running on your framebuffer.  We've certainly run
SwingSet
on 32 bpp cards and haven't seen this.  Without more detail on the
IntegerInterleavedRaster and DirectColorModel than is printed out in
the error message, I can't tell for sure why isCompatibleRaster() is
failing.

>>>>>>>>>>>>>>>>>>>>>My Error>>>>>>>>>>>>>>>>>>>>>
java SwingSet
  Error loading L&F: java.lang.IllegalArgumentException: Raster
  IntegerInterleavedRaster: width = 64 height = 64 #Bands = 3
#DataElements 1 xOff
  = 0 yOff = 0 dataOffset[0] 0 is incompatible with ColorModel
DirectColorModel:
  rmask=ff0000 gmask=ff00 bmask=ff amask=0
  Exception in thread "main" java.lang.NullPointerException
          at java.util.Hashtable.get(Compiled Code)
          at javax.swing.UIDefaults.get(Compiled Code)
          at javax.swing.MultiUIDefaults.get(Compiled Code)
          at javax.swing.UIDefaults.getUIClass(Compiled Code)
          at javax.swing.UIDefaults.getUI(Compiled Code)
          at javax.swing.UIManager.getUI(Compiled Code)
          at javax.swing.JPanel.updateUI(Compiled Code)
          at javax.swing.JPanel.<init>(Compiled Code)
          at javax.swing.JPanel.<init>(Compiled Code)
          at javax.swing.JRootPane.createGlassPane(Compiled Code)
          at javax.swing.JRootPane.<init>(Compiled Code)
          at javax.swing.JFrame.createRootPane(Compiled Code)
          at javax.swing.JFrame.frameInit(Compiled Code)
          at javax.swing.JFrame.<init>(Compiled Code)
          at SwingSet.main(Compiled Code)






----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to