Hi Chris,
On Jan 27, 2004, at 6:38 AM, Chris Riley wrote:
> Hi,
>
> The following error exception is thrown intermittently when running my
> Openmap based application.
>
> *** ERROR ***
> RPF Layer|LayerWorker.construct():
> java.awt.image.RasterFormatException:
> negative or zero width
> *************
>
> I also get a popup displaying the same message.
>
> My map is using an additional layer representing and aircraft location
> where
> the map recenters every time the aircraft
> moves within a defined distance from the edge of the projection. The
> map
> data is primarily CADRG.
That's an interesting thing to say. What do you mean 'primarily CADRG'?
> Firsly, does anyone know why this error occurs? I also need to ensure
> this
> problem is eradicated asap. At the very least,
> I need to ensure the pop-up can be disabled and the exception caught.
This message usually occurs when there is a problem creating the
OMRaster that is holding the image data, or with the parameters that
are being passed to the OMRaster.
The exception is being caught. You're just seeing it reported. You
can modify the behavior of the exception catching in the layer's
internal SwingWorker class (or in the OMGraphicHandler's SwingWorker
class in 4.6).
What kind of CADRG are you viewing?
- Don
>
> Thanks for your help
>
> Chris Riley
>
> ---------------------------------------------------------------
> The exception stack is as follows:
>
> *** ERROR ***
> RPF Layer|LayerWorker.construct():
> java.awt.image.RasterFormatException:
> negative or zero width
> *************
> java.awt.image.RasterFormatException: negative or zero width
> at java.awt.image.Raster.<init>(Raster.java:1091)
> at java.awt.image.WritableRaster.<init>(WritableRaster.java:111)
> at sun.awt.image.SunWritableRaster.<init>(SunWritableRaster.java:49)
> at
> sun.awt.image.IntegerComponentRaster.<init>(IntegerComponentRaster.java
> :151)
> at
> sun.awt.image.IntegerInterleavedRaster.<init>(IntegerInterleavedRaster.
> java:
> 111)
> at
> sun.awt.image.IntegerInterleavedRaster.createWritableChild(IntegerInter
> leave
> dRaster.java:468)
> at java.awt.image.BufferedImage.getSubimage(BufferedImage.java:1060)
> at
> com.bbn.openmap.omGraphics.OMScalingRaster.scaleTo(OMScalingRaster.java
> :375)
> at
> com.bbn.openmap.omGraphics.OMScalingRaster.generate(OMScalingRaster.jav
> a:276
> )
> at
> com.bbn.openmap.omGraphics.OMGraphicList.generate(OMGraphicList.java:
> 818)
> at
> com.bbn.openmap.omGraphics.OMGraphicList.generate(OMGraphicList.java:
> 796)
> at
> com.bbn.openmap.layer.rpf.RpfCacheManager$RpfMaps.generate(RpfCacheMana
> ger.j
> ava:447)
> at
> com.bbn.openmap.omGraphics.OMGraphicList.generate(OMGraphicList.java:
> 818)
> at
> com.bbn.openmap.omGraphics.OMGraphicList.project(OMGraphicList.java:
> 784)
> at
> com.generaldynamicsuk.tref.TREFINABOX.Overlays.Layers.RpfLayer.prepare(
> RpfLa
> yer.java:630)
> at
> com.bbn.openmap.layer.policy.StandardRenderPolicy.prepare(StandardRende
> rPoli
> cy.java:67)
> at
> com.bbn.openmap.layer.OMGraphicHandlerLayer$LayerWorker.construct(OMGra
> phicH
> andlerLayer.java:548)
> at com.bbn.openmap.util.SwingWorker$2.run(SwingWorker.java:107)
> at java.lang.Thread.run(Thread.java:536)
>
>
>
>
>
>
>
> General Dynamics United Kingdom Limited
> Registered in England and Wales No. 1911653
> Registered Office: 100 New Bridge Street, London, EC4V 6JA
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Tue Jan 27 11:16:42 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT