Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
effoOffline
Post subject: Trouble with Java applets - caused by bindv6only.conf?  PostPosted: 17.05.2011, 17:20



Joined: 2010-09-11
Posts: 22
Location: Linköping, Sweden
Status: Offline
Since last d-u a couple of weeks ago, Java applets has not been working in Iceweasel or Chromium. I have tried reinstalling Java (sun) jre, plugin without luck. Checking about:plugin has shown that Java plugin is installed. However, whenever I have tried to load an applet, it has crashed.

Today I found this French page http://www.debian-fr.org/java-plugin-si ... va#p313076 which says that the error is caused by a setting in /etc/sysctl.d/bindv6only.conf

Following the instructions on the page above resolved my problem, applets are now running fine. I did some more Googling and found this bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560044 The report is since 2009 but it was updated in April.

I don't know why this suddenly happens to me, haven't seen anybody here with this problem. Neither do I know if this is the "correct" way of fixing it, but at least it helped me get applets working again.

Oh, my system:
Host/Kernel/OS "siduxbox" running Linux 2.6.38-6.slh.1-aptosid-686 i686 [ sidux 2007-01 - Χάος lite (200702210952) ]
CPU Info 2x AMD Athlon 64 X2 Dual Core 6000+ clocked at [ 3099.902 MHz ]
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: Trouble with Java applets - caused by bindv6only.conf?  PostPosted: 17.05.2011, 17:43



Joined: 2010-08-25
Posts: 761

Status: Offline
That has been fixed in OpenJDK more than a year ago, the non-free Oracle/ SUN JAVA is probably still broken.
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject: RE: Trouble with Java applets - caused by bindv6only.conf?  PostPosted: 17.05.2011, 19:48



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
I don't have that file under /etc/sysctl.d, and what is the default in that case? If your install is old, you should be able to change the setting to 0 as root then

invoke-rc.d procps restart

This change should persist across reboots


Last edited by DeepDayze on 17.05.2011, 19:51; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
towoOffline
Post subject:   PostPosted: 17.05.2011, 19:50



Joined: 2010-09-13
Posts: 500
Location: Pößneck / Thüringen
Status: Offline
      Code:
towo:Defiant> cat /etc/sysctl.d/bindv6only.conf
# This sysctl sets the default value of the IPV6_V6ONLY socket option.
#
# When disabled, IPv6 sockets will also be able to send and receive IPv4
# traffic with addresses in the form ::ffff:192.0.2.1 and daemons listening
# on IPv6 sockets will also accept IPv4 connections.
#
# When IPV6_V6ONLY is enabled, daemons interested in both IPv4 and IPv6
# connections must open two listening sockets.
# This is the default behaviour of all modern operating systems.

net.ipv6.bindv6only = 1

That'S default, and for sun java, it must set to 0.
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject:   PostPosted: 17.05.2011, 19:56



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
what are good sites besides http://www.java.com/en/download/testjava.jsp to test java applets and networking
 
 View user's profile Send private message  
Reply with quote Back to top
effoOffline
Post subject:   PostPosted: 17.05.2011, 20:42



Joined: 2010-09-11
Posts: 22
Location: Linköping, Sweden
Status: Offline
The French site, just as the bug report, suggests replacing the 1 in the file with a 0 and restart procps which solved my problem.

What puzzles me is that I have updated Java several times and not come across this before.

Not all my aptosid boxes has this file. My 2007-01 has it, my 2009-04 doesn't.

It doesn't seem to belong to any package either:
      Code:
root@siduxbox:/home/effo# apt-file search bindv6only.conf
root@siduxbox:/home/effo#
 
 View user's profile Send private message  
Reply with quote Back to top
effoOffline
Post subject:   PostPosted: 17.05.2011, 20:43



Joined: 2010-09-11
Posts: 22
Location: Linköping, Sweden
Status: Offline
For testing Java I use
http://www.java.com/en/download/help/testvm.xml
http://www.java.com/en/download/installed.jsp
http://javatester.org/version.html
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject:   PostPosted: 17.05.2011, 20:49



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
      effo wrote:
The French site, just as the bug report, suggests replacing the 1 in the file with a 0 and restart procps which solved my problem.

What puzzles me is that I have updated Java several times and not come across this before.

Not all my aptosid boxes has this file. My 2007-01 has it, my 2009-04 doesn't.

It doesn't seem to belong to any package either:
      Code:
root@siduxbox:/home/effo# apt-file search bindv6only.conf
root@siduxbox:/home/effo#


I thought it was in netbase package..looks like that newer versions of netbase don't create this file as newer kernel versions default to setting that value to 1 I believe
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio