본문 바로가기

에러

[Springboot] Maven pom.xml 에러 * 상황 - Spring 실습 중에 프로젝트 새로 생성했는데 프로젝트 아이콘과 pom.xml 파일의 아이콘에 빨간 X 표시 발견. * 원인 - pom.xml에 새로운 dependency를 넣고 실행하면서 오래 걸리는 거 생각 못하고 다른 실행 흐름을 실행하다가 새로운 라이브러리를 다운로드 받지 못함. * 해결 1. 프로젝트 폴더 클릭 후 Run As → Maven clean 2. 익스플로러 창에서 해당 프로젝트 오른쪽 마우스 클릭해서 Maven → Update Project (단축키 : Alt+F5) 3. 아래 4개 항목 체크 후 ok Force Update of Snapshots/Releases Update project configuration from pom.xml Refresh workspace .. 더보기
HTTP 404, 400, 500 Error 계속 해서 에러 상황 업데이트 중 (2020.10.26) 200 * 정상 404 Not Found * 클라이언트가 요청한 리소스가 서버에 없음 1. URL 오류 2. 해당 경로에 뷰 파일이 없는 경우 3. application.properties에서 뷰 파일 경로와 확장자를 다르게 설정한 경우 400 Bad Request * 클라이언트의 요청 구문이 잘못됨. * 브라우저는 이 응답을 200 OK 응답과 동일한 형태로 취급함. 1. required=true이면서 request parameter 값이 전달되어야 하는데 query string이나 http request body에도 값이 전달되지 않았을 때 2. 500 Internal Server Error * 서버에서 클라이언트 요청을 처리 중에 에러가 발생.. 더보기
Whitelabel Error Page 2 Whitelabel Error Page * 상황 - Spring 실습 따라가는 도중에 에러 발생. Spring Boot App으로 실행. * 원인 - .doc (워드) 파일을 .pdf 파일로 변환 후 변환된 파일 내부의 코드를 복사해서 실행했음. * 해결 - .doc 파일을 그대로 내려받아서 ms word로 연 후 거기서 코드를 복사 붙여넣기 함. 웬만하면 직접 타이핑보다 복붙을 활용하고, word로 doc 파일 open 후 코드 복사할 것. pdf나 웹상에서 보면 코드에 붙으면 안되는, 안보이는 문자가 같이 껴있을 수 있음. 더보기
Whitelabel Error Page 1 Whitelabel Error Page * 상황 - Spring 실습 중에 Spring Boot App으로 실행해서 웹브라우저에서 창 띄우고 나서 에러 발생 * 원인 - 아래에 길게 어디서 에러가 났는지 자세히 나와있지만 너무 눈이 아파서 가장 마지막에 검출된 에러를 보니 mysql Driver의 문제였음 * 해결 application.properties 파일 내 spring.datasource.url에서 database의 server 주소를 수정해줌. spring.datasource.url=jdbc:mysql://localhost:3306/student1?useUnicode=yes&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=UTC 노란.. 더보기
백준 런타임 에러 나는 이유 배열에 할당된 크기를 넘어서 접근했을 때 전역 배열의 크기가 메모리 제한을 초과할 때 지역 배열의 크기가 스택 크기 제한을 넘어갈 때 0으로 나눌 때 라이브러리에서 예외를 발생시켰을 때 재귀 호출이 너무 깊어질 때 이미 해제된 메모리를 또 참조할 때 프로그램(main 함수)이 0이 아닌 수를 반환했을 때 입력예시, 출력예시와 다른 format으로 코드를 구현했을 때 입력을 받아들이는 배열의 크기를 너무 작게 줬을 때 배열 인덱스를 잘못 줬을 때 출처 : https://www.acmicpc.net/board/view/22980 더보기
[Git] ![rejected] master -> master (non-fast-forward) ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/jejecrunch/vuejs' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. * 원인 - 깃허브에 생성된.. 더보기
[Git] ![rejected] master -> master (fetch first) ! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://github.com/jejecrunch/vuejs' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: .. 더보기
[500] Parameter index out of range 에러 Parameter index out of range (5 > number of parameters, which is 4) * 원인 - DAO에서 쿼리문 error 발생. * 판단해야 할 것 ? 문자가 포함된 쿼리문에서 ?의 갯수와 parameter의 갯수가 동일한가? ? 문자 앞뒤로 ' ' 나 " "을 포함하지 않았는가? * 해결 parameter의 갯수를 일치시킨다. ' '나 " "을 지워준다. 싱글쿼터(')나 더블쿼터(")의 경우 이미 ? 문법 내에 포함되어 있기 때문에 중복으로 사용된다. 유의하도록 하자. 더보기

반응형