Debian中无使用java applet一则

2009阅读 0评论2010-03-25 blue_stone
分类:LINUX

在某次更新后, 偶的Debian Sid就无法正常显示 java applet的内容, 因为使用applet的机会并不多, 所以一直没有在意, 前几天打算调一下EMC的存储, 竟然收到了同样的报错, 从Java控制台收到的错误内容如下:

载入:找不到类 com.emc.navisphere.gui.jnfx.JNfxMain.class。
java.lang.ClassNotFoundException: com.emc.navisphere.gui.jnfx.JNfxMain.class
        at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:152)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:447)
        at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:2880)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1397)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Network is unreachable
        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 sun.net.NetworkClient.doConnect(NetworkClient.java:161)
        at sun.net.(HttpClient.java:394)
        at sun.net.(HttpClient.java:529)
        at sun.net.(HttpClient.java:233)
        at sun.net.(HttpClient.java:306)
        at sun.net.(HttpClient.java:323)
        at sun.net.(HttpURLConnection.java:860)
        at sun.net.(HttpURLConnection.java:801)
        at sun.net.(HttpURLConnection.java:726)
        at sun.net.(HttpURLConnection.java:1049)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
        at sun.plugin2.applet.Applet2ClassLoader.getBytes(Applet2ClassLoader.java:458)
        at sun.plugin2.applet.Applet2ClassLoader.access$000(Applet2ClassLoader.java:46)
        at sun.plugin2.applet.Applet2ClassLoader$1.run(Applet2ClassLoader.java:126)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:123)
        ... 6 more
异常:java.lang.ClassNotFoundException: com.emc.navisphere.gui.jnfx.JNfxMain.class


这是Debian的一个Bug, 解决办法是将/etc/sysctl.d/bindv6only.conf中的

net.ipv6.bindv6only = 1

改为

net.ipv6.bindv6only = 0

然后重启procps:

invoke-rc.d procps restart

该问题对应的Debian Bug链接如下:




对应的Sun Bug 链接如下:



上一篇:变懒了
下一篇:伊虽从未现身江湖, 江湖却到处是伊的传说