本文整理了Java中org.apache.commons.beanutils.NestedNullException
类的一些代码示例,展示了NestedNullException
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NestedNullException
类的具体详情如下:
包路径:org.apache.commons.beanutils.NestedNullException
类名称:NestedNullException
NestedNullException介绍
[英]Thrown to indicate that the Bean Access Language cannot execute query against given bean since a nested bean referenced is null.
[中]抛出以指示Bean访问语言无法对给定Bean执行查询,因为引用的嵌套Bean为null。
代码示例
代码示例来源:origin: commons-beanutils/commons-beanutils
final Object nestedBean = getProperty(bean, next);
if (nestedBean == null) {
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: org.kuali.rice/rice-kns
nestedBean = ObjectUtils.createNewObjectFromClass(method.getReturnType());
} catch (RuntimeException e) {
NestedNullException nne = new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
nne.initCause(e);
throw nne;
代码示例来源:origin: org.aperteworkflow/base-widgets
value = PropertyUtils.getProperty(processAttributes, element.getBind());
} catch (NestedNullException e) {
logger.log(Level.SEVERE, e.getMessage(), e);
代码示例来源:origin: wildfly/wildfly
final Object nestedBean = getProperty(bean, next);
if (nestedBean == null) {
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: wildfly/wildfly
final Object nestedBean = getProperty(bean, next);
if (nestedBean == null) {
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: commons-beanutils/commons-beanutils
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: commons-beanutils/commons-beanutils
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: commons-beanutils/commons-beanutils
final Object nestedBean = getProperty(bean, next);
if (nestedBean == null) {
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: wildfly/wildfly
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: wildfly/wildfly
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: commons-beanutils/commons-beanutils
throw new NestedNullException
("Null property value for '" + name +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: wildfly/wildfly
throw new NestedNullException
("Null property value for '" + name +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: commons-beanutils/commons-beanutils
throw new NestedNullException
("Null property value for '" + name +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: wildfly/wildfly
throw new NestedNullException
("Null property value for '" + name +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: stackoverflow.com
throw new NestedNullException("Could not init property value for '" + path + "' on bean class '"
+ bean.getClass() + "'. Class: " + propType);
代码示例来源:origin: net.sf.doolin/Doolin-Core
@Override
public Object getProperty(Object bean, String property) {
try {
if (StringUtils.isBlank(property)) {
return null;
} else if (StringUtils.equals(property, "this")) {
return bean;
} else if (bean instanceof PropertyAccessor) {
return ((PropertyAccessor) bean).getValue(property);
} else {
String prefix = StringUtils.substringBefore(property,
PropertyAccessor.SEPARATOR);
String leftOver = StringUtils.substringAfter(property,
PropertyAccessor.SEPARATOR);
Object child = getSimpleProperty(bean, prefix);
if (child == null) {
throw new NestedNullException();
} else if (StringUtils.isNotBlank(leftOver)) {
return getProperty(child, leftOver);
} else {
return child;
}
}
} catch (NestedNullException nullEx) {
return null;
} catch (Exception ex) {
throw new RuntimeException("Cannot get property " + property
+ " on bean " + bean, ex);
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-beanutils
Object nestedBean = getProperty(bean, next);
if (nestedBean == null) {
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.beanutils
Object nestedBean = getProperty(bean, next);
if (nestedBean == null) {
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
Object nestedBean = getProperty(bean, next);
if (nestedBean == null) {
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");
代码示例来源:origin: org.jboss.eap/wildfly-client-all
final Object nestedBean = getProperty(bean, next);
if (nestedBean == null) {
throw new NestedNullException
("Null property value for '" + next +
"' on bean class '" + bean.getClass() + "'");