본문 바로가기

ErrorLog

(11)
[Spring Boot] 실행시 에러 Failed to configure a DataSource: 'url' attribute # 문제발생 스프링부트 프로젝트 실행시 (Spring boot Dashboard > run) JDBC url 에러가 발생했다. 에러메시지 ex) *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedd..
java.sql.SQLException: 부적합한 열 유형: 1111 Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter # 2 with JdbcType OTHER.Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property 1. 원인 : SQL 로 넘어간 parameter 에 null 이 셋팅됨. 2. 방법 : 1) Cause 를 따라 ServiceImpl 에서 실행한 SQL 문의 파라미터 디버깅. 2) Insert 문이었는데, 다른 SQL 문 살펴보니 varchar 일 경우 JdbcType 을 지정해주고 있음. 3. 해결 : 파라미터가 varchar 일 경..
org.apache.ibatis.binding.BindingException: Invalid bound statement 1. mapper 의 nameSpace 확인 - 패키지 루트가 제대로 작성되었는지 확인 2. 공백 확인 - 구문 내 불필요한 공백이 있는지 확인 3. DB 확인 - SQL이 정상적으로 DB 조회되는지 확인
github 에러 *** Please tell me who you are. # 문제발생 소스트리로 github 에 커밋하려 했으나, 에러가 발생했다. *** Please tell me who you are. # 해결과정 소스트리를 사용하고 있었기에 전역 사용자 설정 해제후 해경되었다. 소스트리 > 저장소 > 저장소설정 > 고급 > 사용자정보 > 전역 사용자 설정 사용 해제 후 commit 재시도 소스트리를 사용하지 않을 때에는 아래와 같이 사용자 인증을 시도해보기. /* 터미널에서 github 사용자인증 에러 해결 접근법 */ git config --global user.name "abc" git config --global user.email "abc@example.com"
Maven Java Configuration 에러 : Cannot change version of project facet Dynamic Web Module to 2.5.1 # 문제발생 Maven 업데이트 후 Problems 에 2 error 가 발견되었다. Description Resource Path Location Type Cannot change version of project facet Dynamic Web Module to 2.5. [project-name] line 1 Maven Java EE Configuration Problem # 해결과정 1. 에러메시지가 알려준 Dynamic Web Module to 2.5. 를 찾기 위해 Propertise - Project Facets - Dynamic Web Module 에서 3.0 을 2.5 로 변경하려했으나 실패. 2. 프로퍼티 설정 파일이 있는 곳으로 직접 접근하여 jst.web 을 3.0 에서 2.5 로 변..
크롬 SameSite 에러 : A cookie associated with a cross-site resource # 문제발생 WMS 데이터를 받아오던 중 cross-site 쿠키 에러가 발생했다. A cookie associated with a cross-site resource at site.com was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at www.chromestatus.com/..
JDBC 에러 : org.springframework.jdbc.CannotGetJdbcConnectionException # 문제발생 github 에서 clone 한 프로젝트를 설정한 후 실행시키니 JDBC 에러가 발생했다. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=localhost)(port=3306)(type=master) : Connection refused: connect # 해결과정 1. org.springframework.jdbc.CannotGetJdbcConnectionException 에러 JDBC..
jQuery CDNs 에러 : Uncaught Reference Error: $ is not defined #문제 발생 JavaScript 코드 영역에서 HTML 을 만들어주는 소스를 작성했다. F12 로 확인해보니 $("#commUpdateForm").html(commentEditForm); 에서 Uncaught ReferenceError: $ is not defined 에러 발생 #해결 과정 1. jQuery 파일 혹은 CDNs 소스가 import 되었지 확인해보아야 한다. 자바스트립트와 제이쿼리를 사용하기 위해서 import 되어야 한다. 제이쿼리 소스는 제일 상단에 import 해야한다. CDNs 소스가 누락되어 있어, jQuery 소스를 추가해주었다. jQuery CDNs 가져오기 https://jquery.com/download/ > Using jQuery with a CDN > Google CDN..
빈 생성 에러 Injection of resource dependencies failed; # 문제 발생 SpringMVC 프로젝트를 run on server 에 올려 실행했는데 Injection of resource dependencies failed; No bean named 'BoardService' available 에러가 발생했다. + No setter found for property 'datasource' in class 'org.mybatis.spring.SqlSessionFactoryBean' 도 발생했다. # 에러 메시지 # 해결과정 No bean named 'BoardService' available 라는 단서로 BoardService 에 가보았다. 1) @Service 어노테이션은 선언되어 있었다. 2) servlet-context.xml 에서 component-scan ..
Tomcat 서버 실행이 안될때 - 2. Console 확인하기 # 문제 발생 BuildPath 로 Java 버전을 1.8로 맞추고 실행하니 다른 형태의 에러(?) 메시지로 서버 실행이 안되었다. Console의 에러메시지를 보면 발생한 에러 위치가 표시된다. # 에러메시지 # 해결과정 1. 파일 검색으로 발생한 에러 위치 가보기 Spring프로젝트는 DynamicWeb프로젝트 보다 구조가 복잡하다. 폴더 구조를 손수 펼쳐서 파일을 찾을수도 있겠지만, 파일 검색 기능을 이용해서 발생한 에러 위치로 빠르게 갈 수도 있다! 에러 메시지와 동일하게 입력후 모든 확장자로 검색한다. 단축키는 Ctrl+H 이다. # 에러 원인은? location 에 webapp 을 적어두었기 때문이었다... DynamicWebProject 에서는 WebContent 하위에 html, css, ..