Package javax.el

Examples of javax.el.PropertyNotFoundException


      throws ELException {
    Object r = ReflectionUtil.invokeMethod(base, this.image, this
        .getParameters(ctx));
    if (r == null) {
      if (r == null) {
        throw new PropertyNotFoundException(
            "Target Unreachable, Method '" + this.image
                + "' returned null for type " + base.getClass().getName());
      }
    }
    return r;
View Full Code Here


    if (base == null) return null;
    ELResolver resolver = ctx.getELResolver();
    ctx.setPropertyResolved(false);
    Object r = resolver.getValue(ctx, base, this.image);
    if (r == null) {
      throw new PropertyNotFoundException(MessageFactory.get(
          "error.unreachable.property", base.getClass().getName(),
          this.image));
    }
    return r;
  }
View Full Code Here

        // evaluate expr-a to value-a
        Object base = this.children[0].getValue(ctx);
       
        // if our base is null (we know there are more properites to evaluate)
        if (base == null) {
            throw new PropertyNotFoundException(MessageFactory.get(
                    "error.unreachable.base", this.children[0].getImage()));
        }
       
        // set up our start/end
        int propCount = this.jjtGetNumChildren() - 1;
        int i = 1;
       
        while (base != null && i < propCount) {
            base = ((ValueSuffixNode) this.children[i]).getTarget(base, ctx);
            i++;
           
            if (base == null) {
                throw new PropertyNotFoundException(MessageFactory.get(
                        "error.unreachable.base", this.children[0].getImage()));
            }
        }
       
        Target t = new Target();
View Full Code Here

    ELResolver resolver = ctx.getELResolver();
    ctx.setPropertyResolved(false);
    Object p = this.getValue(ctx);
    Object r = resolver.getValue(ctx, base, p);
    if (r == null) {
      throw new PropertyNotFoundException(MessageFactory.get(
          "error.unreachable.property", base.getClass().getName(),
          p));
    }
    return r;
  }
View Full Code Here

    private final static Long ZERO = new Long(0L);

    public final static void throwUnhandled(Object base, Object property)
            throws ELException {
        if (base == null) {
            throw new PropertyNotFoundException(MessageFactory.get(
                    "error.resolver.unhandled.null", property));
        } else {
            throw new PropertyNotFoundException(MessageFactory.get(
                    "error.resolver.unhandled", base.getClass(), property));
        }
    }
View Full Code Here

    private final static Long ZERO = new Long(0L);

    public final static void throwUnhandled(Object base, Object property)
            throws ELException {
        if (base == null) {
            throw new PropertyNotFoundException(MessageFactory.get(
                    "error.resolver.unhandled.null", property));
        } else {
            throw new PropertyNotFoundException(MessageFactory.get(
                    "error.resolver.unhandled", base.getClass(), property));
        }
    }
View Full Code Here

            return null;
        }
        if (property == null) {
            String message = MessageUtils.getExceptionMessageString
                (MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, "property");
            throw new PropertyNotFoundException(message);
        }

        return resolveBean(context, property, true);

    }
View Full Code Here

        throws ELException {

        if (base == null && property == null) {
            String message = MessageUtils.getExceptionMessageString
                (MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, "property");
            throw new PropertyNotFoundException(message);
        }

        return null;

    }
View Full Code Here

    throws ELException {

        if (base == null && property == null) {
            String message = MessageUtils.getExceptionMessageString
                (MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, "base and property");
            throw new PropertyNotFoundException(message);
        }

        if (base == null) {
            // create the bean if it doesn't exist.  We won't mark the property
            // as resolved in this case, since the spec requires us to actually
View Full Code Here

            return false;
        }
        if (property == null) {
            String message = MessageUtils.getExceptionMessageString
                (MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, "property");
            throw new PropertyNotFoundException(message);
        }

        return false;
    }
View Full Code Here

TOP

Related Classes of javax.el.PropertyNotFoundException

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.