because "nashorn" is null > 질문답변

본문 바로가기
사이트 내 전체검색

질문답변

because "nashorn" is null

페이지 정보

profile_image
작성자 미친새
댓글 0건 조회 6,054회 작성일 21-06-02 15:33

본문

스프링 부트 실행시 에러 날때


Exception encountered during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'clovaRestService': Unsatisfied dependency expressed through field 'jsInvoker';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'clovaToOpenbuilder' defined in class path resource
[net/ib/skill_template/clova/NaverClovaConfiguration.class]:
Bean instantiation via factory method failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [javax.script.Invocable]:
Factory method 'getNashornExecutor' threw exception; nested exception is java.lang.NullPointerException:
Cannot invoke "javax.script.ScriptEngine.eval(java.io.Reader)" because "nashorn" is null


Window -> Preferences -> java -> Installed JREs -> add -> Standard VM -> Directory(버튼 -자바설치 폴더 위치 예)C:\Program Files\ojdkbuild\java-1.8.0-openjdk-1.8.0.292-1) -> Finish -> Name(새로설정한 위치로 선택) ->Apply

원인은 STS 에 들어있는 JAVA를 사용해서 그렇다. 컴퓨터에 설치한 JAVA를 사용하면 된다.



그런데 a jni error has occurred 해결 이 에러 나면은
Project->Propertise->java compiler->Enable project specific 항목 체크 -> Compiler complisance level 여러분의 버젼으로맞추세요.(저는 1.8)

링크2 참조

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

사이트 정보

회사명 : 회사명 / 대표 : 대표자명
주소 : OO도 OO시 OO구 OO동 123-45
사업자 등록번호 : 123-45-67890
전화 : 02-123-4567 팩스 : 02-123-4568
통신판매업신고번호 : 제 OO구 - 123호
개인정보관리책임자 : 정보책임자명

공지사항

  • 게시물이 없습니다.

접속자집계

오늘
293
어제
2,221
최대
3,834
전체
871,892
Copyright © 소유하신 도메인. All rights reserved.