티스토리 뷰
에러메세지
Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException:
에러메세지 상세
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: ### Error updating database.
Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-01400:
NULL을 ("BK4U"."BOOKLIST"."BL_COUNT") 안에 삽입할 수 없습니다
원인
제약조건 오류
null을 삽입할 수 없는 컬럼에 null값을 넣고있었다.
해결방법
조회수는 null값을 삽입할 수 있게 만들었어야 하는데 테이블 생성할 때부터 잘못 만들었던 거였다..
해당 not null에 대한 제약조건의 이름을 알아낸 다음
alter table 테이블이름 drop constraint 제약조건이름;
으로 오라클에서 not null 제약조건을 삭제해준다.
alter table booklist drop constraint SYS_C009588;
반응형
'error log' 카테고리의 다른 글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- ChatGPT
- Cannot construct instance of
- 배열
- array
- n+1
- JPA
- checkout
- 스프링오류
- 자바 어플리케이션 실행 과정
- junit5
- 추상클래스
- dto 클래스 생성자
- Git
- addFilterBefore
- port
- Kotlin
- bucket4j
- Linux
- redisson 분산락
- jvm warm-up 전략
- QueryDSL
- MongoDB
- FetchJoin
- Java
- MultipleBagFetchException
- 티스토리챌린지
- Spring Security
- 오블완
- 스프링 스케줄링
- spring boot 3
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함