Package javax.el

Examples of javax.el.ELException


                }
            } catch (PropertyNotFoundException e) {
                throw new javax.el.PropertyNotFoundException(e.getMessage(), e
                        .getCause());
            } catch (EvaluationException e) {
                throw new ELException(e.getMessage(), e.getCause());
            }

        }
View Full Code Here


            iter = toIterator((Enumeration)obj);
        }
        else if (obj instanceof Map) {
            iter = ((Map)obj).entrySet().iterator();
        } else {
            throw new ELException(Resources.getMessage("FOREACH_BAD_ITEMS"));
        }
        return iter;
    }
View Full Code Here

                    new IteratedExpression(deferredExpression, getDelims());
            }
            return new IteratedValueExpression(iteratedExpression, index);
        }

        throw new ELException(Resources.getMessage("FOREACH_BAD_ITEMS"));
    }
View Full Code Here

  protected JJTELParserState jjtree = new JJTELParserState();public static Node parse(String ref) throws ELException
    {
        try {
                return (new ELParser(new StringReader(ref))).CompositeExpression();
        } catch (ParseException pe) {
                throw new ELException(pe.getMessage(), pe);
        }
    }
View Full Code Here

        } else if (base instanceof Map) {
            return ((Map) base).entrySet();
        } else if (base.getClass().isArray()) {
            return Arrays.asList((Object[]) base);
        } else if (force) {
            throw new ELException(base.getClass().getName() + " is not an instance of Iterable or cannot be coerced to Iterable.");
        } else {
            return null;
        }
    }
View Full Code Here

       
        FunctionMapper fnMapper = ctx.getFunctionMapper();
       
        // quickly validate again for this request
        if (fnMapper == null) {
            throw new ELException(MessageFactory.get("error.fnMapper.null"));
        }
        Method m = fnMapper.resolveFunction(this.prefix, this.localName);
        if (m == null) {
            throw new ELException(MessageFactory.get("error.fnMapper.method",
                    this.getOutputName()));
        }
        return m.getReturnType();
    }
View Full Code Here

       
        FunctionMapper fnMapper = ctx.getFunctionMapper();
       
        // quickly validate again for this request
        if (fnMapper == null) {
            throw new ELException(MessageFactory.get("error.fnMapper.null"));
        }
        Method m = fnMapper.resolveFunction(this.prefix, this.localName);
        if (m == null) {
            throw new ELException(MessageFactory.get("error.fnMapper.method",
                    this.getOutputName()));
        }
       
        // If no params, there are no children, jjtGetNumChildren returns 0 if no children, not NPE
        Object[] params = new Object[this.jjtGetNumChildren()];
View Full Code Here

      return (MethodExpression) obj;
    } else if (obj == null) {
      throw new MethodNotFoundException("Identity '" + this.image
          + "' was null and was unable to invoke");
    } else {
      throw new ELException(
          "Identity '"
              + this.image
              + "' does not reference a MethodExpression instance, returned type: "
              + obj.getClass().getName());
    }
View Full Code Here

            return (obj1 != null) ? ((Comparable) obj0).compareTo(obj1) : 1;
        }
        if (obj1 instanceof Comparable) {
            return (obj0 != null) ? -((Comparable) obj1).compareTo(obj0) : -1;
        }
        throw new ELException(MessageFactory.get("error.compare", obj0, obj1));
    }
View Full Code Here

        }
       
        try {
            return m.invoke(base, params);
        } catch (IllegalAccessException iae) {
            throw new ELException(iae);
        } catch (InvocationTargetException ite) {
            throw new ELException(ite.getCause());
        }
       
    }
View Full Code Here

TOP

Related Classes of javax.el.ELException

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.