개발/error debuging 10

Illegal overloaded getter method with ambiguous type for property 'password' 에러 원인 및 해결방안

어느날 개발중에 다소 생소한 에러를 하나 마주쳤습니다. 위와 같은 에러였는데요 org.apache.ibatis.reflection.ReflectionException: Illegal overloaded getter method with ambiguous type for property 'password' in class '클래스명'. This breaks the JavaBeans specification and can cause unpredictable results. 대충 이런 내용의 에러였는데요 검색을 해보니 비슷한 오류를 겪으신 분들이 생각보다 많았습니다. 대략적으로 설명을 하자면 lombok 을 사용해서 모델객체를 만들 때 저의 경우 패스워드를 사용할지 여부를 저장하는 boolean 타입의 isP..

Datepicker 사용시 TypeError: Cannot set property 'currentDay' of undefined

Jquery Datepicker 사용시 위와 같은 오류가 날 때가 있었습니다. 한참을 찾아봐도 해결이 되지 않다가 너무 사소한 실수인걸 알고나서 허무했네요 해결방법은 다른 tag 의 id 값 중 Datepicker 를 사용한 input 의 id 와 중복되는 것이 있는지 확인해보시면 됩니다.ㅎㅎ stackoverflow.com/questions/17781425/datepicker-returning-uncaught-typeerror-undefined-currentday Datepicker returning uncaught typeError: undefined 'currentDay' I've been using jQuery UI with Bootstrap and I seem to run into a probl..

Failed to execute 'appendChild' on 'Node' 에러 해결

document.getElementById('adminA').appendChild("(current)"); 위의 코드를 실행하면 아래와 같은 에러가 발생합니다. Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'. 대충 해석해보면 appendChild 는 Node 만 추가할 수 있다. 이런 얘기입니다. 따라서 위의 코드는 잘못된 코드이고 appendChild 를 사용하려면 var onSpan=document.createElement('span') onSpan.innerHTML="(current)" onSpan.classList.add('sr-only') document.getEleme..

자바스크립트 제이쿼리 $(window).focus() 가 안될 때

setTimeout( function(){ $(window).focus(); }, 50 ); 이런식으로 setTimeout 안에 포커스를 두면 잘 동작 합니다. 크롬에서만 일어나는 버그라고 하네요 stackoverrun.com/ko/q/10593877 javascript - $ (창) .focus()가 Chrome에서 제대로 실행되지 않았습니다. 내 페이지의 애드 센스 요소에 대한 클릭 수를 추적하고 싶습니다. 이를 달성하기 위해 창 개체에 포커스를두고 포커스가 사라지면 마우스가 애드 센스 iFrame 영역에 있는지 확인합니다. 그런 다 stackoverrun.com

Some of selected resources were not cleaned.svn: E155004: Working copy locked 에러 해결

svn 을 이용하여 작업을 하던 도중 update 가 되지않고 아래와 같은 에러메세지가 출력됬던 적이 있습니다. 이분의 블로그의 도움을 받아 문제를 해결했습니다. https://benfatto.tistory.com/33 SVN | E155004 - SVN locked 에러 해결 잊을만 하면 찾아오는 SVN 대표적인 에러 LOCK. 간만에 쏟아지는 파일들 업데이트를 받다가 꼬여버렸다. 위와 같은 경우는 폴더 자체가 lock이 걸린 모양이다. Some resources were not updated. svn: E155004: Wo. benfatto.tistory.com 해결 방법은 자신의 프로젝트 폴더에 아래의 .svn 이라는 폴더가 있는데 해당 폴더를 들어가보면 위와 같이 wc.db 라는 파일이 있다. 이..

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 에러 해결법

http://myblog.opendocs.co.kr/archives/1657 [문제해결] 심각: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener | Opendocs 1. 문제상황 > 다음과 같은 에러와 함께 Eclipse에서 Tomcat이 실행되지 않았다. 심각: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.Context..

egovframework 다중DB 설정 시 dao 에서 mapper의 id 값을 가져오지 못할 때

오타가 나거나 설정이 틀리지 않았는데도 dao 에서 mapper 을 인식하지 못한다면 https://lilymate.tistory.com/480 DataSource 2개 사용하기 일반적으로는 1개의 DB만 연결하지만 2개의 DB에서 조회라도 하는 경우가 생겼을 때 요것들만 손대주면 가뿐할 듯 하다. 전자정부프레임워크, iBatis를 사용한 경우이다. Spring, MyBatis도 그리 다르지 않으니..... lilymate.tistory.com 이 포스팅의 중간부분에 보면 dao 에 이런 명시를 해주어야 한다. Resource 부분에는 ibatis 의 경우 위와같은 내용이 들어가는 부분의 bean 의 id 값이 와야하고 mybitis 의 경우 위와 같은 설정이 들어가는 sqlSession 부분의 bean..