- 浏览: 83656 次
文章分类
- 全部博客 (32)
- java (32)
- java.lang.IncompatibleClassChangeError (1)
- mysql concat函数 字符串连接 (1)
- Java网络编程 (1)
- ActiveMQ中消息游标 (1)
- applicationContext-hibernate-transaction.xml (1)
- Google Chrome浏览器必备插件(附:Firefox火狐浏览器必备插件) (1)
- Oracle数据库文档构造器--Oraschemadoc (1)
- solaris essential (1)
- 使用Spring的test (1)
- org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are (1)
- 《代码之道》 (1)
- 三亚之行 (1)
- StatCVS 对使用CVS的项目进行深入统计的开源工具 (1)
- 读写PDF TIFF JPEG文件的JAVA类库 (1)
- 应用MapXtreme2004开发GIS代码(C#) 搜索TAB表中的元素 (1)
- 购物车的实现及结算处理[转] (1)
- 微软发布搜索引擎 兼谈几个搜索引擎的比较 (1)
- 对于嵌入式系统的学习 应该可以告一段落了 (1)
- 移动审批工作流设计与实现 (1)
- SIFT算法概述 (1)
- 腾讯微博java(android) sdk 话题相关api详细介绍 (1)
- No configuration found. Configuring ehcache from ehcache-failsafe.xml (1)
- memcached client -- spymemcached使用 (1)
- Simple XML (1)
- 空指针错误 java.lang.NullPointerException (1)
- 服务器重起 (1)
- Spring中Quartz的Cron表达式详解 (1)
- swt 开发 (1)
- res.sendRedirect()和req.getRequestDispatcher().forward(req (1)
- res)的区别 (1)
- JAVA类设计技巧 (1)
- java之socket编程之谈 (1)
- 总结一下iteye上的足迹 (1)
最新评论
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.
org.springframework.orm.hibernate3.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1175)
org.springframework.orm.hibernate3.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:685)
org.springframework.orm.hibernate3.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:1)
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:683)
com.hill.cs.dao.impl.FactorAttriDaoImpl.save(FactorAttriDaoImpl.java:34)
com.hill.cs.dao.impl.FactorAttriDaoImpl.save(FactorAttriDaoImpl.java:1)
com.hill.cs.service.impl.FactorAttriServiceImpl.save(FactorAttriServiceImpl.java:14)
com.hill.cs.action.FactorAttriAction.test(FactorAttriAction.java:18)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerReque
在网上找了半天.大部分都是说:openSession in view 配置这个后service必须加事物声明annotation针对Hibernate的Session进行设置,要保证Session的开启与关闭.但是看看自己web里面确实配置了这个东西..为什么还会报这个错呢...主要是因为我把这个配置放到了web.xml最下面.导致前面都加载完了..才去加载后面当然加载不到..粗心啊....后来放到最前面就解决了...
发表评论
-
总结一下iteye上的足迹
2012-02-08 14:57 791<span style="bac ... -
java之socket编程之谈
2012-02-08 13:43 954<span style="col ... -
JAVA类设计技巧
2012-02-04 15:24 8821.一定要将数据设计为private 2.一定要 ... -
res.sendRedirect()和req.getRequestDispatcher().forward(req,res)的区别
2012-02-04 11:34 3268res.sendRedirect()=重定向 ... -
swt 开发
2012-02-03 17:14 9511. 下载 eclipse 3.7 2. 安装 goo ... -
Spring中Quartz的Cron表达式详解
2012-02-03 15:39 909<table style="& ... -
服务器重起
2012-02-03 14:54 635内报:141 外报:143,133 ? 外服:128 ... -
空指针错误 java.lang.NullPointerException
2012-02-02 14:44 929使用 ... -
Simple XML
2012-02-01 10:04 958<p style=""> ... -
memcached client -- spymemcached使用
2012-02-01 09:49 1338<a href="http://blo ... -
No configuration found. Configuring ehcache from ehcache-failsafe.xml
2011-12-28 13:23 1124<span style="font-f ... -
腾讯微博java(android) sdk 话题相关api详细介绍
2011-12-28 11:39 787<span style="font-f ... -
SIFT算法概述
2011-12-21 09:44 1001<span></span> & ... -
移动审批工作流设计与实现
2011-12-20 10:59 1175<p style="text-ind ... -
对于嵌入式系统的学习 应该可以告一段落了
2011-12-19 10:19 732最近看了些关于嵌入式系统的资料,脑袋里对嵌入式开发的概 ... -
微软发布搜索引擎 兼谈几个搜索引擎的比较
2011-12-17 10:44 832微软于昨天(11月11日)正式发布其搜索引擎。这个是网 ... -
购物车的实现及结算处理[转]
2011-12-16 17:07 2694注:此文章来自CSDN。觉得代码挺清晰的,而且可能很多 ... -
应用MapXtreme2004开发GIS代码(C#) 搜索TAB表中的元素
2011-12-15 12:09 942</span></span>& ... -
读写PDF TIFF JPEG文件的JAVA类库
2011-12-14 09:49 3049这几种常见文件格式的读写类库,有人收集好了,详见下面网 ... -
StatCVS 对使用CVS的项目进行深入统计的开源工具
2011-12-14 09:19 751这个工具很好,主要是分析cvs的log得出统计结果,以 ...
相关推荐
### 关于 `org.springframework.dao.InvalidDataAccessApiUsageException` 的深入解析 在Spring与Hibernate集成开发过程中,开发者可能会遇到各种各样的异常问题。其中一种较为常见的异常是 `org.springframework....
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker ...
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker ...
<bean name="openSessionInViewInterceptor" class="org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor"> <bean id="urlMapping" class="org.springframework.web.servlet.handler....
该异常层次结构是 Spring 框架中 DAO(Data Access Object)模块的一部分,其目的是为了提供一个统一的错误处理机制,使得开发者可以更方便地处理数据访问层中的错误。 DataAccessException 是一个 ...
InvalidDataAccessApiUsageException InvalidDataAccessResourceUsageException InvalidDestinationException InvalidInvocationException InvalidIsolationLevelException InvalidMetadataException ...
`HibernateTemplate`是Spring框架中的一个类,位于`org.springframework.orm.hibernate3`包下。它提供了一系列简化Hibernate数据访问操作的方法,并且能够自动将Hibernate异常转换为Spring的数据访问异常体系中的...
问题 1:如果各层都不加事务管理的话,会报错 `org.springframework.dao.InvalidDataAccessApiUsageException`。 解决方案:在各层中添加 `@Transactional` 注解,例如: ```java @Transactional public void ...
Hibernate的异常体系基于JDBC异常,主要包括PersistenceException、ConstraintViolationException、InvalidDataAccessApiUsageException等,理解这些异常有助于调试和优化代码。 **10. 性能优化** 优化Hibernate...