3 Replies Latest reply on Jan 27, 2003 5:11 AM by shmulik

    "OR" Bug in Selector?

    David Streever Newbie

      I'm having a problem with the following SELECTOR statement.

      Status IN ('new', 'cleared', 'acknowledged')
      I've also tried it as:

      (Status = 'new') OR (Status = 'cleared') OR (Status = 'acknowledged')

      Both are seen as a invalid SELECTOR's. I traced the code down into the Operator class.

      On line 758 in Operator.java when it tries to computerArgument2 the oper2 value is null and throws an exception. That exception carries all the way out to a JMSException and ceases the calculation on the SELECTOR value.

      Can someone please verify this for me OR help me figure out my problem if it isn't a bug?


        • 1. Re: "OR" Bug in Selector?
          David Streever Newbie

          I'm running it on JBoss 3.0.0RC1 built from CVS RC1 label around the 15th of April.

          • 2. Re: "OR" Bug in Selector?
            Hiram Chirino Expert

            Thanks for the bug report! Both problems have now been fixed in the CVS copy. The next 2.0 RC2 will have the fix!


            • 3. Re: "OR" Bug in Selector?
              shmulik Newbie

              Im using the latest version of Jboss and im still having selector problem:
              here is the DurableSubscription node:

              orgID=10012466 and JMSType in ('operations','projects','user-types','stylesheets','groups','statuses')

              and the error im getting is:
              javax.jms.JMSException: SELECTOR: EQUAL: Bad object type
              at org.jboss.mq.selectors.Selector.test(Selector.java:186)
              at org.jboss.mq.server.SelectorPersistentQueue.addMessage(SelectorPersistentQueue.java:68)
              at org.jboss.mq.server.JMSTopic.addMessage(JMSTopic.java:265)
              at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:398)
              at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:376)
              at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:135)
              at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:155)
              at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:209)
              at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:137)
              at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:248)
              at java.lang.Thread.run(Thread.java:536)

              I NEED HELP....