Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2005

Tip: Looking for answers? Try searching our database.

IllegalArgumentException - HELP Please!

Thread view: 
tubbsy - 22 Mar 2005 19:30 GMT
Hi there. I am having a problem with IE6.0 when I try to print a
screen. The program that I'm using uses JAVA & Javascripts extensively.

The problem is when I try to print one of the windows, IE locks up. The

only way I can recover is to end the task and shut down IE. Has anyone
else encountered this problem before? Thanks!

I forgot to say that when I look at the Java Console and try to print
one of the messages that displays on the console is:

java.lang.IllegalArgumentExcep­tion: Width (2) and height (0) cannot
be
<= 0

I don't do Java, so I have no idea what it's telling me.

Thanks for your help.

Tubbsy
Rhino - 23 Mar 2005 13:55 GMT
So you're asking us to fix a Java program without even a hint of what the
source code contains because you didn't write it? Not only that but you
haven't given us even the tiniest hint of what the program is doing? That's
a pretty tall order.

All I can suggest from what you've told us is that the Java code is being
given a width and height for something - I'm guessing a GUI component of
some kind - and the value that it is being given isn't valid. The values it
is getting are calling for a component that is 2 pixels wide and 0 pixels
high which isn't valid for this component. I'm not surprised that the Java
code doesn't like this.

This problem may be easily solved *if* you are actually giving it these
numbers explicitly; in that case, just give it bigger numbers, say 400 and
200 respectively for starters and see if that helps. But if you aren't
giving it the numbers explicitly, I don't think there is anything anyone can
do to help you unless you can get your hands on the source code and post it
here.

Rhino

Hi there. I am having a problem with IE6.0 when I try to print a
screen. The program that I'm using uses JAVA & Javascripts extensively.

The problem is when I try to print one of the windows, IE locks up. The

only way I can recover is to end the task and shut down IE. Has anyone
else encountered this problem before? Thanks!

I forgot to say that when I look at the Java Console and try to print
one of the messages that displays on the console is:

java.lang.IllegalArgumentExcep?tion: Width (2) and height (0) cannot
be
<= 0

I don't do Java, so I have no idea what it's telling me.

Thanks for your help.

Tubbsy


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.