OA项目异常信息
磊疯
前车之鉴,后车之师
展开
-
OA项目异常信息——Internl Server Error
OA项目异常信息java.lang.NoSuchMethodException:com.chuai.web.RoleAction.roleUI()*原因:*left.jsp中${pageContext.request.contextPath}/role_roleUI.action">RoleAction.java中public String RoleUI(){***大小写—问题...原创 2018-12-17 19:26:09 · 472 阅读 · 0 评论 -
工作流——任务实例结束报错
完成流程实例中的最后一个任务时报错(任务实例结束时),或删除流程定义级联删除流程实例时,报错如下:com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (itcastoa_2...转载 2018-12-18 09:18:26 · 333 阅读 · 0 评论 -
Caused by: java.lang.LinkageError: loader constraints violated when linking javax/el/ExpressionFacto
启动Tomcat后,访问JSP时(使用的是MyEclipse自带的Tomcat,是6.0的版本),报错: Caused by: java.lang.LinkageError: loader constraints violated when linking javax/el/ExpressionFactory classat org.apache.jsp.WEB_002dINF.jsp.Us...转载 2018-12-18 09:18:35 · 368 阅读 · 0 评论 -
关于JBPM4.3与现有SSH框架系统结合过程中数据库事务问题
关于JBPM4.3与现有SSH框架系统结合过程中数据库事务问题1.这里报错,NoSuchMethodError,表示方法找不到,定位所在的类是;复制类的全路径,快捷键ctrl+shift+t,查找类型,得到结果如下,就表示冲突的包;解决办法,依次打开3个类,肯定有一个类中有这个方法,那么这个包就是要保留的。2.下一个,观察发现,这个类是jbpm.jar中的类,jar包我们也有,在tom...原创 2018-12-18 09:18:45 · 155 阅读 · 0 评论 -
使用jbpm4时遇到的错误:(工作流)
java.lang.NoSuchMethodError:org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;原因:缺少slf4j-nop.jar包;或引入的包有冲突。java.lang.LinkageError: loader constraint violation: when...原创 2018-12-18 09:18:55 · 643 阅读 · 0 评论 -
A different object with the same identifier value was already associated with the session
org.springframework.dao.DuplicateKeyException: A different object with the same identifier value was already associated with the session : [com.chuai.pojo.User#4]; nested exception is org.hibernate.No...原创 2018-12-17 20:11:18 · 226 阅读 · 0 评论 -
Error executing FreeMarker template FreeMarker template error——之延迟加载
09:17:39,106 ERROR runtime:60 - Error executing FreeMarker templateFreeMarker template error:Java method “org.hibernate.collection.internal.PersistentSet.toString()” threw an exception when invoked ...原创 2018-12-17 20:08:03 · 7535 阅读 · 0 评论 -
NonUniqueObjectException: A different object with the same identifier value was already associated
org.springframework.dao.DuplicateKeyException: A different object with the same identifier value was already associated with the session : [com.chuai.pojo.Department#14]; nested exception is org.hiber...原创 2018-12-17 20:04:56 · 4133 阅读 · 0 评论 -
java.lang.IllegalArgumentException: attempt to create saveOrUpdate event with null entity
java.lang.IllegalArgumentException: attempt to create saveOrUpdate event with null entity原因:使用ModelDriven模型驱动,没有new对象private Department department = new Department();注意事项: 在使用ssh框架的时候,控制层的Action中实...原创 2018-12-17 20:00:24 · 466 阅读 · 0 评论 -
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy - no Session原因:懒加载,多对一的懒加载未配置由于hibernate的延迟加载机制,新手经常会出现的LazyInitializationException...原创 2018-12-17 19:43:40 · 288 阅读 · 0 评论 -
The given object has a null identifier,做页面更新,id丢失
org.springframework.dao.InvalidDataAccessApiUsageException: The given object has a null identifier: com.chuai.pojo.Role; nested exception is org.hibernate.TransientObjectException: The given object ha...原创 2018-12-17 19:41:47 · 267 阅读 · 0 评论 -
dao.InvalidDataAccessApiUsageException异常
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’ mar...原创 2018-12-17 19:38:46 · 1256 阅读 · 0 评论 -
Role is not mapped [from Role],未映射
org.springframework.orm.hibernate5.HibernateQueryException: Role is not mapped [from Role]; nested exception is rg.hibernate.hql.internal.ast.QuerySyntaxException: Role is not mapped [from Role]Root ...原创 2018-12-17 19:36:16 · 584 阅读 · 0 评论 -
hibernate5与hibernate3在spring整合时注意版本
java.lang.ClassCastException:org.springframework.orm.hibernate5.SessionHolder cannot be cast to org.springframework.orm.hibernate3.SessionHolder原因:AbstractBaseDaoImpl类中import org.springframework.or...原创 2018-12-17 19:31:05 · 1833 阅读 · 0 评论