IBM Support

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

Subscribe

You can track all active APARs for this component.

 

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:
    5.0.0 SR10
    .
    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 20090115 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ39835

  • 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

    2008-12-17

  • Closed date

    2009-02-23

  • Last modified date

    2012-08-22

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

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

    IV26833 IV29763

Fix information

  • Fixed component name

    JAVA 5 CLASS LI

  • Fixed component ID

    620500130

Applicable component levels

  • R500 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVQ3Y","label":"Java Class Libraries"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
22 August 2012