Frage

Ich habe eine groovige Anwendung lokal auf meinem Desktop läuft. Anscheinend läuft es fehlerfrei. Mindestens alle Unit-Tests Ich schrieb erfüllt sind. Ich mag die Anwendung mit einem Krieg Datei bereitstellen. Dazu benutze ich den Befehl

grails war

im Home-Verzeichnis der Anwendung. Wenn dies zu tun mir die folgende Ausnahme erhalten:

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

Jeder Hinweis, warum?

Vielen Dank im Voraus

War es hilfreich?

Lösung

Ich denke, Sie die Quelle Gant.groovy finden und sehen, was es auf dieser Linie tut. Anscheinend gibt es ein Problem mit Ihrem Projekt spezifischen Konfiguration verursacht (da eine solche Show-Stopper Bug erwischt worden wäre, wenn es immer aufgetreten ist), aber die Fehlermeldung enthält nicht viele Informationen.

Alternativ könnten Sie versuchen, Grails auf die neueste Version zu aktualisieren 1.1.1, wenn Sie nicht bereits haben.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top