Dev_Log 79

[CentOS] nohup java -jar sample.jar 실행시 자동종료될때

[ Error ] CentOS_8에서 jar로 빌드된 프로젝트를 백그라운드에서 구동시키기위해아래 코드로 수행시 프로젝트가 자동종료 되는 에러 발생(이유는 확인 못했음)// 리눅스 서버의 백그라운드에서 프로젝트를 구동하려고 할 때[root]# nohup java -jar sample.jar &  [ Solution ] 아래 코드로 실행후 정상구동 확인[root]# nohup java -Xmx1024m -jar sample.jar &

Dev_Log 2025.02.06

[React] react_dom__WEBPACK_IMPORTED_MODULE_1__.render is not a function

[ Error ] 프로젝트 구동후 페이지 접근시아무것도 뜨지 않고console에Uncaught TypeError: react_dom__WEBPACK_IMPORTED_MODULE_1__.render is not a function 발생 [ Solution ] 해당 에러는 React 18 버전 이상에서react-dom의 render메서드가 더 이상 사용되지 않기 때문에 발생따라서 React 18부터는 createRoot메서드를 사용해야함 수정전 import React from 'react';import ReactDOM from 'react-dom';import App from './App';ReactDOM.render( , document.getElementById('root'));​ 수정후 ..

Dev_Log 2025.01.22

[Docker] com.mysql.cj.jdbc.exceptions.CommunicationsException

[ Error ] Docker 컨테이너를 2개를 구성하는 과정에서 발생된 Error로A컨테이너에는 스프링부트 프로젝트를 jar로 구동B컨테이너에는 mysql을 구동해서A컨테이너의 스프링프로젝트가 B컨테이너의 mysql과 연결되도록 하는 과정에서B컨테이너의 mysql은 먼저 구동시킨뒤A컨테이너는 DockerFile을 통해 빌드시 마지막에CMD명령어를 통해 java -jar로 프로젝트를 실행하도록 했는데아래 에러가 발생하고mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver h..

Dev_Log 2024.12.20

[VS Code] java.home설정하기

[ 에러 ] VS Code로 SpringBoot프로젝트를java는 JDK21, 빌드는 Gradle로 만들었는데빌드시 Gradle이계속해서  예전버전의 jdk경로를 참조해서 빌드가 실패하는 문제 발생vscode에서 java.home을 변경하는법을 검색해서 해봤지만 실패  [ Solution ]Ctrl + Shift + P(명령팔레트)를 열고Preferences: Open Workspace Settings (JSON)으로 들어가서{ "java.home": "설정을 원하는 JDK의 경로"}를 작성후 저장하면우측하단에 다음과같이 뜰텐데Java(TM) by Red Hat을 Reload하고 잠시 기다리면 적용완료된다

Dev_Log 2024.12.16

[JPA] Failed to convert from type [null] to type [int] for value [null]

[ 에러 ] JPA로 세팅된 상태이며엔티티 변수중 int형으로 선언된것이 있고data등록 API를 호출시 아래와 같은 에러 발생.w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public org.springframework.http.ResponseEntitydefault message [Failed to convert value of type 'null' to required type 'int'; Failed to convert from type [null] to type [int]..

Dev_Log 2024.12.02

[Java] PKIX path building failed

[ 에러 ] javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target  [ Solution ]cmd실행후 아래 명령어 입력// Java SSL인증서 등록하기keytool.exe -import -alias keytool에등록될별칭작성 -keystore "JAVA Home경로의 lib/security/cacerts경로 작성" -storepass changeit -file crt인증서파일의경로작성예시)keytool.exe -import -al..

Dev_Log 2024.11.19

[Eclipse] Name for argument of type [java.lang.String] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.

[ 에러 발생 상황 ] 코드에는 문제가 없는데 API호출시 에러 발생java.lang.IllegalArgumentException:Name for argument of type [java.lang.String] not specified,and parameter name information not available via reflection.Ensure that the compiler uses the '-parameters' flag.  [ Solution ] 구글링 해보면 스프링부트3.2부터 문제가 생겼고@RequestParam @PathVariable, @Autowired, @ConfigurationProperties를 주로 사용할때 발생된다고 한다파라미터를 같은 매개변수명에 자동매핑 시켜주는것이 문..

Dev_Log 2024.11.05
728x90
반응형