본문 바로가기

오류노트37

javascript undefined, TypeError 1. 존재하지 않는 속성을 참조하면 undefind 오류가 발생한다. 2. 존재하지 않는 속성, undefind의 속성을 참조하려하면 TypeError 예외가 발생한다. var person = { 'first-name':'lee', 'birthday':'2000-01-01' }; person.['first-name']; // lee person.['last-name']; // undefined person.birthday; // 2000-01-01 person.size; // undefined person.size.length; // TypeError 2022. 1. 29.
fatal: Not a valid object name: 'master' git에서 브랜치를 생성하려는데 제목과 같은 오류가 발생한다. 일단 원인은 master 브랜치가 생성이 되지 않은 상태에서 브런치를 생성하려고 할때 나는 오류다 git init 으로 초기화를 하더라도 master 브랜치가 생성이 되지 않고 파일 하나라도 커밋을 해야 master브런치가 생성이 되고 브랜치를 생설할수 있다. 2021. 12. 28.
springboot 에서 MultipartException: Current request is not a multipart request postman에서 api를 테스트하다가 @RequestPart가 붙어 있고 파일을 업로드 하지 않으면 MultipartException: Current request is not a multipart request 이런 에러가 난다. Validator를 적용하는데 그전에 에러가 나버리니 테스트를 할수가 없었다. 그래서 찾던중에 postman에서 header 부분에 다음과 같이 셋팅을 해주면 위와같은 에러가 나지 않는다. postman에서 헤더부분을 클릭하고 Key : Content-type value: Content-Type: multipart/form-data; boundary=----WebKitFormBoundarylTMBUUyXqgLqmAdj 이렇게 셋팅을 하니 오류가 나지않는다. 참조: https.. 2021. 8. 20.
eclipse 2021-06에서 lombok 설치후 에디터 오류 발생시 https://github.com/projectlombok/lombok/issues/2810#issuecomment-817348339 [BUG] Unhandled event loop exception in Eclipse · Issue #2810 · projectlombok/lombok After updating Eclipse to use Java 16, building projects gives an error. Install Lombok 1.18.20 in Eclipse, either through the update site or the jar (I tried both). If you used the update site, yo... github.com 이클립스 2021-06버전에서 롬북설치후에 에디.. 2021. 7. 27.
AWS ec2 t3.micro 서버 스프링부트 빌드 오류 error='Cannot allocate memory' (errno=12) OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000000010096c000, 131072, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 131072 bytes for committing reserved memory. # An error report file with more information is saved as: # /home/ec2-user/app/step1/sp.. 2021. 4. 26.
AWS codedeploy build 오류 오류메세지 : The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems. Travis에서 AWS S3 와 codedeploy를 이용해서 빌드를 하는중 위와같은 오류발생 원인은 오타였다. .travis.yml 파일에서 s3의 파일을 지정하는 부분 key:에 오타 발견 s3에 업로드된 파일명에 오타가 있어서 위와같은 오류가 발생함. 수정후 실행 잘됨. 위와같은 오류발생하는 분들은 오타를 확인.. 2021. 4. 26.
Travis 빌드중 s3 접속시 Failed to open TCP connection 오류발생 Failed to open TCP connection to s3-url.s3.ap-northeast.amazonaws.com:443 (getaddrinfo: Name or service not known) (Seahorse::Client::NetworkingError) Travis에서 s3접속해서 파일을 ec2에 전송하는 부분에서 오류가 발생하였다. 원인을 확인해보니 s3접속 주소중에 ap-northeast로 접속이 되는것이었다. 실제 s3주소는 ap-northeast-2였는데 말이다. 그래서 원인을 찾던중 .travis.yml파일의 deploy부분에서 region부분이 ap-northeast로 되어 있었다. 책에 있는 소스 그대로 입력하다보니 생긴 문제였다. 당연히 이부분은 ap-northeast-2로.. 2021. 4. 26.
/home/travis/.travis/functions: line 351: ./gradlew: Permission denied travis 연동시 다음과 같은 오류가 발생하였다. /home/travis/.travis/functions: line 351: ./gradlew: Permission denied 당연히 gradlew의 실행권한이 없어서 발생하는 오류다. .travis.yml을 수정한다. script: "./gradlew clean build" 아래부분에 다음과 같이 권한을 부여한다. before_install: chmod +x gradlew 참조: m.blog.naver.com/PostView.nhn?blogId=ggomjae&logNo=221778504421&proxyReferer=https:%2F%2Fwww.google.com%2F 2021. 4. 25.
gradle 테스트시 오류발생하는경우 gradle 테스트시에 소스에 별다른 문제가 없지만 오류가 나는 경우가 있다 이런경우에는 gradle를 다운그레이드 해보자 gradlew wrapper --gradle-version 4.10.2 2021. 4. 24.
스프링 부트에서 h2database Server 클래스 불러오지 못할때 h2database를 적용하던중 Server.createServer 메서드를 추가할때 h2database의 Server클래스를 import 못할때가 있다. 이문제는 gradle에 의존성 설정을 runtimeOnly로 설정했기 때문이다. 이부분을 compile로 수정하고 다시 Server클래스를 사용하면 import가 되는걸 볼수 잇다. runtimeOnly 'com.h2database:h2' 를 compile로 수정한다. compile 'com.h2database:h2' 2021. 4. 16.