org.hibernate.type.SerializationException: could not deserialize
来源:互联网 发布:淘宝培训课程表 编辑:程序博客网 时间:2024/06/10 21:07
java.io.StreamCorruptedException: invalid stream header: 32303136
org.hibernate.type.SerializationException: could not deserialize
遇到上面两个异常,经过上网查找资料发现主要问题在实体与数据库字段的类型不匹配,但是把两边的字段放在同一个屏幕上像找你妹一样找了半天发现确实是一样的,那到底是什么问题导致这个异常呢,经过九九八十一天,突然心血来潮,准备把实体类的java文件从头看到尾,没准能发现一些端倪,果不其然,在import段落中发现了如下的代码:
import com.sun.org.apache.xpath.internal.operations.String;
原来String并不是jdk的lang包里面的那个String,它变了,它已经不是我熟悉的那个String了……于是类型不匹配也就好理解了。
大家检查代码的时候不要放弃任何一处地方,从package看起,没准就能发现问题了……
1 0
- org.hibernate.type.SerializationException: could not deserialize
- hibernate 报 org.hibernate.type.SerializationException:could not deserialize 异常
- 不能反序列化--org.hibernate.type.SerializationException: could not deserialize
- INFO[org.hibernate.type.SerializableType] - could not read column value from result set: srulaaaId13_; could not deserialize
- Hibernate : could not deserialize 错误
- org.hibernate.MappingException: Could not determine type for 错误
- org.hibernate.MappingException: Could not determine type for: String
- org.hibernate.MappingException: Could not determine type for
- org.hibernate.MappingException: Could not determine type for
- Caused by: org.hibernate.MappingException: Could not determine type for
- org.hibernate.MappingException: Could not determine type for:
- 错误:org.springframework.orm.jpa.JpaSystemException: could not deserialize;
- org.springframework.orm.hibernate4.HibernateSystemException: could not deserialize
- Hibernate:关于Column '*' not found和could not deserialize
- Caused by: org.hibernate.MappingException: Could not determine type for: org.cgh.ssh.pojo.GoodsType,
- Spring boot Hibernate SSerializationException: could not deserialize invalid stream header
- 【hibernate】org.hibernate.MappingException: Could not determine type for: String, for columns:
- 使用Hibernate的UserType时报错:org.hibernate.MappingException: Could not determine type for: EMailList, at
- android systemtrace 报错
- 今年暑假不AC//简单贪心
- C语言基本常量
- Android SnackbarUtils-Snackbar相关工具类
- 区间DP(多叉树的遍历,LA 3516)
- org.hibernate.type.SerializationException: could not deserialize
- CodeForces 233B. Non-square Equation【状压】
- UVa 10491 Cows and Cars
- 4-3 求链式表的表长 (10分)
- 学习笔记之指针和引用的区别
- Mysql group_concat的反向应用实现(Mysql列转行)
- 命名空间
- Android中的绝对路径和相对路径
- 分页jsp PageBean