IllegalArgumentException - HELP Please!

T

tubbsy

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
 
R

Rhino

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Arduino Code Please Help 0
Help please 8
Please help 7
Troubles with Fullpage / please help 0
Code help please 4
Please Help? 0
Hello and Help please :-) 1
Twitter Bot for Series recommendations help please 1

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top