1 Reply Latest reply on May 15, 2014 7:49 AM by Miroslav Novak

    hornetq filter won't escape character

    Ian Ian Newbie

      I'm sure the answer is straightforward but can't find it - How can you escape special characters in the filter API  as it doesn't seem you can - e.g. ifI run a query with the following query originalQueue=queue-orders it falls over with the following;

       

       

       

      Caused by: org.hornetq.core.filter.impl.ParseException: Encountered " "-" "- "" at line 1, column 23.
      Was expecting one of:
          <EOF> 
          "AND" ...
          "OR" ...
          
        at org.hornetq.core.filter.impl.FilterParser.generateParseException(FilterParser.java:1482) [hornetq-core-client-2.4.1.Final.jar:]
        at org.hornetq.core.filter.impl.FilterParser.jj_consume_token(FilterParser.java:1364) [hornetq-core-client-2.4.1.Final.jar:]
        at org.hornetq.core.filter.impl.FilterParser.expression(FilterParser.java:109) [hornetq-core-client-2.4.1.Final.jar:]
        at org.hornetq.core.filter.impl.FilterParser.parse(FilterParser.java:61) [hornetq-core-client-2.4.1.Final.jar:]
        at org.hornetq.core.filter.impl.FilterParser.parse(FilterParser.java:41) [hornetq-core-client-2.4.1.Final.jar:]
        at org.hornetq.core.filter.impl.FilterImpl.createFilter(FilterImpl.java:96) [hornetq-server-2.4.1.Final.jar:]
        ... 30 more
      
      
       [0m
      

       

      tried prefixing with \ & putting in quotes/double quotes - not joy.. (PS - can can't change the name of the queue - it is legacy :-( )