commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject Re: [Net] access denied ( resolve)
Date Thu, 08 Apr 2010 12:50:37 GMT
On 08/04/2010, Thomas VEQUAUD <> wrote:
> Hi everybody,
>  This is the first time I have to use Java and build an applet for a specific
>  need : browse images files on a computer and send them on a server in HTP or
>  FTP. Everything works perfectly fine within NetBeans or AppletViewer but
>  once embedded in an HTML file... Outch ! I had a first read/write exception
>  with JFileChooser... I googled it and found an answer: jsigner. So I signed
>  my .jar and problem solved. But now, I have a new Exception and no answer
>  about how to fix it so I hope you can get me out of this !
>  Exception in thread "AWT-EventQueue-2"
>  access denied ( resolve)

Look like the applet does not have "resolve" permission for socket operations.

Googling suggests adding something like:

permission "*", "connect, resolve";

to the policy file (you'll need connect after the resolve succeeds).

Replace "*" with "" if you want to restrict the applet
to just that host.


for some useful info on permissions etc.

I'm surprised that the appletviewer does not show the same problem,
but perhaps that has been configured with different permissions from
the webserver.

>   at Source)
>  at Source)
>   at java.lang.SecurityManager.checkPermission(Unknown Source)
>  at java.lang.SecurityManager.checkConnect(Unknown Source)
>   at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
>  at Source)
>   at Source)
>  at Source)
>  at Source)
>   at<init>(Unknown Source)
>  at
>   at
>  fr.fastimage.uploader.Uploader.uploadButtonActionPerformed(
>  at fr.fastimage.uploader.Uploader.actionPerformed(
>   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>  Thanks a lot !

In future, please specify the NET version and JVM in case they are relevant.

> --
>  Thomas VEQUAUD
>  Expert EPITECH en Ingénierie Informatique
>  Tél : +33(0)  Fax: +33(0)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message