Cannot call sendError() after the response has been committed

Cannot call sendError() after the response has been committed

Spring JPA 일 대 다 매핑 중 에러,,

java.lang.IllegalStateException: Cannot call sendError() after the response has been committed

at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:472) ~[tomcat-embed-core-9.0.55.jar:9.0.55]

@JsonIgnore나 @JsonIdentityInfo 없이 해당 객체를 response한다면

java.lang.IllegalStateException: Cannot call sendError() after the response has been committed

와 같은 에러가 발생한다고 한다...ㅠ

ManyToOne 컬럼에

Jsonignore 하니까 해결...

이걸 해주지 않으면, 응답(Response)를 또 해줘서 나는 에러인 것 같다

728x90

반응형

from http://thalals.tistory.com/227 by ccl(A) rewrite - 2021-11-30 22:27:53