We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

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

krishnasaikarthik
on
Medium Priority
2,018 Views
Last Modified: 2010-05-18
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
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016

Commented:
Need more code and make sure *full* stack trace posted
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
check that u aren't passing it a null url

Author

Commented:
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
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
Most likely caused by specifying a nullurl when trying to load an image.

Author

Commented:
dear objects

i am not loading any images

thanks
Java Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
something is :)
Perhapos some of the classes you are using do, for example gui classes that use images for their display.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT
Top Expert 2016

Commented:
>>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?

Author

Commented:
deat CEHI,

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

thanks
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.