Could not deserialize - invalid stream header

ims·2020년 10월 25일

ERROR !!!

목록 보기
12/16

참고

https://stackoverflow.com/questions/23049498/hibernate-could-not-deserialize-invalid-stream-header

에러이유

private Enum type;

SQL에 있는 enum data type을 spring에서도 그냥 enum으로 받으려고 해서 문제가 생겼음.. 그런데 그냥 에러가 뜨는게 아니라 계속

역직렬화를 할 수 없다고만 떴었다

해결한 방법

프로젝트를 아예 새로 팠다. 다른 컬럼 다 지우고 User table만 남기고 id, name만 받는 거를 해봤다. 됐다. 컬럼들을 추가했다. 에러가 났다. 왜 나는지 생각해보면 다른거는 다 String이라서 날리가 없어서 enum을 지우고 해보니까 됐다.

날짜

20.10.25 blackcard 프로젝트 하면서

profile
티스토리로 이사했습니다! https://imsfromseoul.tistory.com/ + https://camel-man-ims.tistory.com/

0개의 댓글