You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Dejan Bosanac (JIRA)" <ji...@apache.org> on 2010/12/02 14:10:19 UTC

[jira] Updated: (AMQ-2536) XPath selectors return false if xalan is not on the classpath

     [ https://issues.apache.org/jira/browse/AMQ-2536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dejan Bosanac updated AMQ-2536:
-------------------------------

    Fix Version/s:     (was: 5.4.2)
                   5.5.0

> XPath selectors return false if xalan is not on the classpath
> -------------------------------------------------------------
>
>                 Key: AMQ-2536
>                 URL: https://issues.apache.org/jira/browse/AMQ-2536
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Selector
>    Affects Versions: 5.3.0
>            Reporter: Roman Kalukiewicz
>             Fix For: 5.5.0
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.