IV26833: GENERATING INCORRECT SCOPE ID IN CASE OF LINK-LOCAL ADDRESSSES I N LINUX

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • Error Message: JAVA determines the scope id incorrectly in case
    of Link-local ipv6 addresses on Linux. It is being evaluated to
    the index of the interface through which the link-local routing
    happens instead of the interface on which the address is
    configured. Mappping of scope id to routing interface index
    works on Linux 2.4 as there exists a bug on 2.4 Kernel which got
    fixed in 2.6. This APAR should fix the Java and works based on
    the kernel version.
    Trying to connect...
    java.net.ConnectException: Connection timed out
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at
    java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
            at
    java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:1
    95)
            at
    java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
            at
    java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
            at java.net.Socket.connect(Socket.java:520)
            at java.net.Socket.connect(Socket.java:470)
            at java.net.Socket.<init>(Socket.java:367)
            at java.net.Socket.<init>(Socket.java:209)
            at ScopeTest.testScope(ScopeTest.java:54)
            at ScopeTest.main(ScopeTest.java:20)
    Exception=(java.net.ConnectException: Connection timed out)
    .
    Stack Trace: N/A
    .
    When tried to create a ServerSocket using java, it failed while
    binding the socket.
    Trying to connect...
    java.net.BindException: Cannot assign requested address
            at java.net.PlainSocketImpl.socketBind(Native Method)
            at
    java.net.PlainSocketImpl.bind(PlainSocketImpl.java:418)
            at java.net.ServerSocket.bind(ServerSocket.java:331)
            at java.net.ServerSocket.<init>(ServerSocket.java:197)
            at Server.testScope(Server.java:41)
            at Server.main(Server.java:20)
    Exception=(java.net.BindException: Cannot assign requested
    address)
    

Local fix

  • N/A
    

Problem summary

  • connect/bind to link-local address on Linux fails. Problem
    observed is due to the incorrect mapping of scope-id in the
    network address structure and this works on Linux kernel
    versions before 2.4.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR12
    6.0.1 SR4
    .
    Java network api's are corrected to pick up proper scope-id
    values based on the Linux kernel version.
    .
    To obtain the fix:
    Install build 20120920_01  or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV26833

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-22

  • Closed date

    2012-08-22

  • Last modified date

    2012-10-09

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

    IZ39835

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

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSN

       UP

  • R700 PSN

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Runtimes for Java Technology
Java Class Libraries

Software version:

6.0

Reference #:

IV26833

Modified date:

2012-10-09

Translate my page

Machine Translation

Content navigation