'Programming' 카테고리의 글 목록 (27 Page)
본문 바로가기

Programming218

Communications link failure due to underlying exception com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:풀의 커넥션이 타임아웃 되서 그렇다. - 다음중 하나를 설정하면 해결된다. 1. 커넥션 설정부분에 autoReconnect=true를 붙힘2. 3. mysql의 대기시간을 늘림 [출처] com.mysql.jdbc.CommunicationsExceptio... |작성자 타쿠미 pool 에서 Connection 을 가져올때 이미 끊어 져서 사용할 수 없다는 소리다.. wait_timout 으로 connection 을 관리 하는데.. 넘어 버리면 짤려 버리는 현상.. wait_timeout을 늘리면 된다.sessionVariable 은 co.. 2013. 7. 5.
dos명령 - %time% 변수 활용, bat, batch dos명령 - %time% 변수 활용 dos에서 특정 날짜와 시간으로 파일을 생성할 때 문제점 - %time% 변수 값의 시간구분자가 일반적으로 ":(콜론)"이 사용되어 지므로 파일명으로 사용불가 - ex) echo %time% -> 9:49:05 -> 파일명으로 사용불가 bat 파일을 만들어 변수값 활용예 ----------------------------------------------------------- set tm=%time% set hh=%time:~0,2% set mm=%time:~3,2% set ss=%time:~6,2% set hh1=%hh:~0,1% set hh2=%hh:~1,1% if "%hh1%" == " " set hh=0%hh2% echo original time = %tm% .. 2013. 7. 4.
톰캣에서 Multiple Instance띄우기. Tomcat을 1개만 설치하고 사용자에 따라서 톰캣을 여러개 띄워야 할 경우 사용자마다 Tomcat을 깔아주지 않고해결할수 있는 방법입니다.톰캣 설치시에 CATALINA_HOME이라는 환경 변수를 잡아주도록 되어있습니다.이 값은 Tomcat이 설치된 디렉토리를 지정해줍니다. 이 값은 톰캣 서버의 실행파일이나 클래스 패스등을 잡을때사용하는 실행 경로라고 보시면 될것 같습니다. 이것 말도 톰캣을 여러개 띄우기 위해서는CATALINA_BASE라는 환경변수를 잡아주면 됩니다.CATALINA_BASE는 개별 톰캣 instance들을 위한 기본 디렉토리로 볼수 있습니다.원래의 톰켓 디렉토리는 d:\was 1. WAS instances용 디렉토리를 만듭니다. ex> d:\instances 2. 그 WAS 용 디렉토리.. 2013. 7. 4.
POI 엑셀(xlsx 파일) 업로드 시 에러 java.lang.NoClassDefFoundError: org/openxmlformats/schemas/spreadsheetml/x2006/main/CTSheet xlsx pom.xml 에 아래의 dependency 추가하면 에러 수정된다. org.apache.tika tika-app 0.5 출처: http://www.jarvana.com/jarvana/view/org/apache/tika/tika-app/0.5/tika-app-0.5.jar!/org/openxmlformats/schemas/spreadsheetml/x2006/main/CTSheet$1.class?classDetails=ok 2012. 9. 27.
jQuery Ajax를 이용해서 실시간 검색을 하려고 합니다. 500 에러 발생!! ~~~~해결~~~ JSP 상에 사용하신 tag에 지정된 paginationInfo가 Controller에서 넘어가지 않은 것 같습니다. (null) Controller에서 PaginationInfo 객체를 생성해서 모델에 넣으셨는지 확인해 보시면 되실 것 같습니다. jsp 쪽에서 입력한 값 9 는 컨트롤러에서 제대로 출력이되고 있습니다. 아래와 같이 널포인트 익셉션인데 어디를 봐야할까요? 콘트롤러에는 받은값 출력하고 리턴하는 코드만 있습니다. ===========/searchName:9============== 2012. 8. 7 오후 3:21:16 org.apache.catalina.core.ApplicationDispatcher invoke 심각: Servlet.service() for servlet.. 2012. 8. 9.
[HTML5] 옵션 patten DescriptionPattern Credit Card Number [0-9]{13,16} Diners Club Card ^([30|36|38]{2})([0-9]{12})$ ICQ UIN ([1-9])+(?:-?\d){4,} Alpha-Numeric ^[a-zA-Z0-9]+$ Domain like "abc.de" ^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$ IPv4 Address ((^|\.)((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]?\d))){4}$ IPv6 Address ((^|:)([0-9a-fA-F]{0,4})){1,8}$ Username with 2-20 chars (format: string+stri.. 2012. 8. 1.