현상 : File > New > Spring Legacy Project 생성불가1 (PropertiesConverter)

 

오류메세지

An error has occurred. See error log for more details.
Could not initialize class com.thoughtworks.xstream.converters.collections.PropertiesConverter

 


---> 해결 : 기존 jdk 8에서 jdk11로  설치 (프로그램 파일에서 제거후 , 재부팅 + 신규설치 + 환경변수 변경)

 

 

현상 : File > New > Spring Legacy Project 생성불가2 (ExceptionInInitializerError)

 

An error has occurred. See error log for more details.
java.lang.ExceptionInInitializerError

 

 

---> 해결 :  SpringToolSuite4.ini 파일 수정후 sts 재실행

-vm
C:\Program Files\Java\jdk-11.0.12\bin\javaw.exe 

 

 

드디어 생성성공!!

 

 

 


참고

spring(eclipse) 에러로그보기

C:\DEV\workspace_spring\.metadata

여기서 .log 로그파일 볼수있음..

 

Tomcat 서버 더블클릭 > Modules > path 를 '/'  루트로 변경해주기

 

 mapper.xml 소스를 아무리 수정해도 변경되지 않았다.

Tomcat 서버 > 더블클릭 > Open launch configuration  > Arguments

하단 VM arguments 에 있는 -Dcatalina.base 경로를 따라가기

"C:/workspace 경로 /.metadata/.plugins/org.eclipse.wst.server.core/tmp1"

 

1. 내폴더 창을 열고
2. 소스들은 clean 해놓고 이클립스 닫아주고
3. 해당경로에 있는 tmp1 파일들 다 날려주기

다음과 같이 argument 값을 넘겨주지 않아서 오류발생 한경우 

ArrayIndexOutOfBoundsException 에러

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at polymorphism.TvUser.main(TvUser.java:8)  


프로젝트 우클릭 > Run As > Run Configurations >  Arguments 에 입력후 Apply , Run

명령형매개변수 설정하기

 

명령형매개변수 설정하기

정상실행

+ Recent posts