org.hibernate.QueryException: query specified join fetching Hibernate异常: org.hibernate.QueryException: query specified join fetching, but the owner of the fetched association was not present in the select list [FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAli…
2015-02-01 07:43 · exception
最近使用SSH时遇到could not initialize proxy - no Session这个异常,整理出来解决方法 如图:
2015-01-31 15:59 · exception
net.sf.json.JSONException: java.lang.reflect.InvocationTargetException json-lib对象转化为json数据抛net.sf.json.JSONException: va.lang.reflect.InvocationTargetException异常 出现了两种情况: 日期格式 hibernate延时加载 解决:日期格式 private java.util.Date createTime; 只在字段前声明Date的数据类型可能也会抛异常,在Set,get方法中,有出现Date类型的都把包名加上 解决:hibernate延…
2015-01-31 15:42 · exception
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'usersname' in 'class com.zyd.beans.Admin' at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.…
2015-01-31 15:40 · exception · MyBatis · Exception
java.lang.ClassNotFoundException: net.sf.ezmorph.Morpher Could not initialize class net.sf.json.util.JSONUtils 出现以上等异常,可能是使用Json缺少以下几个包中的一个: ezmorph-1.0.6.jar commons-lang 2.4 commons-beanutils 1.7.0 commons-collections 3.2 commons-logging 1.1.1
2015-01-31 15:38 · exception · json · classnotfoundexception