Skip to main content

IZ67322: Socket bind/connect binds to incorrect local port on dual stack IPV4 AND IPV6 WINDOWS MACHINE AFTER APPLYING IZ54931 IN 5.0 SR10


Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: It was observed that when bind/connect sequence
    call was made by giving the local port that has already been
    bound, the new socket is bound to an ephemeral port instead
    instead of a given one. There is no information that the
    socket is bound to different port and no exception is thrown.
    .
    Stack Trace: N/A
    .
    

Local fix

  • Problem can be workaround by using only Ipv4 stack, i.e, by
    using either of -Djava.net.preferIPv4Stack=true or
    -Djava.net.preferIPv6Stack=false.
    

Problem summary

  • The problem is caused as JVM makes two sockets on dual stack
    machine, one for Ipv4 and another for Ipv6. The problem is
    caused when Ipv4 socket bind fails but Ipv6 socket bind passes.
    

Problem conclusion

  • This defect will be fixed in:
    5.0.0 SR12
    .
    The JVM has been updated to throw the required exception.
    .
    To obtain the fix:
    Install build 20100431 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ67322

  • Reported component name

    JAVA 5 CLASS LI

  • Reported component ID

    620500130

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-12-23

  • Closed date

    2010-05-04

  • Last modified date

    2010-07-22

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA 5 CLASS LI

  • Fixed component ID

    620500130

Applicable component levels

  • R500 PSN

       UP

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Runtimes for Java Technology

Java Class Libraries


Software version:
5.0


Reference #:
IZ67322


Modified date:
2010-07-22

Translate my page

Content navigation