IBM Support

IV56681: NULLPOINTEREXCEPTION IS THROWN DURING AN LDAP SEARCH WHEN READ TIMEOUT IS NOT SPECIFIED AFTER APPLYING IV52561

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: When the property com.sun.jndi.ldap.read.timeout
    is not set a NullPointerException is thrown in case of an LDAP
    search. This happens intermittently.
    .
    Stack Trace: Exception in thread "main"
    java.lang.NullPointerExceptionat
    com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:656)
    at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:574)at
    com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1997)at
    com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1859)at
    com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1784)at
    com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentD
    irContext.java:398)at
    com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Parti
    alCompositeDirContext.java:368)at
    javax.naming.directory.InitialDirContext.search(InitialDirContex
    t.java:287)
    .
    

Local fix

  • Set the LDAP environment property
    com.sun.jndi.ldap.read.timeout  as per application requirement.
    

Problem summary

  • The problem is caused when an LDAP request is made by a client
    to a server and the server takes more than 15 secs to respond
    for some reason. The client returns a NullPointerException. When
    the read timeout  is not specified, the client should wait
    forever for the server to respond until the TCP timeouts.
    

Problem conclusion

  • This APAR will be fixed in the following Java Releases:
       7    SR7       (7.0.7.0)
       6    SR16      (6.0.16.0)
       6 R1 SR8       (6.1.8.0)
       7 R1 SR1       (7.1.1.0)
    .
    The JDK has been updated to wait for ever if the environment
    property com.sun.jndi.ldap.read.timeout  is not specified by the
    LDAP client.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV56681

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-03-14

  • Closed date

    2014-04-07

  • Last modified date

    2014-05-09

  • 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

  • R700 PSY

       UP

  • R600 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
22 February 2022