개발중/Troubleshooting87 [에러] java.lang.Integer cannot be cast to java.lang.String resultType이 HashMap 일 때, String value = (String) map.get("value"); 위와 같이 Number(Int) 타입을 곧바로 String 캐스팅하려고 할때 발생한다. 해결 방법은 아래와 같이 캐스팅 변환이 아닌 String 클래스의 valueOf(Object) 를 사용하여 처리한다. String value = String.valueOf( map.get("value")); 개발중/Troubleshooting 2022. 11. 10. [이클립스] Unrecognized option: --add-opens=java.base/java.lang=ALL-UNNAMED Unrecognized option: --add-opens=java.base/java.lang=ALL-UNNAMED \eclipse\eclipse.ini 파일을 변경해 메모리 상향을 해보자 변경전 변경후 Xms 256 Xms 2048 Xms Xmx 512 Xmx 1204 Xmx 개발중/Troubleshooting 2022. 8. 2. [이클립스] java virtual machine launcher 오류 자바 버전 업데이트 후 이클립스 실행 오류 해결 방법 자바(Java) 버전을 업데이트한 후 이클립스(Eclipse)를 실행할 때 발생하는 java virtual machine launcher 오류를 해결하는 간단한 방법을 소개합니다. 오류 상황 자바 버전 업데이트 후 이클립스를 실행하면 java virtual machine launcher 오류가 발생합니다. 해결 방법: eclipse.ini 파일 수정 이클립스가 설치된 폴더에서 eclipse.ini 파일을 찾아 메모장으로 엽니다. 파일의 내용은 대략 다음과 같을 것입니다: -startupplugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar--launcher.libraryplugins/org.eclipse... 개발중/Troubleshooting 2022. 8. 2. com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI 에러잡기 빌드는 성공했는데 에러가 남 Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j... 개발중/Troubleshooting 2022. 7. 8. [해결] Errors occurred during the build. Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'lucy2'. Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or.. 개발중/Troubleshooting 2022. 6. 15. [해결] org/springframework/web/context/request/async/CallableProcessingInterceptor org/springframework/web/context/request/async/CallableProcessingInterceptor 에러가 뜨면 Server 삭제 후 다시 Run ! 개발중/Troubleshooting 2022. 6. 13. [해결] Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer pom.xml 에 이런 에러가 뜬다. Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer plugin 을 추가해주자. maven-war-plugin 3.2.2 개발중/Troubleshooting 2022. 6. 13. [해결] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.117 s [INFO] Finished at: 2022-06-13T08:19:25+09:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-co.. 개발중/Troubleshooting 2022. 6. 13. [해결] pom.xml Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer 다른 사람들 개발 환경은 안그러는데 왜 나한테만 에러가 뜨는 것일까? 오늘 이유를 찾아야겠다. ✔ 플러그인이 없다는 의견이 있어서, 메이븐 플러그인에 대해 먼저 정리를 해야겠다. 메이븐은 플러그인을 구동해주는 프레임워크(plugin execution framework)이다. Maven에서 사용되는 clean, compile, package 등의 goal 명령어들도 사실상 plugin으로 내장되어 있다. clean, compile, test, install, package, deploy 모든 작업은 플러그인에서 수행한다. 플러그인은 다른 산출물(artifacts)과 같이 저장소에서 관리된다. 메이븐은 여러 플러그인으로 구성되어 있다. 각각의 플러그인은 하나 이상의 goal(명령, 작업)을 포함하고 있다. .. 개발중/Troubleshooting 2022. 6. 10. [해결] Errors Occurred During The Build Java Application 실행을 했을 때 Errors occurred during the build 오류가 발생하는 경우 소스에 문제가 없고 서버에 문제가 없는데 위와 같은 오류가 발생하는 경우가 있다. 나는 Project > Clean 할 때 문제가 발생했다. Project 에서 마우스 우클릭 > Properties > Builders 메뉴를 클릭한 뒤 Configure the builders for the project 에서 빨간색으로 x 표시가 된 것들을 remove 해준다. 개발중/Troubleshooting 2022. 6. 10. [해결] this compilation unit is not on the build path of a java project 이 블로그에서 자바 버전 바꿔주면 ( 1.6 이상 ) 된다고 한다. 근데 나는 보다시피 17 ... ㅎ ;; 개발중/Troubleshooting 2022. 6. 8. The content of elements must consist of well-formed character data or markup. 해결 "The content of elements must consist of well-formed character data or markup." 에러가 발생하게 된다. 이러한 문제를 해결하기 위해서는 Query안에 사용되고 있는 부등호가 문자열이라는 것을 의미하게 해줘야 한다. 으로 감싸준다 개발중/Troubleshooting 2022. 6. 3. 이전 1 2 3 4 5 ··· 8 다음