What is Uncaught error fetching image ?
807591Mar 13 2008 — edited Mar 16 2008Hi,
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