Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What is Uncaught error fetching image ?

807591Mar 13 2008 — edited Mar 16 2008
Hi,

I am using Netbeans 5.5.1 with JDK 6 bundle and trying to build an GUI application but I am getting strange error like this when I try to compile and run:
=====================================================
Uncaught error fetching image:
java.lang.NullPointerException
at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:97)
at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:107)
at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240)
at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
=====================================================

I tried to debug but I was not able to. It happens even before the first line of code executes?
What is this error and how can I fix this?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2008
Added on Mar 13 2008
6 comments
1,590 views