<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-09-23:447974</id>
  <title>pvaneynd</title>
  <subtitle>pvaneynd</subtitle>
  <author>
    <name>pvaneynd</name>
  </author>
  <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom"/>
  <updated>2009-12-09T08:30:47Z</updated>
  <dw:journal username="pvaneynd" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-09-23:447974:132852</id>
    <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/132852.html"/>
    <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom/?itemid=132852"/>
    <title>java studdenly started failing</title>
    <published>2009-12-09T08:30:47Z</published>
    <updated>2009-12-09T08:30:47Z</updated>
    <category term="ipv6"/>
    <category term="debian"/>
    <category term="java"/>
    <category term="life"/>
    <dw:mood>frustrated</dw:mood>
    <dw:security>public</dw:security>
    <dw:reply-count>1</dw:reply-count>
    <content type="html">Yesterday webex started failing for me. I did not change anything related to java recently so I was a little perplexed.&lt;br /&gt;&lt;br /&gt;Checking it turns out that even the standard &lt;a href="http://java.com/en/download/help/testvm.xml"&gt;test your java&lt;/a&gt; page failed. strace revealed the nice error:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;&lt;pre&gt;$ grep ffff /tmp/TRA
6938  connect(22, {sa_family=AF_INET6, sin6_port=htons(80), inet_pton(AF_INET6, "::ffff:72.5.124.95", &amp;sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28 &amp;lt;unfinished ...&amp;gt;
6938  connect(22, {sa_family=AF_INET6, sin6_port=htons(80), inet_pton(AF_INET6, "::ffff:72.5.124.95", &amp;sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 ENETUNREACH (Network is unreachable)&lt;/pre&gt;&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Notice that I don't have IPv6 connectivity!&lt;br /&gt;&lt;br /&gt;Googling it turns out that you can disable IPv6 in java by modifying to &lt;tt&gt;~/.java/deployment/deployment.properties&lt;/tt&gt; the line:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;deployment.javaws.jre.0.args=-Djava.net.preferIPv4Stack\=true&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;and all is now well. Until I need to access an IPv6 device with java of course :-(.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=pvaneynd&amp;ditemid=132852" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
