aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes IllegalArgumentException: Width (0) and height (0); Java 1.5 problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "IllegalArgumentException: Width (0) and height (0); Java 1.5 problem" Watch "IllegalArgumentException: Width (0) and height (0); Java 1.5 problem" New topic
Author

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

Ravi Sathish
Ranch Hand

Joined: Feb 26, 2002
Posts: 131
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: IllegalArgumentException: Width (0) and height (0); Java 1.5 problem