티스토리 뷰
에러메세지
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
- 배열
- 문자열계산기
- insertOne
- QueryDSL
- Linux
- Kotlin
- insertMany
- ChatGPT
- java.lang.NullPointerException: Parameter specified as non-null is null
- ?.let
- 추상클래스
- 스프링오류
- junit5
- Spring Security
- Cannot construct instance of
- Git
- document insert
- array
- checkout
- port
- Java
- dto 클래스 생성자
- spring boot 3
- 장애 대응
- FetchJoin
- MultipleBagFetchException
- MongoDB
- addFilterBefore
- n+1
- JPA
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함