문제

데스크탑에서 로컬로 그루비 응용 프로그램이 있습니다. 분명히 오류가 무료로 실행됩니다. 내가 쓴 모든 단위 테스트가 충족됩니다. a를 사용하여 응용 프로그램을 배포하고 싶습니다 전쟁 파일. 이를 위해 나는 명령을 사용합니다

grails war

응용 프로그램의 홈 디렉토리에서. 이 작업을 수행 할 때 다음과 같은 예외가 발생합니다.

Error executing script War: java.lang.NullPointerException
gant.TargetExecutionException: java.lang.NullPointerException
    at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:331)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:344)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:334)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.processTargets(Gant.groovy:495)
    at gant.Gant.processTargets(Gant.groovy:480)
Caused by: java.lang.NullPointerException
    at        _GrailsWar_groovy$_run_closure5_closure25_closure26_closure28.doCall(_GrailsWar_groovy:289)
    at _GrailsWar_groovy$_run_closure5_closure25_closure26_closure28.doCall(_GrailsWar_groovy)
    at _GrailsWar_groovy$_run_closure5_closure25_closure26.doCall(_GrailsWar_groovy:282)
    at _GrailsWar_groovy$_run_closure5_closure25_closure26.doCall(_GrailsWar_groovy)
    at _GrailsWar_groovy$_run_closure5_closure25.doCall(_GrailsWar_groovy:258)
    at _GrailsWar_groovy$_run_closure5.doCall(_GrailsWar_groovy:256)
    at _GrailsWar_groovy$_run_closure4.doCall(_GrailsWar_groovy:239)
    at War$_run_closure1.doCall(War.groovy:38)
    at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
    ... 10 more

힌트 이유가 있습니까?

많은 감사드립니다

도움이 되었습니까?

해결책

나는 당신이 그 근원을 찾아야한다고 생각합니다 Gant.groovy 그리고 그 라인에서 무엇을하고 있는지보십시오. 분명히 프로젝트의 특정 구성으로 인한 문제가있는 것 같습니다 (이러한 쇼 스토퍼 버그가 항상 발생하면 포착되었을 것이기 때문에)이지만 오류 메시지에는 많은 정보가 포함되어 있지 않습니다.

또는 아직 성배를 최신 버전 1.1.1로 업그레이드 할 수 있습니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top