Error
-
[Intellij] unresolved attribute reference 'objects' for classError 2023. 4. 27. 11:15
배경 커맨드로 django 프로젝트를 생성 인텔리제이에서 unresolved attribute reference 'objects' for class 문구가 지속 조회 됨 원인 인텔리제이가 모듈(프로젝트)가 django 유형임을 감지하지 못해 발생한 문제 해결 [ File > Project Structure > Modules ] 파란박스 아이콘이 있는 모듈 제거한다 제거한 모듈을 다시 import 한다 참고 pycham 커뮤니티 답변
-
The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports.Error 2020. 8. 5. 18:01
# 프로젝트 톰캣 install 후 돌려보니 The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports. ## xml 체크를 했으나 run 중 에러 발생 ### 설치 제거하고 zip으로 받아서 톰캣 다시 연결함
-
Unable to load authentication plugin 'caching_sha2_password'Error 2020. 8. 5. 18:01
# 디비버 설치 후 mysql 접속시 발생 Unable to load authentication plugin 'caching_sha2_password' ## password 방식문제 - caching_sha2_password : 8.x부터 기본 - mysql_native_password ### mysql cmd 로그인 후 방식 변경 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '****'; ==============================================
-
[JAVA Lamda] variable used in lambda expression should be final or effectively finalError 2020. 7. 23. 02:50
# String answer = ""; map.forEach( (k, v) -> { if(v != 0){ answer = k; //에러 } }); ## 람다 정의시 외부 변수를 참조하는 경우 final 이거나 effectively final이어야 한다 ** effectively final : final 선언은 안했으나 초기화 된 후로 값이 바뀌지 않은 변수(컴파일러가 final처럼 간주) ### ** forEach 내 break 지원안함
-
Class not found so assuming code is running on a pre-Java 9 JVMError 2020. 5. 29. 01:08
[ restartedMain] o.apache.tomcat.util.compat.Jre9Compat : Class not found so assuming code is running on a pre-Java 9 JVM java.lang.ClassNotFoundException: java.lang.reflect.InaccessibleObjectException at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadC..
-
JSON Serializable lazy loadError 2020. 2. 27. 16:14
"status": 500, "error": "Internal Server Error", "message": "Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor]; ## lazy load 결과 실제 엔티티 객체가 아닌 프록시 객체를 Serializable 하려고해 문제가 발생 ### (택1) - fetch= FetchType.EAGER 변경 - @JsonIgnore 추가 - @JsonIgnoreProperties({"hibernateLazyInitializer", "handler"}) - spring.jackson.serialization.fail-on-empty-beans=fal..