• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ravi Sathish
Ranch Hand
Posts: 131
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic