473,395 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Pool menu effect error

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
1 2374
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Anonymust | last post by:
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...
2
by: Troglite | last post by:
I am attempting to research an error condition that I am experiencing with the Config Block in EntLib 1.0. I have an admin web page that I use to populate some config values. I then have a second...
4
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
5
by: david.kao | last post by:
Hi All: I am creating a COM+ Pool object in C#. I set up the following attributes: JIT (true),Pool size; and at the end of each public method I called ContextUtil.DeactivateOnReturn=true to set...
6
by: Wayne Smith | last post by:
Hi, We are having a few problems with ASP.Net pages hanging during load when an Application Pool is recycled. To test this we have setup the following ASP.net page which refreshes every 2...
0
by: Garmt de Vries-Uiterweerd | last post by:
X-posted to opera.page-authoring, because this is a bit Opera-specific for the moment. F'up to ciwas. I am playing around with dedicated styling for the projection media type.. Currently the...
2
by: Riverburn | last post by:
I've got a question regarding making menu's in Css. I've made a picture of the menu in photoshop, have made the mouseover effect in different frames, and made a quick pregenerated html/javascript...
5
by: mackenzie | last post by:
Hello, I am looking for a little bit of help. I am trying to create a dynamically allocated object which contains one or more objects of type boost::pool<>. I get a compiler error when an object...
1
by: johnyjj2 | last post by:
Hello! I've got web application created for MSSQL and IIS. There are two directories in this application - Scripts and WebSite. In Script there is file CreateDb.sql. I need to run it so that it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.