
异常
文章平均质量分 60
iteye_4181
这个作者很懒,什么都没留下…
展开
-
Unable to locate appropriate constructor on class [com.IIF5.entity.WxuserByTech
java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [com.IIF5.entity.WxuserByTechnitian]. Expected arguments are...原创 2015-06-04 10:56:53 · 223 阅读 · 0 评论 -
com.mysql.jdbc.PacketTooBigException_max_allowed_packet问题
com.mysql.jdbc.PacketTooBigException: Packet for query is too large (1155209 >1048576). You can change this value on the server by setting themax_allowed_packet' variable. mysql根据配置文件会限制s...原创 2015-04-20 10:15:16 · 131 阅读 · 0 评论 -
Org.Hibernate.AnnotationException: No Identifier Specified For Entity
org.hibernate.AnnotationException: No identifier specified forentity: net.viralpatel.hibernate.Employee这里的错误是,在你的实体类,你没有定义一个主键。因此指定@ id注释或@EmbeddedId注释。然而却不是的,只是因为我的private static final long s...原创 2015-04-15 08:45:36 · 141 阅读 · 0 评论 -
java.lang.IllegalStateException: Ambiguous mapping found. Cannot map ‘xxx
原是更新svn中的代码时,与别人命名冲突了,在springmvc中不能同时映射一个名字(@RequestMapping("/xxx")原创 2015-04-15 08:38:51 · 971 阅读 · 0 评论 -
java.io.NotSerializableException错误解决方法
在server.xml中Context下添加如下的内容:解决办法一:<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"> <Store className="org.apache.catalina.session.FileSto...原创 2015-04-09 09:30:43 · 591 阅读 · 0 评论 -
javax.persistence.EntityNotFoundException: Unable to find XXXX with id 0 问题原因
根本原因:由于后来加上/删除的实体、对象在之前的数据没有关联上,所以造成脏数据。无论是@OneToOne 还是@ManyToOne,出现这个原因为子表(被关联表)中没有主表(关联表)中ID所对应的记录,或主表(关联表)中没有子表(被关联表)中ID所对应的记录.解决办法:如果子表中没有主表ID对应的记录也可以正常加载数据,那么需要在主表字段上加一个@NotFound Annotatio...原创 2015-03-20 11:08:15 · 1343 阅读 · 0 评论 -
CannotLoadBeanClassException
org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.haiwang.tinywebsite.biz.impl.TinywebsiteManualBizImpl] for bean with name 'tinywebsiteManualBiz' defined in fi...原创 2014-12-29 17:31:32 · 706 阅读 · 0 评论 -
There is no statement named medicineororder.queryMyMedicineByOrder in this SqlMa
严重: Servlet.service() for servlet [springmvc] in context with path [/haiwang] threw exception [Request processing failed; nested exception is com.ibatis.sqlmap.client.SqlMapException: There is no sta...原创 2014-12-08 16:12:42 · 295 阅读 · 0 评论 -
BeanCreationException
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginBiz': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.Be...原创 2014-12-01 16:44:09 · 184 阅读 · 0 评论 -
异常总结
1.class path resource [Beans.xml] cannot be opened because it does not exist 类路径资源(Beans.xml]不能打开,因为它不存在 1、copy时忘记把名称改过来,导致不存在。 2、可能在写入时,单词写错了。 2.Could not load JDBC driver class [c...原创 2014-11-25 17:53:51 · 177 阅读 · 0 评论 -
资源(web - inf / applicationContext类路径。xml]不能打开,因为它不存在
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundEx...原创 2014-11-13 14:30:29 · 1646 阅读 · 0 评论 -
Unable to locate appropriate constructor on class
将hql查询结果封装到POJO对象 syntax: select new POJO(id,name) from POJO; 这种封装需要POJO类提供对应构造器,POJO(id,name)构造方法。 出现这个异常需要检查以下几种情况: 1)参数构造...原创 2015-07-08 15:38:31 · 120 阅读 · 0 评论 -
Property 'wxUserRealname' not found on type com.IIF5.entity.WxuserByTechnitian
该异常是因为WxuserByTechnitian实体类中没有该属性,而我的页面中却引用此属性,所以抛出次异常。加上该属性即可。原创 2015-06-04 11:06:48 · 265 阅读 · 0 评论 -
Unable to locate class [WxuserByTechnitian]
org.hibernate.hql.internal.ast.QuerySyntaxException: Unable to locate class [WxuserByTechnitian] [SELECT new WxuserByTechnitian(u.wxUserWeixiuyuanId AS wxUserWeixiuyuanId,u.uploadImg AS uploadImg,u...原创 2015-06-04 11:03:12 · 304 阅读 · 0 评论 -
@Temporal(TemporalType.DATE)
@Temporal(TemporalType.DATE) @Column(name = "wx_weixiuyuan_expirationtime", length = 10) public Date getExpirationTime() { return expirationTime; ...原创 2015-05-11 15:18:24 · 296 阅读 · 0 评论