ďťż
 
 
   [+] Sieć jest niedostępna dla Javy
 
 

Tematy

 
    
 

 

 

 

[+] Sieć jest niedostępna dla Javy





Kamil1000 - 18-12-2009 21:34
Dzisiaj chciałem uruchomić aplikację Java Web Start, która przy swoim uruchamianiu potrzebuje połączenia z Internetem, ale niestety pojawiło się coś takiego:

Obrazek

Wcześniej nie miałem z tym jakichkolwiek problemów. Jak kliknę przycisk ,,Details'' to mogę zobaczyć 2 logi: com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://apu.ndhub.net/lib/rpmdevui_fn.jar
        at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1347)
        at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1487)
        at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1465)
        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1568)
        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1496)
        at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
        at com.sun.javaws.LaunchDownload.downloadJarFiles(LaunchDownload.java:920)
        at com.sun.javaws.LaunchDownload.downloadEagerorAll(LaunchDownload.java:803)
        at com.sun.javaws.Launcher.downloadResources(Launcher.java:1310)
        at com.sun.javaws.Launcher.prepareLaunchFile(Launcher.java:838)
        at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:306)
        at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:183)
        at com.sun.javaws.Launcher.launch(Launcher.java:104)
        at com.sun.javaws.Main.launchApp(Main.java:403)
        at com.sun.javaws.Main.continueInSecureThread(Main.java:250)
        at com.sun.javaws.Main$1.run(Main.java:111)
        at java.lang.Thread.run(Thread.java:619) java.net.SocketException: Sieć jest niedostępna
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:525)
        at java.net.Socket.connect(Socket.java:475)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
        at sun.net.www.http.HttpClient.New(HttpClient.java:323)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
        at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:185)
        at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:113)
        at com.sun.deploy.net.BasicHttpRequest.doGetRequest(BasicHttpRequest.java:78)
        at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1159)
        at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1487)
        at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1465)
        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1568)
        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1496)
        at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
        at com.sun.javaws.LaunchDownload.downloadJarFiles(LaunchDownload.java:920)
        at com.sun.javaws.LaunchDownload.downloadEagerorAll(LaunchDownload.java:803)
        at com.sun.javaws.Launcher.downloadResources(Launcher.java:1310)
        at com.sun.javaws.Launcher.prepareLaunchFile(Launcher.java:838)
        at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:306)
        at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:183)
        at com.sun.javaws.Launcher.launch(Launcher.java:104)
        at com.sun.javaws.Main.launchApp(Main.java:403)
        at com.sun.javaws.Main.continueInSecureThread(Main.java:250)
        at com.sun.javaws.Main$1.run(Main.java:111)
        at java.lang.Thread.run(Thread.java:619) W tym samym czasie inne programy mają bezproblemowy dostęp do Internetu. Jak można naprawić ten problem?

Edycja:
Problem ten jest też w każdej aplikacji Java umieszczonej na stronie WWW.



iria - 18-12-2009 22:49
Kliknij mnie



Kamil1000 - 19-12-2009 13:24
Dziękuję, pomogło polecenie wykonane jako root:
echo 0 > /proc/sys/net/ipv6/bindv6only
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • minister.pev.pl

  •  

     


     

     
    Copyright 2003. MĂłj serwis