Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2536

XPath selectors return false if xalan is not on the classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.3.0
    • 5.9.1, 5.10.0
    • Selector
    • None

    Description

      When xalan.jar is not on the classpath, then org.apache.activemq.filter.XalanXPathEvaluator in evaluate() method tries to load org.apache.xpath.CachedXPathAPI, throws NoClassDefFoundError, that is catched as Throwable and false is returned instead of an error.

      No clue is given to the client, that it lacks a jar on the classpath and the impression is, that XPath selectors doesn't work and return false whatever the message is.

      I believe if we catch Exception instead of Throwable, then the problem would be fixed.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            romkal Roman Kalukiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: