썸네일 DBeaver - docker mysql Connection Fail (Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.) docker로 각기 다른 포트의 mysql를 띄우고 싶었다. 어찌어찌 띄우는 건 성공했는데, DBeaver에서 접속하려고 하니 에러가 발생했다. 울지말고 확인해보자.. Version Version OS mac m1 Docker 25.0.3 Docker Desktop 4.27.2 (137060) Mysql 8.3.0 DBeaver 23.3.4. ERROR Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. Mysql의 Global Port를 확인해 보자 확인 방법 1. mysql DB 접속 터미널에서 아래 명령어를 입력하면 mysql DB에 접속할 수 있다. docker exec -it {컨테이너명} mysql -..
썸네일 SonarQube flood stage disk watermark [95%] exceeded on 로컬 환경에서 SonarQube 실행했는데, 웹이 뜨기도 전에 바로 죽어버렸다. 도대체 왜.. http://localhost:9000 접속도 못해보고 바로 실행창이 닫혀버렸다..ㅋ sonarqube-{sonarqube-version}\logs\es.log 확인하니까 다음과 같은 에러가 보인다. SonarQube flood stage disk watermark [95%] exceeded on 구글링 해보니 다음과 같은 글을 발견했다. https://github.com/vanderby/SonarQube-AzureAppService/issues/40 SonarQube flood stage disk watermark [95%] exceeded on · Issue #40 · vanderby/SonarQube-Az..
썸네일 [42000][1064] (conn=2775495) Routing query to backend failed. See the error log for further details. 에러 내용 로컬 개발 환경에서는 잘 실행되었는데.. 개발 서버에 배포하니까 405 에러가 났다. axios 에러였는데, 도대체 왜? ?!? ?!? 로컬에서는 잘 되었는데..? 이건 클라이언트 문제가 아니라는 확신이 들었다. 그래서 API 서버 들어가서 로그를 확인해봤다. 서버에서 확인해 보니 다음과 같은 에러가 찍혀있었는데 [1064] (conn=2775495) Routing query to backend failed. See the error log for further details. 결론부터 말하자면, 해당 에러는 maxscale의 use_sql_variables_in 설정값으로 인해 발생했다. 환경 구성 로컬 개발 환경 배포 개발 환경 10.1.48-MariaDB-0ubuntu0.18.04.1 1..
썸네일 [Node.js] error:0308010C:digital envelope routines::unsupported Cypress를 설치해서 실행하려고 하니 다음과 같은 에러가 발생했다. 에러메시지 : error:0308010C:digital envelope routines::unsupported [start:react] Error: error:0308010C:digital envelope routines::unsupported [start:react] at new Hash (node:internal/crypto/hash:71:19) [start:react] at Object.createHash (node:crypto:133:10) [start:react] at module.exports (설치경로/cypress-realworld-app/node_modules/webpack/lib/util/createHash.js:1..
썸네일 [SpringBoot]org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl' defined in file 에러 메시지 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl' defined in file 스프링 빈 객체 생성 중 예외가 발성하여 정상적으로 빈이 생성되지 못할 때 던지는 예외이다. userServiceImpl에서 발생한 에러인 줄 알았으나, 에러로그를 쭉 내려보면 이런 문구 있었다. Caused by: org.springframework.data.mapping.PropertyReferenceException: No property 'username' found for type 'User' User 엔티티에는 username이라는 필드가 없어서 발생한..
썸네일 [SpringBoot + JPA] API 호출 시, 404 에러 개발 환경 Vue + Spring Boot + JPA (API 테스트 툴 : Postman) 문제 상황 다음과 같이 api 호출시 404 에러가 리턴된다. DB에는 정상적으로 insert됨 해결 방법 Controller에 선언되어 있던 @Controller를 @RestController로 변경한다. 이건 그냥 궁금해서 테스트 해봤다. @Controller + @ResponseBody를 사용해도 data는 insert되나, 확인해보니 Spring 4.x에서는 메서드 레벨에서 @ResponseBody를 사용하는 것이 아닌 클래스 레벨에서 @RestController 사용해야한다고 한다. 더보기 When interacting with the REST API in Spring 4.x, we should use ..
썸네일 [Error] window.Kakao.Auth.login is not a function 개발환경 vue.js (version : 2) 문제 상황 카카오 로그인 API 연동 과정 중 window.Kakao.Auth.login is not a function 발생하였다. 파일명 : index.html 카카오에서 제공하는 Javascript SDK를 등록했다. 카카오 로그인 클릭했을 때 실행되는 함수는 다음과 같이 정의하였다. methods: { kakaoLogin(){ window.Kakao.Auth.login({ scope: 'profile_nickname,account_email', success: this.getKakaoAccount, }); }, getKakaoAccount(authObj) { window.Kakao.API.request({ url : '/v2/user/me', succ..
썸네일 [npm/mac] npm global로 vue 설치 시 Permission Error 문제상황 @vue-cli 을 전역적으로 설치하려 하였으나 다음과 같은 에러 발생 npm install -g @vue/cli sudo 권한을 주면 설치는 가능하나, 이후 생성되는 파일은 sudo 권한으로도 수정 불가 -> 결론 : 다시 깔자 ^^ [Error] ... npm ERR! code EACCES npm ERR! syscall symlink npm ERR! path ../lib/node_modules/@vue/cli/bin/vue.js npm ERR! dest /usr/local/bin/vue npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/@vue/cli/bin/vue.js' -> '..
썸네일 [IntelliJ Error] WAR 배포 및 톰캣 실행 시, Context Initialization Failed 오류 발생 [문제발생] 운영서버 내 WAR 배포 및 톰캣 실행 시, Context Initialization Failed 오류 발생 [문제분석] 1. 테스트 서버 내 ROOT.tar 배포 2. CommandLine으로 WAR로 파일 묶기 3. 묶인 WAR 파일을 다시 테스트 서버 내 배포하여 톰캣 실행 결과, 정상 작동됨. => 결론: 인텔리제이 내 설정 문제 [원인 및 조치사항] 소스코드 위치를 외장하드가 아닌 C로 변경 후 로컬 PC에서 ROOT.war 파일 생성 시 정상적으로 확인됨 결과적으로 소스코드가 외장하드에 있어 +정상적으로 class파일이 compile이 되지 않아 해당 문제가 발생하였음. [해결방안] -> war파일 생성 시, SRC 경로는 반드시 외장하드가 아닌 C 드라이브 등 로컬 디스크에 설정..
썸네일 [IntelliJ Error] finished with non-zero exit value 1 에러메시지 Execution failed for task ':DemoSpringApplication.main()'. > Process 'command 'JDK경로/bin/java.exe'' finished with non-zero exit value 1 해결방법 [File > Settings] 클릭 [Build, Execution, Deployment > Build Tools > Gradle] 메뉴로 이동 Build and run using -> IntelliJ IDEA Run tests using -> IntelliJ IDEA Gradle JVM -> JAVA_HOME
썸네일 [git] error: unable to create file <경로/파일명> Invalid argument 다음과 같은 에러 문구가 출력되면서 pull이 되지 않았다. error: unable to create file Invalid argument 결론 : 나의 경우에는 파일명에 특수문자가 있어서 에러가 났던 것이었다.😂 별짓을 다 했는데도 안되길래 결국 문제의 파일을 삭제하고 다시 만들었는데, 파일명을 변경하려고 보니 다음과 같은 에러 메세지가 출력되고 있었다 ㅎㅎ... .md 뒤에 공백이 있나 '이 있나 아무리 찾아봐도 안보였는데, 원인은 .md 앞에 있던 '?' 때문이었다. 새롭게 알게된 내용 git 터미널에 기본 설정이 powershell로 되어있으면 다음과 같은 에러가 출력된다. 해결방법 오른쪽 '+' 클릭 후 Git Bash 선택 > 터미널 창 나갔다가 다시 들어오기 https://devbirdf..
썸네일 [Spring] xml파일에서 rownum을 사용하는 방법 목표 : Top N 분석을 이용해서 조회수가 가장 높은 5개의 게시글들을 조회하기 문제점 아래와 같이 rownum에 오류 메세지가 출력된다. where 절의 rownum 을 이용하기 내 Ver. ( 이 방법은 수업에서 배운 내용은 아니고 **님께서 힌트를 주셨다. ) select rownum, b.* from (select board_no, board_title, board_writer,count,create_date,change_name from board order by count desc) b where 2. where rownum between 1 and 5를 이용하기 [추천] 선생님 Ver. 선생님께서 항상 rownum에 between ~ and ~를 사용하시는 이유가 여기에 있었다. selec..