Bonjour,
Ce matin je n'ai plus l'erreur de proxy, mais j'en ai une autre a la place !!!
java.security.AccessControlException: access denied (java.net.SocketPermission www.roget.org:80 connect,resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConn...Client(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConn...onnect(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConn...onnect(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at WordGraphs.CountWords(WordGraphs.java:557)
at WordGraphs.start_graph(WordGraphs.java:497)
at WordGraphs.init(WordGraphs.java:479)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
roget.org est l'adresse du site a partir duquel je specifie mon URL dans le code de l'applet... Apparemment c'est toujours un probleme de securite...
Selon l'exception, c'est la ligne
BufferedReader br=new BufferedReader(new InputStreamReader(arg.openStream()));
qui fait faire l'exception, peut-etre est-il possible de la remplacer par autre chose ???
Partager