Examples of PropertyNotFoundException


Examples of org.camunda.bpm.engine.impl.javax.el.PropertyNotFoundException

  }

  public Object invoke(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes, Object[] paramValues) {
    Object base = property.getPrefix().eval(bindings, context);
    if (base == null) {
      throw new PropertyNotFoundException(LocalMessages.get("error.property.base.null", property.getPrefix()));
    }
    Object method = property.getProperty(bindings, context);
    if (method == null) {
      throw new PropertyNotFoundException(LocalMessages.get("error.property.method.notfound", "null", base));
    }
    String name = bindings.convert(method, String.class);
    paramValues = params.eval(bindings, context);

    context.setPropertyResolved(false);
View Full Code Here

Examples of org.hibernate.PropertyNotFoundException

      }

      return md;

    } catch (HibernateException ex) {
      throw new PropertyNotFoundException("Could not find property '" + propertyPath + "' on class "
          + rootEntityClass + ".");
    }
  }
View Full Code Here

Examples of org.hibernate.PropertyNotFoundException

 
  private static Setter createSetter(Class theClass, String propertyName)
  throws PropertyNotFoundException {
    BasicSetter result = getSetterOrNull(theClass, propertyName);
    if (result==null) {
      throw new PropertyNotFoundException(
          "Could not find a setter for property " +
          propertyName +
          " in class " +
          theClass.getName()
        );
View Full Code Here

Examples of org.hibernate.PropertyNotFoundException

 
  public static Getter createGetter(Class theClass, String propertyName)
  throws PropertyNotFoundException {
    BasicGetter result = getGetterOrNull(theClass, propertyName);
    if (result==null) {
      throw new PropertyNotFoundException(
          "Could not find a getter for " +
          propertyName +
          " in class " +
          theClass.getName()
      );
View Full Code Here

Examples of org.hibernate.PropertyNotFoundException

    }
  }

  private static Field getField(Class clazz, String name) throws PropertyNotFoundException {
    if ( clazz==null || clazz==Object.class ) {
      throw new PropertyNotFoundException("field not found: " + name);
    }
    Field field;
    try {
      field = clazz.getDeclaredField(name);
    }
View Full Code Here

Examples of org.hibernate.PropertyNotFoundException

    return field;
  }

  private static Field getField(Class root, Class clazz, String name) throws PropertyNotFoundException {
    if ( clazz==null || clazz==Object.class ) {
      throw new PropertyNotFoundException("field [" + name + "] not found on " + root.getName());
    }
    Field field;
    try {
      field = clazz.getDeclaredField(name);
    }
View Full Code Here

Examples of org.hibernate.PropertyNotFoundException

 
  private static Setter createSetter(Class theClass, String propertyName)
  throws PropertyNotFoundException {
    BasicSetter result = getSetterOrNull(theClass, propertyName);
    if (result==null) {
      throw new PropertyNotFoundException(
          "Could not find a setter for property " +
          propertyName +
          " in class " +
          theClass.getName()
        );
View Full Code Here

Examples of org.nasutekds.server.admin.PropertyNotFoundException

          // behavior here when we should really use the exact
          // definition of the component being created.
          PropertyDefinition<?> pdTmp = d.getPropertyDefinition(propertyName);
          pd2 = pd1.getClass().cast(pdTmp);
        } catch (IllegalArgumentException e) {
          throw new PropertyNotFoundException(propertyName);
        } catch (ClassCastException e) {
          // FIXME: would be nice to throw a better exception here.
          throw new PropertyNotFoundException(propertyName);
        }

        // If the path relates to the current managed object and the
        // managed object is in the process of being created it won't
        // exist, so we should just use the default values of the
View Full Code Here

Examples of org.springframework.binding.expression.PropertyNotFoundException

  public Object getValue(Object context) throws EvaluationException {
    try {
      BeanWrapperImpl beanWrapper = new BeanWrapperImpl(context);
      return beanWrapper.getPropertyValue(expression);
    } catch (NotReadablePropertyException e) {
      throw new PropertyNotFoundException(context.getClass(), expression, e);
    } catch (BeansException e) {
      throw new EvaluationException(context.getClass(), getExpressionString(),
          "A BeansException occurred getting the value for expression '" + getExpressionString()
              + "' on context [" + context.getClass() + "]", e);
    }
View Full Code Here

Examples of pivot.beans.PropertyNotFoundException

        Class<?> objectType = object.getClass();

        // Determine the property type from the getter method
        Method getterMethod = getStaticGetterMethod(propertyClass, propertyName, objectType);
        if (getterMethod == null) {
            throw new PropertyNotFoundException("Static property \"" + attribute
                + "\" does not exist.");
        }

        // Resolve the attribute value
        Class<?> propertyType = getterMethod.getReturnType();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.