IBM Support

PI20317: ILLEGALMONITORSTATEEXCEPTION LEADS TO CORRUPT DESTINATION IN WEBSPHERE APPLICATION SERVER SERVICE INTEGRATION BUS

Fixes are available

8.5.5.4: WebSphere Application Server V8.5.5 Fix Pack 4
8.0.0.10: WebSphere Application Server V8.0 Fix Pack 10
PI20317;8.5.5: illegalmonitorstateexception leads to corrupt destination in WAS
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
8.5.5.5: WebSphere Application Server V8.5.5 Fix Pack 5
8.5.5.6: WebSphere Application Server V8.5.5 Fix Pack 6
8.0.0.11: WebSphere Application Server V8.0 Fix Pack 11
8.5.5.7: WebSphere Application Server V8.5.5 Fix Pack 7
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
8.5.5.8: WebSphere Application Server V8.5.5 Fix Pack 8
8.0.0.12: WebSphere Application Server V8.0 Fix Pack 12
8.5.5.9: WebSphere Application Server V8.5.5 Fix Pack 9
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
8.5.5.10: WebSphere Application Server V8.5.5 Fix Pack 10
8.5.5.11: WebSphere Application Server V8.5.5 Fix Pack 11
8.0.0.13: WebSphere Application Server V8.0 Fix Pack 13
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
8.5.5.12: WebSphere Application Server V8.5.5 Fix Pack 12
8.0.0.14: WebSphere Application Server V8.0 Fix Pack 14
8.5.5.13: WebSphere Application Server V8.5.5 Fix Pack 13
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
8.0.0.15: WebSphere Application Server V8.0 Fix Pack 15
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server
8.5.5.14: WebSphere Application Server V8.5.5 Fix Pack 14
8.5.5.15: WebSphere Application Server V8.5.5 Fix Pack 15
8.5.5.14: WebSphere Application Server V8.5.5 Fix Pack 14
8.5.5.17: WebSphere Application Server V8.5.5 Fix Pack 17
8.5.5.20: WebSphere Application Server V8.5.5.20
8.5.5.18: WebSphere Application Server V8.5.5 Fix Pack 18
8.5.5.19: WebSphere Application Server V8.5.5 Fix Pack 19
8.5.5.16: WebSphere Application Server V8.5.5 Fix Pack 16
8.5.5.21: WebSphere Application Server V8.5.5.21

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • JMS application is unable to send messages to WebSphere
    Application Server v8.0 Service Integration Bus destination.
    The following errors are logged in the SystemOut.log:
    
    CNTR0020E: EJB threw an unexpected (non-declared) exception
    during invocation of method "publishEvent" on bean
    "BeanId(XXX)". Exception data: com.ibm.ws.sib.processor.
    exceptions.SIMPErrorException: com.ibm.websphere.sib.exception.
    SIErrorException: CWSIS1002E: An unexpected exception was
    caught
    during transaction completion. Exception: java.lang.Illegal
    MonitorStateException
     at com.ibm.ws.sib.processor.impl.PubSubInputHandler.localPut
     (PubSubInputHandler.java:1411)
     at com.ibm.ws.sib.processor.impl.PubSubInputHandler.internal
     HandleMessage(PubSubInputHandler.java:1128)
     at com.ibm.ws.sib.processor.impl.PubSubInputHandler.handle
     ProducerMessage(PubSubInputHandler.java:1061)
     at com.ibm.ws.sib.processor.impl.ProducerSessionImpl.send
     (ProducerSessionImpl.java:599)
     at com.ibm.ws.sib.api.jms.impl.JmsMsgProducerImpl.send
     Message(JmsMsgProducerImpl.java:1211)
     at com.ibm.ws.sib.api.jms.impl.JmsMsgProducerImpl.send
     (JmsMsgProducerImpl.java:725)
    Caused by: com.ibm.websphere.sib.exception.SIErrorException:
    CWSIS1002E: An unexpected exception was caught during
    transaction
    completion. Exception: java.lang.IllegalMonitorStateException
     at com.ibm.ws.sib.msgstore.transactions.MSDelegatingLocal
     Transaction.commit(MSDelegatingLocalTransaction.java:452)
     at com.ibm.ws.sib.processor.impl.PubSubInputHandler.local
     Put(PubSubInputHandler.java:1398)
     ... 79 more
    Caused by: java.lang.IllegalMonitorStateException
     at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease
     (ReentrantLock.java:138)
     at java.util.concurrent.locks.AbstractQueuedSynchronizer.
     release(AbstractQueuedSynchronizer.java:1250)
     at java.util.concurrent.locks.ReentrantLock.unlock
     (ReentrantLock.java:442)
     at com.ibm.ws.objectManager.ConcurrentSubList.addEntry
     (ConcurrentSubList.java:239)
     at com.ibm.ws.objectManager.ConcurrentLinkedList.addEntry
     (ConcurrentLinkedList.java:526)
     at com.ibm.ws.sib.msgstore.persistence.objectManager.
     PersistableImpl.addToStore(PersistableImpl.java:473)
     at com.ibm.ws.sib.msgstore.persistence.objectManager.
     PersistableImpl.addToStore(PersistableImpl.java:323)
     at com.ibm.ws.sib.msgstore.persistence.objectManager.
     BatchingContextImpl.insert(BatchingContextImpl.java:195)
     at com.ibm.ws.sib.msgstore.task.AddTask.persist
     (AddTask.java:371)
     at com.ibm.ws.sib.msgstore.persistence.objectManager.
     PersistentMessageStoreImpl.commit(PersistentMessageStore
     Impl.java:1710)
     at com.ibm.ws.sib.msgstore.transactions.MSDelegatingLocal
     Transaction.commit(MSDelegatingLocalTransaction.java:402)
    
    com.ibm.lconn.events.internal.publish.impl.JMSPublisher
    publishEvent CLFWY0151E: A JMS Exception occurred when
    publishing an event with ID 6d4b8b63-853d-417c-8110-bdd8
    36c162ef to topic XYZ
    javax.jms.JMSException: CWSIA0067E: An exception was received
    during the call to the method JmsMsgProducerImpl.
    <constructor>: com.ibm.ws.sib.processor.exceptions.
    SIMPDestinationCorruptException: CWSIK0027E: The destination
    with name connections.events is corrupt.
     at com.ibm.ws.sib.api.jms.impl.JmsMsgProducerImpl.<init>
     (JmsMsgProducerImpl.java:445)
     at com.ibm.ws.sib.api.jms.impl.JmsTopicPublisherImpl.<init>
     (JmsTopicPublisherImpl.java:59)
     at
    com.ibm.ws.sib.api.jms.impl.JmsTopicSessionImpl.instantiate
     Producer(JmsTopicSessionImpl.java:231)
     at com.ibm.ws.sib.api.jms.impl.JmsSessionImpl.createProducer
     (JmsSessionImpl.java:866)
    Caused by: com.ibm.ws.sib.processor.exceptions.SIMPDestination
    CorruptException: CWSIK0027E: The destination with name
    XYZ is corrupt
     at com.ibm.ws.sib.processor.impl.DestinationManager.
     getDestinationInternal(DestinationManager.java:1289)
     at com.ibm.ws.sib.processor.impl.DestinationManager.
     getDestination(DestinationManager.java:1085)
     at com.ibm.ws.sib.processor.impl.ConnectionImpl.internal
     CreateProducerSession(ConnectionImpl.java:1094)
     at com.ibm.ws.sib.processor.impl.ConnectionImpl.create
     ProducerSession(ConnectionImpl.java:1029)
     at com.ibm.ws.sib.processor.impl.ConnectionImpl.create
     ProducerSession(ConnectionImpl.java:958)
     at com.ibm.ws.sib.api.jms.impl.JmsMsgProducerImpl.<init>
     (JmsMsgProducerImpl.java:371)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of the default messaging provider for *
    *                  IBM WebSphere Application Server with       *
    *                  filestore as the message store.             *
    ****************************************************************
    * PROBLEM DESCRIPTION: When a Messaging engine is configured   *
    *                      with a FileStore in certain scenarios   *
    *                      an "IllegalMonitorStateException" is    *
    *                      observed when persisting the data into  *
    *                      the store. This exception has the       *
    *                      potential of corrupting the destination *
    *                      at a later point of time.               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When a Messaging engine is configured with a FileStore, in
    certain scenarios an "IllegalMonitorStateException" is
    observed when persisting the data into the store. This
    exception was resulting in a state where the messaging engine
    believes the data was persisted but infact there is no data
    corresponding to the token held. Due to this situation the
    when there is an attempt to retrieve the data corresponding to
    the token the data is not found and due to the inconsistency
    observed the destination is marked as corrupted.
    

Problem conclusion

  • The code has been fixed to rollback the complate transaction
    to avoid any inconsistency in the store.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 7.0.0.37,8.0.0.10 and 8.5.5.4. 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

    PI20317

  • Reported component name

    WAS SIB & SIBWS

  • Reported component ID

    620800101

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-06-18

  • Closed date

    2014-09-25

  • Last modified date

    2014-09-25

  • 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

    WAS SIB & SIBWS

  • Fixed component ID

    620800101

Applicable component levels

  • R300 PSY

       UP

  • R800 PSY

       UP

  • 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.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022