Package javax.jms

Examples of javax.jms.InvalidSelectorException


    queue.check();

    try {
      ClientSelector.checks(selector);
    } catch (org.objectweb.joram.shared.excepts.SelectorException sE) {
      throw new InvalidSelectorException("Invalid selector syntax: " + sE);
    }

    this.sess = sess;
    this.queue = queue;
    this.selector = selector;
View Full Code Here


    checkClosed();
   
    try {
      org.objectweb.joram.shared.selectors.Selector.checks(selector);
    } catch (org.objectweb.joram.shared.excepts.SelectorException sE) {
      throw new InvalidSelectorException("Invalid selector syntax: " + sE);
    }

    if (sessionPool == null)
      throw new JMSException("Invalid ServerSessionPool parameter: "
                             + sessionPool);
View Full Code Here

         resultType = result.getClass();
      }
      catch (Exception e)
      {
         if (log.isTraceEnabled()) { log.trace("Invalid selector:" + sel); }
         throw new InvalidSelectorException("The selector is invalid: " + sel);
      }
   }
View Full Code Here

      return null;
   
    Selector selector = parseExpr();

    if (! selector.isUnknown() && ! selector.isBoolean())
      throw new InvalidSelectorException(L.l("selector '{0}' must be a boolean",
                                             selector));

    return selector;
  }
View Full Code Here

   */
  public JMSException error(String msg)
  {
    msg += "\nin \"" + _query + "\"";
   
    return new InvalidSelectorException(msg);
  }
View Full Code Here

    case SelectorParser.LT:
    case SelectorParser.LE:
    case SelectorParser.GT:
    case SelectorParser.GE:
      if (! _left.isUnknown() && ! _left.isNumber())
        throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                                               this));
      if (! _right.isUnknown() && ! _right.isNumber())
        throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                                               this));
      break;
    case SelectorParser.EQ:
    case SelectorParser.NE:
      if (_left.isUnknown() || _right.isUnknown()) {
      }
      else if (_left.isNumber() != _right.isNumber()) {
        throw new InvalidSelectorException(L.l("'{0}' test must have matching types.",
                                               this));
      }
      break;
     
    case SelectorParser.AND:
    case SelectorParser.OR:
      if (! _left.isUnknown() && ! _left.isBoolean())
        throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                                               this));
      if (! _right.isUnknown() && ! _right.isBoolean())
        throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                                               this));
      break;
    }
  }
View Full Code Here

  {
    _left = left;
    _right = right;

    if (! _left.isUnknown() && ! _left.isBoolean())
      throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                                             this));
    if (! _right.isUnknown() && ! _right.isBoolean())
      throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                                             this));
  }
View Full Code Here

    _left = left;
    _low = low;
    _high = high;

    if (! _left.isUnknown() && ! _left.isNumber())
      throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                                             this));
    if (! _low.isUnknown() && ! _low.isNumber())
      throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                                             this));
    if (! _high.isUnknown() && ! _high.isNumber())
      throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                                             this));
  }
View Full Code Here

        catch (ConnectionErrorException e)
        {
            Error error = e.getRemoteError();
            if(AmqpError.INVALID_FIELD.equals(error.getCondition()))
            {
                throw new InvalidSelectorException(e.getMessage());
            }
            else
            {
                throw new JMSException(e.getMessage(), error.getCondition().getValue().toString());
View Full Code Here

            catch(ConnectionErrorException e)
            {
                org.apache.qpid.amqp_1_0.type.transport.Error error = e.getRemoteError();
                if(AmqpError.INVALID_FIELD.equals(error.getCondition()))
                {
                    throw new InvalidSelectorException(e.getMessage());
                }
                else
                {
                    throw new JMSException(e.getMessage(), error.getCondition().getValue().toString());
                }
View Full Code Here

TOP

Related Classes of javax.jms.InvalidSelectorException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.