본문 바로가기

오류해결

(12)
java.sql.SQLSyntaxErrorException: Table '' doesn't exist JPA를 사용하기 위해 테이블 Entity class를 만들고 구동시켰더니 오류가 났다. java.sql.SQLSyntaxErrorException: Table ' 테이블이름 ' doesn't exist 해결방법은 Entity class파일에서 @Entity 어노테이션에 값을 설정하면 된다. @Entity(name="USER_INFO") public class UserInfo { ... } 이 Entity는 DB테이블에 대응하는 클래스이기 때문에, DB테이블과 맵핑하기 위해서는 꼭 붙여야 한다. 속성으로 name을 사용하면, JPA에서 사용할 Entity 이름을 지정하는 것이다. 지정을 하지 않으면 클래스 이름을 그대로 사용한다. 여기서 말하는 Entity이름이라고 하면, 감이 안올 수 있으니 다음과 같..
JPA오류 : Unable to locate Attribute with the the given name [userKey] on this ManagedType [com.jin2rang.auth.entity.AuthInfo] JPA로 findByUserKey라는 로직을 실행하려고 하는데 다음과 같은 에러가 났다. Unable to locate Attribute with the the given name [userKey] on this ManagedType [com.jin2rang.auth.entity.AuthInfo] 오류의 원인은 '오타'였다!! 조회조건을 실행할 DB column들을 정의한 entity파일에서 선언한 column명이 달라서 오류가 났었다. 두번째 Column정보인 USER_KEY부분에서 변수명을 userKey로 했어야 했는데, UserKey로 오타가 나서 findByUserKey를 했을 때 값이 다른것으로 인식했던 것이다. package com.isu.auth.entity; import java.util...
java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x2fbb01ba) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) Spring boot에서 Gradle task로 war파일을 build하려고 하다가 오류를 만났다. 오류: * What went wrong: Execution failed for task ':compileJava'. > java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x2fbb01ba) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.process..
Entry application.properties is a duplicate but no duplicate handling strategy has been set. Spring boot에서 Gradle task로 war파일을 build하려고 하다가 오류를 만났다. 에러내용 : * What went wrong: Execution failed for task ':processResources'. > Entry application.properties is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.3.3/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details. application 프로파일이 중복으로 가져와져서 나타나는 오..
node.js / Error: bind EADDRINUSE null:1091 pm2로 서버를 구동시켰는데 다음과 같은 에러가 나왔다. Error: bind EADDRINUSE null:1091 이 에러는, 현재 1091포트가 사용되고 있다는 의미이다. 해결방법은, 포트를 변경하거나 혹은 동작하고 있는 노드 서버를 중지시키는 것이다. # ps -ef | grep node 명령어를 입력해서 현재 동작하고 있는 프로세스를 확인한다. # kill -9 [pid] ex ) kill -9 72 이 명령어를 입력하면 프로세스가 죽는다. 그리고 다시 node.js 서버를 구동시키면 된다!
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.To initialize your shell, run Server - OS : CentOs7 - miniconda env 환경 - Python version : 3.9.7 - matplotlib : 3.4.3 python 가상환경을 활성화 시키려다가 에러가 났고, 이 에러의 문제 해결법을 기록해놓는다! 내가 작성한 명령어 : # conda activate python_env 에러문구 : CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run 해결방법 : 아래 명령어로 가상환경을 활겅화 시키면 된다!! # source activate python_env
[matplotlib font family error] findfont: Font family ['NanumGothic'] not found. Falling back to DejaVu Sans. / font_manager matplotlib centos7 Server - OS : CentOs7 - miniconda env 환경 - Python version : 3.9.7 - matplotlib : 3.4.3 docker 내부에 chart그래프를 생성하는 flask서버를 셋팅하는 과정에서 생긴 오류이다. 에러메세지를 확인하니 font를 찾지 못하여 오류가 났다. findfont: Font family ['NanumGothic'] not found. Falling back to DejaVu Sans. matplotlib 한글 오류 해결하는 글들이 많았는데, 여러가지 시행착오 하다가 해결한 방법을 기록하게 되었다! 1. 현재 서버에 내가 사용하려는 폰트가 있는지 확인! /usr/share/fonts 이 경로에서 폰트 확인을 할 수 있는데, ' DejaVu Sa..
conda activate 오류 / conda activate 안됨 conda env를 사용하면서 발생한 문제이다. conda env list 명령어를 통해 생성한 가상환경은 존재하는걸 확인했다. 그치만 생성한 가상환경이 활성화가 되지 않고, 아래와 같은 오류가 났다. CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. source /../conda/etc/profile.d/conda.sh ➡ /../ 여기 부분에는 현재 리눅스 서버안에서 conda혹은 anaconda경로를 입력해주면 된다. (만약, 현재 경로가 홈 디렉토리가 아니면 "홈디렉토리"로 이동 해야한다.) -> cd ~ 나같은 경우에는 아래와 같은 경로에 존재하여 이렇게 명령어를 입력했다! sourc..