IBM Support

PI08812: NULLPOINTEREXCEPTION IS THROWN WHEN USING A JMS OBJECT WHICH HAS ALREADY BEEN DESTROYED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In some cases, if a JMS object handle has been destroyed and is
    no longer valid, but the application is still using it,
    NullPointerException will be thrown which is not reflecting the
    root cause of the issue.
    
    An example call stack for this error is:
    
    StackTrace=java.lang.NullPointerException
     at
    com.ibm.ejs.j2c.ConnectionManager.associateConnection(Connection
    Manager.java:2883)
     at
    com.ibm.ejs.jms.JMSSessionHandle.getOpenSession(JMSSessionHandle
    .java:1322)
     at
    com.ibm.ejs.jms.JMSQueueSessionHandle.getOpenQueueSession(JMSQue
    ueSessionHandle.java:410)
     at
    com.ibm.ejs.jms.JMSQueueReceiverHandle.getOpenQueueReceiver(JMSQ
    ueueReceiverHandle.java:251)
     at
    com.ibm.ejs.jms.JMSQueueReceiverHandle.getOpenMessageConsumer(JM
    SQueueReceiverHandle.java:233)
     at
    com.ibm.ejs.jms.JMSMessageConsumerHandle.receiveNoWait(JMSMessag
    eConsumerHandle.java:612)
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  WebSphere Application Server users of JMS.  *
    ****************************************************************
    * PROBLEM DESCRIPTION: java.lang.NullPointerException          *
    *                      occurs in a JMS application.            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If a JMS object derived from a JMS Connection (such as a
    Session or QueueBrowser) is used after the JMS Connection has
    become invalidated, a java.lang.NullPointerException may
    occur.
    Instead, a javax.jms.IllegalStateException would reflect the
    problem more accurately.
    

Problem conclusion

  • This APAR prevents the NullPointerException by ensuring that
    the JMS Session checks the JMS Connection that created it is
    still valid before performing an action that will fail if the
    Connection is invalid.  If it is not valid a
    javax.jms.IllegalStateException is thrown.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.3.  Please refer to the Recommended Updates
    page for delivery information:
    
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI08812

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-12-31

  • Closed date

    2014-04-04

  • Last modified date

    2014-04-04

  • 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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022