今天遇到一个
Exception thrown by getter for property ** of bean ***
的问题,查了半天还是找不到问题,其实应该从提示信息着手,因为其他同样的页面没有问题,单单一个页面出现问题,后来查数据库发现该页面关联的某页面在数据库中的某一个表中没有数据。。汗了一地。。。
其他相关的解决方法:
1,
配置hibernate文件
http://hi.baidu.com/200770842223/item/830e16dcb8b8fe57d73aae11
2,
解决方法:
可以在web.xml中配置一个openSesseionInViewFilter过滤器
配置如下:
<!-- 配置一个OpenSessionInViewFilter的过滤器,用于当用户请求带有延迟加载的数据时,解决lazyInitialization的问题 -->
<filter>
<filter-name>openSessionInViewFilter</filter-name>
<!-- 在referenced Libraries文件夹下的: spring-orm.jar-->
<filter-class>
org.springframework.orm.jdo.support.OpenPersistenceManagerInViewFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>openSessionInViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
问题解决了!
参见 http://xiaoxuejie.iteye.com/blog/791872
相关推荐
在Android应用开发中,NDK(Native Development Kit)是一个重要的工具集,它允许开发者使用C和C++编写部分代码,从而提升性能、处理底层硬件交互或利用现有的C/C++库。JNI(Java Native Interface)是Java平台的...
The most specific exception which can be thrown is written on the top in the catch block following by the less specific least. Nested try catch We can declare multiple try blocks inside the try ...
今天更新hive版本的时候,把关联的数据库删掉了,重新生成,之后出现MetaException(message:An exception was thrown while adding/validating class(es) : Column length too big for column 'PARAM_VALUE' (max = ...
AlwaysRecreateHotregions="True" in WinForms templates or templates generated by Chart Builder causes the Exception Can't deserialize property. Unknown property name "AlwaysRecreateHotregions" in ...
### WebService调用常见问题详解 #### 一、概述 在使用Visual Studio 2008进行Web开发的过程中,开发者可能会遇到一个常见的问题:在建立了Web Service应用程序之后,尝试在ASP.NET环境中调用该服务时,往往会出现...
throw new CustomException("A custom exception is thrown."); // 自定义异常 } } class CustomException extends Exception { public CustomException(String message) { super(message); } } ``` 在这个...
LVM 管理 LVM(Logical Volume Manager,逻辑卷管理器)是一种逻辑卷管理方式,旨在解决传统磁盘分区管理的限制。LVM 的出现填补了传统磁盘分区管理的不足之处,使得管理员可以更方便地管理磁盘存储资源。...
- **Exception is caught when Exception is not thrown**:调用的方法中不会抛出异常,但是调用方法的时候尝试使用try-catch捕获异常。 - **描述**:这表明对异常的不必要捕获。 - **处理**:确认该方法调用是否...
An UnsupportedAddressTypeException is thrown when connecting or binding to an unsupported address type.
Elasticsearch-异常 解析 Elasticsearch 异常响应并将其转换为 JavaScript 错误 var EsEx = require('elasticsearch-exceptions'); someRequestToElasticSearchOrUsingANodeJSClient(function(err, ok){ ...
- For backwards compatability you can tell VCLZip to use the old VCLZip filenaming format by using the BlockMode property. - New method OnFileNameForSplitPart called just before each split filepart is...
Q433982 - Data-aware Views - The "RowIndex out of range" exception is thrown when updating the TClientDataSet bound to the View within a form's OnDestroy event handler using EmptyDataSet, etc. ...
Q433982 - Data-aware Views - The "RowIndex out of range" exception is thrown when updating the TClientDataSet bound to the View within a form's OnDestroy event handler using EmptyDataSet, etc. ...
Q433982 - Data-aware Views - The "RowIndex out of range" exception is thrown when updating the TClientDataSet bound to the View within a form's OnDestroy event handler using EmptyDataSet, etc. ...
Q433982 - Data-aware Views - The "RowIndex out of range" exception is thrown when updating the TClientDataSet bound to the View within a form's OnDestroy event handler using EmptyDataSet, etc. ...
Q433982 - Data-aware Views - The "RowIndex out of range" exception is thrown when updating the TClientDataSet bound to the View within a form's OnDestroy event handler using EmptyDataSet, etc. ...
Tape by Square, Inc. Tape is a collection of queue-related classes for Android and Java. ...an I/O exception is thrown during a mutating change, the change is aborted. NOTE: The current implementation
Q433982 - Data-aware Views - The "RowIndex out of range" exception is thrown when updating the TClientDataSet bound to the View within a form's OnDestroy event handler using EmptyDataSet, etc. ...
Q433982 - Data-aware Views - The "RowIndex out of range" exception is thrown when updating the TClientDataSet bound to the View within a form's OnDestroy event handler using EmptyDataSet, etc. ...