
Java
saimer1220
这个作者很懒,什么都没留下…
展开
-
[已解决]org.hibernate.exception.SQLGrammarException: could not execute statement
第一次写问题记录,在网上找了许久但还没解决下面是各个文件的代码:<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <!-- 1配置类和表对应原创 2017-05-28 22:06:00 · 23493 阅读 · 9 评论 -
获取web项目的绝对路径的方法总结
转载自:http://www.cnblogs.com/duoting/p/4141044.html觉得自己有用,就先保存下来一、用Jsp获取 1、获取文件的绝对路径String file="文件";(例如:data.mdb)String path=application.getRealPath(file);结果:E:\ja转载 2017-09-24 20:51:05 · 535 阅读 · 0 评论 -
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0];
org.springframework.orm.hibernate5.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hib原创 2017-09-14 08:57:39 · 1934 阅读 · 0 评论 -
javassist_0 cannot be cast to javassist.util.proxy.Proxy
ERROR org.hibernate.proxy.pojo.javassist.JavassistProxyFactory - HHH000142: Bytecode enhancement failed: cn.myssh.client.entity.Client今天在进行级联删除时,操作之后,再运行服务器,点开Contact页面,就成这样了。之前有一个Contact表中的属性原创 2017-07-19 17:04:33 · 447 阅读 · 0 评论 -
取消hibernate的双向维护,以及引用cascade="delete"
在现在的多个表关联的应用中,表与表的同时维护少不了。下面是我在进行SSH应用中遇到的问题及一些解决方法。表:Client表(一)Contact表(多)在网页中,想通过维护或删除Client表中的对象时,同时将对应的Contact表中的关联对象进行维护或删除。下面将各个情况说一下。1、进行修改维护因为在Client表中进行修改它的名称时,也要将它反映到Co原创 2017-07-19 15:53:30 · 373 阅读 · 0 评论 -
一对多、表外键处理时Action中的No result defined for action cn.myssh.contact.action.ContactAction and re
---- HTTP Status 404 - No result defined for action cn.myssh.contact.action.ContactAction and result input----Error creating bean with name 'sessionFactory' defined in class path resource [bean1.xml原创 2017-07-18 23:54:50 · 655 阅读 · 0 评论 -
Unable to install breakpoint in bus.XXX,第三种解决建议
Unable to install breakpoint in bus.GenBUS$$EnhancerByCGLIB$$749137d3 due to missing line number attributes. Modify compiler options to generate line number attributes. Reason : Absent Line Number I原创 2017-07-30 21:44:37 · 5519 阅读 · 1 评论 -
Hibernate中遇到的 NullPointerException问题和IllegalArgumentException
在自己新学Hibernate的时候,对于配置文件中的各个属性,还不是很熟悉。对于要多敲代码的程序员来说,这个低级错误也许是好的。在我进行Hibernate中多对多表格的级联操作的时候,进行JUnit单元测试,然后出现了以下的问题,自己也捣鼓了很久时间才终于发现问题的所在。1.NullPointerException错误这个错误可能会在很多地方有,但是我这次的出现的是在配置文原创 2017-06-06 18:49:01 · 1893 阅读 · 0 评论 -
Spring+AspectJ,操作AOP出错
Aspectj的AOP操作,出错org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'book' defined in class path resource [bean3.xml]: BeanPostProcessor before instantiation原创 2017-06-13 15:09:30 · 2751 阅读 · 1 评论 -
Caused by: java.lang.NoClassDefFoundError: org/codehaus/jackson/type/JavaType
首先,先贴出所报的错。java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConst...原创 2019-05-09 16:12:18 · 2363 阅读 · 0 评论