热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.apache.commons.beanutils.NestedNullException类的使用及代码示例

本文整理了Java中org.apache.commons.beanutils.NestedNullException类的一些代码示例,展示了NestedNu

本文整理了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() + "'");

推荐阅读
author-avatar
谭宏景
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有