By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,264 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,264 IT Pros & Developers. It's quick & easy.

Pool menu effect error

P: n/a
I use a java applet on several web pages that is no longer functioning
in my browser. I use IE 6 (fully patched). When I use Internet
options/Advanced to select the MS browser plug in for java, the applet
loads and functions correctly. When I select the Sun browser plug in
for java the applet doesn't load and Sun's console returns the
following gibberish. (I'm sure it isn't gibberish to everyone, just
me):

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Name: PoolMenu Version 1.0

Author: David Griffiths

This is an interactive applet class which takes an

image and covers it in virtual water.

For more information about this and other applets

go to http://www.demon.co.uk/davidg/spigots.htm

Created with Sun JDK 1.1

Unable to create Pool: java.lang.IllegalArgumentException: Width (-1)
and height (-1) cannot be <= 0

Unable to create next frame: java.lang.NullPointerException

java.lang.NullPointerException

at Pool.getImage(Pool.java:268)

at PoolMenu.paint(PoolMenu.java:490)

at sun.awt.RepaintArea.paint(Unknown Source)

at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown
Source)

at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown
Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
I attempted to contact the applet's author via the site listed in the
code above, but it is no longer hosted at that site. So I guess my
question is, does anyone know how to fix this so that the applet works
for IE 6 with Sun's plug in, or perhaps someone else has written a
newer script for this effect that I can download?

Thanking all in advance for time and attention to this issue.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Looks to me like it probably wants to load an image to display it, and
can't find it. Well written code would make sure the file exists
before trying to read it, but it looks like this code doesn't. I'd
have to see the actual code. Check out
http://www.infowest.com/personal/d/davem/page18.htm to see it working,
and copy their <applet> tag (pointing to your file), and see if that
works.

M
an*******@lycos.com (Anonymust) wrote in message
news:<ce**************************@posting.google. com>...
I use a java applet on several web pages that is no longer functioning
in my browser. I use IE 6 (fully patched). When I use Internet
options/Advanced to select the MS browser plug in for java, the applet
loads and functions correctly. When I select the Sun browser plug in
for java the applet doesn't load and Sun's console returns the
following gibberish. (I'm sure it isn't gibberish to everyone, just
me):

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Name: PoolMenu Version 1.0

Author: David Griffiths

This is an interactive applet class which takes an

image and covers it in virtual water.

For more information about this and other applets

go to http://www.demon.co.uk/davidg/spigots.htm

Created with Sun JDK 1.1

Unable to create Pool: java.lang.IllegalArgumentException: Width (-1)
and height (-1) cannot be <= 0

Unable to create next frame: java.lang.NullPointerException

java.lang.NullPointerException

at Pool.getImage(Pool.java:268)

at PoolMenu.paint(PoolMenu.java:490)

at sun.awt.RepaintArea.paint(Unknown Source)

at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown
Source)

at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown
Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
I attempted to contact the applet's author via the site listed in the
code above, but it is no longer hosted at that site. So I guess my
question is, does anyone know how to fix this so that the applet works
for IE 6 with Sun's plug in, or perhaps someone else has written a
newer script for this effect that I can download?

Thanking all in advance for time and attention to this issue.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.