• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IllegalArgumentException: Width (0) and height (0); Java 1.5 problem

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have code base which works alright on 32 bit JVM... But I'm hitting IllegalArguement exception when trying to run the same on 64 bit JVM. Try to search fixes/solutions on the web no success whatsoever.

I would dearly appreciate any help/suggestions/work-arounds.

Ravi

javaVersion : 1.5.0_03
javaVMName : Java HotSpot(TM) 64-Bit Server VM



Exception in thread "main" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
at sun.awt.X11.XFramePeer.setIconImage(XFramePeer.java:217)
at sun.awt.X11.XFramePeer.postInit(XFramePeer.java:75)
at sun.awt.X11.XBaseWindow.init(XBaseWindow.java:117)
.....
at java.awt.Frame.addNotify(Frame.java:491)
at java.awt.Window.show(Window.java:513)
at nirvana.srb.javaAdmin.SrbAdmin.main(SrbAdmin.java:963)


Tried printing out Screen Size
width: 140
height:152

[ October 13, 2005: Message edited by: Ravi Sathish ]
 
I'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic