VM1605:40 Uncaught SyntaxError: Unexpected end of input at eval () at jquery-1.11.3.min.js:2 * 원래 이 오류 는 script 에서 괄호가 안 닫힌 경우에 해당 그러나 $('#a').html(b) 했을때 'b' 가 html 이었고 script 가 포함되어 있었고, 그 script 안에서 오류가 있었기 때문에 IDE 에서는 오류가 없었지만 실행시에 오류가 나는 경우가 있었음
* 클라이언트 - js - javascript 호출 jquery.form.js jquery.MultiFile.js - js - MultiFile 선언 // 참고 : 사이트에 나온 max_size 가 아니라 maxsize 임 // 파일 추가시 추가되는 html 요소에 대한 수정은 js 파일의 addToList 부분 수정을 통해 가능하다 // input type=file 에 multi 속성을 추가하면 파일 선택창에서 ctrl+클릭을 통해 여러 파일 선택 가능하다 // 하지만 파일 목록에서는 개별로 분리되서 표시되지 않는다 $('#myFiles').MultiFile({ // accept: 'jpg|png|gif', max: 1, maxsize : 600000, // 최대 용량 600mb, 수정하려면 스프링 설..
* 개요 특정 요소 외 부분 클릭시에만 반응하는 코드 * 방법 기본적으로 $(document).click() 을 이용하여 클릭 있을때 팝업 닫히도록 하면 된다. 이 코드는 팝업에서 클릭해도 반응하므로 팝업에서 클릭하는 경우 반응하지 않도록 하는 방법은.. - 방법1) stopPropagation() 이용하는 방법 https://blog.naver.com/nemesis5198/221362801616 - 방법2) 단순하게 if 문 가져와서 하는 방법 https://m.blog.naver.com/PostView.nhn?blogId=nemesis5198&logNo=221380180121&proxyReferer=https:%2F%2Fwww.google.com%2F http://teraboard.net/bbs/ti..
* 개요 이클립스에서 특정 App WAS구동시 Caused by: java.io.FileNotFoundException: jmxremote.access 오류 보이며 구동 안됨 * 해결 server.xml 의 다음 문구를 제거하자 정상 동작. org.apache.catalina.mbeans.JmxRemoteLifecycleListener" rmiRegistryPortPlatform="9840" rmiServerPortPlatform="9841"/> - 물론 JMX 는 안되겠지.. - 참고 : 이클립스 Tomcat server.xml 위치 https://m.blog.naver.com/PostView.nhn?blogId=myca11&logNo=80127385767&proxyReferer=https:%2F%2F..
* 개요 이클립스에서는 잘 되던 getClass().getResourceAsStream() 구문이 jar 로 하면 null 반환하여 오류 유발하는 현상 * 원인 여기서 사용하는 경로는 class path 다. 그전에 src 내의 경로를 사용하고 있었다면 ( ./abc.txt ) jar 로 export 후의 경로랑은 달라진다. * 해결 1. 경로를 "현재 Java 파일 패키지 경로/abc.txt" 로 바꿔주면 된다. src 같은 경로는 제외한 class path EX : /com/myprj/module/abc.txt - 하지만 이렇게 가져온 InputStream 은 다음 오류를 반환했다. java.io.IOException: mark/reset not supported 2. 따라서 이 문제까지 해결 위해서..
* 개요 Numeric 로 선언한 max_length 란 컬럼이 있다 (자바 Integer 선언) update 시 null 을 대입하면 다음 오류 발생 Caused by: org.postgresql.util.PSQLException: ERROR: column "max_length" is of type numeric but expression is of type character varying Hint: You will need to rewrite or cast the expression. 로그에 찍히는 UPDATE ... SET max_length = NULL 은 정상동작하는 쿼리인데도 오류 * 원인 mybatis 의 파라메터 대입하는 메서드 내부에서 Integer 가 아닌 int 를 사용하면서 null..
* 방법 1 height: 30px; line-height: 30px; /* same as height! */ 이 방법은 로 나눠진 2열 텍스트의 겨우 1열과 2열 사이 간격이 30px 가 되버리는 문제 있음 * 방법 2 https://stackoverflow.com/questions/2939914/how-do-i-vertically-align-text-in-a-div display: flex; justify-content: center; align-content: center; flex-direction: column; 이건 2열의 문제도 해결됨
org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 74 (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.18363 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 1.48 seconds Build info:..
* 개요 Toast UI chart 사용시 Internet Explorer 에서 다음 오류 보이며 미작동 "개체가 'assign' 속성이나 메서드를 지원하지 않습니다." #IE * 원인 Object.assign 등 IE에서 지원하지 않는 EC6 문법이 tui-chart 에서 사용되기 때문. assign 을 https://develop88.tistory.com/entry/%EA%B0%9C%EC%B2%B4%EA%B0%80-assign-%EC%86%8D%EC%84%B1%EC%9D%B4%EB%82%98-%EB%A9%94%EC%84%9C%EB%93%9C%EB%A5%BC-%EC%A7%80%EC%9B%90%ED%95%98%EC%A7%80-%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4-%EC%98%..
* 개요 크롬에서 잘 작동하던 Internet Explorer 에서 class 문법을 '구문 오류' 로 인식. class MyClass{} ; * 원인 크롬에선 EC6 문법을 지원하지만, IE 에서는 지원하지 않음. * 해결 1 - Babel 사용하여 코드 자체를 변환 또는 polyfill 추가 - 안해봄 https://perfectacle.github.io/2016/11/11/Babel-ES6-with-IE8/ # Polyfill : 특정 기능 지원 안 되는 브라우저를 위해 사용할 수 있는 코드 등 * 해결 2 - 코드 수정 class 대신 function 이용 EC5 문법 사용하여 재정의 - 변경 전 class Validator { constructor() { this.msg = ''; } notEm..