Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6672

PollingMessageListenerContainer does fail silently upon java.lang.Error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 3.0.6
    • 3.1.14, 3.2.1
    • JMS
    • None
    • Novice

    Description

      java.lang.Error, when thrown by one of the PollingMessageListenerContainer consumer threads, is not logged at all, instead processing is just aborted without any hint in the log that an error occured at all.

      The easy fix should be to catch Throwable instead of Exception in org.apache.cxf.transport.jms.util.PollingMessageListenerContainer.Poller, where it is logged at WARN level (although I'd even prefer at least Errors if not also Exceptions to be logged at ERROR).

      The cause of the error in our specific case was the inclusion of an older version of ehcache (ehcache-core:2.6.10) in addition to the cxf dependency ehcache:2.8.5. This caused an NoSuchMethodError when the replay cache was used.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            avallen Andreas Vallen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: