The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Thank you but I have tried that.

Posted by Jay on October 23, 2001 at 6:34 PM

Thanks for your response. In posting the code fragment, I just wanted to let you all know what I am trying to do. I know it doesnt handle exceptions quite well, but I have posted the stack trace I got on my machine (which doesnt help me much)

You are right in pointing out that I am trying to access a remote system resource (obvious from the code). When I try an image on the local system (like "http://localhost/images/someImage.gif"), it works pretty well. I am guessing, its because my IP is not recognized by the remote system's policy (whatever that means), that I am getting this crap. Thats fine and I'll go with it. But I need an alternate solution.

I need to load images from different webservers in an applet and do some silly stuff on them. I can not copy these images to the document base of the applet because those are lots of images(could be 3 to 4 million a day). This is driving me nuts.

Any ideas?

Once again, Thanks.


> Actually, AccessController is throwing an exception to indicate that a requested access (to a critical system resource such as the file system or the network) is denied.

> Also, just catching an exception and doing nothing is also a bad practise. The least you could have done is to print the stack trace where you are catching the exception. You could have found out the actual cause of error.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us