Bug 835468 - java.net.preferIPv4Stack ignored when using maven
java.net.preferIPv4Stack ignored when using maven
Status: NEW
Product: Fedora EPEL
Classification: Fedora
Component: java-1.6.0-openjdk (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lubomir Rintel
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-06-26 05:33 EDT by Jean-frederic Clere
Modified: 2012-06-26 06:07 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jean-frederic Clere 2012-06-26 05:33:13 EDT
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Jean-frederic Clere 2012-06-26 06:07:53 EDT
I have a test with the following code:
        InetAddress group = InetAddress.getByName("");
        int port =  23364;

        String data = "1234567890";
        byte[] buffer = data.getBytes();
        DatagramPacket recv = new DatagramPacket(buffer, buffer.length, group, port);

It throws:
java.io.IOException: Invalid argument
        at java.net.PlainDatagramSocketImpl.send(Native Method)
        at java.net.DatagramSocket.send(DatagramSocket.java:676)

The work-around it used "FFFF::" which means that the java.net.preferIPv4Stack is ignored....

It have tried with   -Djava.net.preferIPv4Stack=true and
static {
   System.setProperty("java.net.preferIPv4Stack", "true");

No way to get it.
When using java directly it works.

Note You need to log in before you can comment on or make changes to this bug.