본문 바로가기

Error50

[JUnit] Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operatin.. Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet: In this case, use RequestContextListen.. 2021. 7. 28.
[JUnit] org.mockito.exceptions.misusing.UnnecessaryStubbingException org.mockito.exceptions.misusing.UnnecessaryStubbingException: Unnecessary stubbings detected. Clean & maintainable test code requires zero unnecessary code. Following stubbings are unnecessary (click to navigate to relevant line of code): 1. -> at [FQCN].MyServiceTest.setUp(MyServiceTest.java:43) Please remove unnecessary stubbings or use 'lenient' strictness. More info: javadoc for UnnecessaryS.. 2021. 7. 26.
[Maven] Error: java: error: release version 5 not supported Error: java: error: release version 5 not supported IntelliJ 에서 Maven 으로 프로젝트 빌드 시 위와 같은 오류가 발생하였고 IntelliJ -> Preferences -> Build, Execution, Deployment -> Compiler -> Java Compiler 에서 Target bytecode version 을 5 에서 8 로 변경해주어 해결 완료 :) 2021. 7. 1.
[Webpack] 첫 빌드하면서 만난 오류 기록 throw new WebpackOptionsValidationError(webpackOptionsValidationErrors); ^ WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration misses the property 'entry'. object { : non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function -> The entry point(s).. 2021. 6. 28.
[Vue.js] Uncaught ReferenceError: process is not defined Uncaught ReferenceError: process is not defined Vue 로 띄운 프로젝트에서 각 환경마다 달리한 변수를 꺼내서 쓰고 싶어서 콘솔에 `console.log(process.env)` 명령어로 변수 값을 확인해보고 싶었으나 돌아오는건 위 에러메시지 뿐.. 찾아보니 콘솔에서는 환경 변수에 접근할 수 없다고 한다 하하 😅 코드 내에서 특정 액션이 일어났을 때 콘솔 찍히도록 하니까 잘 나옴! 2021. 6. 24.
[Mybatis] NumberFormatException: For input string "Y" error may exist in file [/Users/ha/.../MyMapper.xml] ### The error may involve kr.co....MyMapper.insertUserInfo ### The error occurred while executing an update ### Cause: java.lang.NumberFormatException: For input string: "Y" Mybatis 를 처음 써보는 것도 아닌데 NFE 라니..? 하면서 확인해보니까 아래처럼(=홀따옴표 비교) 사용하면 Mybatis 는 char 문자열로 판단하여 string 문자열과의 타입체크를 하기 때문에 NFE 가 발생한다고 한다. -- error syntax (') INSERT.. #{userInfo.. 2021. 6. 21.