IBM Support

IV19693: NULLPOINTEREXCEPTION THROWN IN A SUN.NIO.CH.SELECTORIMPL.SELECT() CALL WHILE DEREGISTERING THE CANCELED KEYS

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: NullPointerException thrown in a select() call
    while deregistering the canceled keys.
    .
    Stack Trace: java.lang.NullPointerException
    Throwable occurred: java.lang.NullPointerException
     at
    sun.nio.ch.WindowsSelectorImpl$FdMap.remove(WindowsSelectorImpl.
    java:111)
     at
    sun.nio.ch.WindowsSelectorImpl$FdMap.access$3100(WindowsSelector
    Impl.java:80)
     at
    sun.nio.ch.WindowsSelectorImpl.implDereg(WindowsSelectorImpl.jav
    a:593)
     at
    sun.nio.ch.SelectorImpl.processDeregisterQueue(SelectorImpl.java
    :149)
     at
    sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java
    :168)
     at
    sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:81)
     at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:92)
     at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:96)
    .
    

Local fix

Problem summary

  • When a channel is closed, the key will be removed from internal
    data structures of that selector and channel will be closed. If
    any exception happens while closing the channel, the control
    goes back to selector.select() call. Since the key remains in
    canceled list, key is removed from selector. A key which is no
    longer part of selector.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR11
    7.0.0 SR3
    6.0.1 SR3
    .
    JVM code is modified to fix the NullPointerException.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV19693

  • 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-04-13

  • Closed date

    2012-05-04

  • Last modified date

    2012-11-11

  • 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 CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       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":"6.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
11 November 2012