Link to home
Start Free TrialLog in
Avatar of krishnasaikarthik
krishnasaikarthik

asked on

sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99)

Dear Experts,

i am getting folowing exception when i am running my java application

Uncaught error fetching image:
java.lang.NullPointerException
        at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99)
        at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:108)
        at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:248)
        at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
        at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

thanks
km
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Need more code and make sure *full* stack trace posted
check that u aren't passing it a null url
Avatar of krishnasaikarthik
krishnasaikarthik

ASKER

Dear CEHJ

what i am doing is i am not puuting any classpath.
i am putting all my jar files in JRE ext directory.

then i am getting this excpetion.

only that exception i am getting on the console.

thanks
Most likely caused by specifying a nullurl when trying to load an image.
dear objects

i am not loading any images

thanks
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>only that exception i am getting on the console.

Yes, but you haven't posted the full trace
Can you please post the whole content of the console?
And are you sure you're running your application?
deat CEHI,

that is only the content i am getting on the console..

thanks