Skip to content

stop-app command fails in grails 3.1.0.M2  #9388

@ejaz-ahmed

Description

@ejaz-ahmed

I get following results when I run stop-app command.

grails> run-app
| Running application...
Grails application running at http://localhost:8080 in environment: development
grails> stop-app
| Error Command [stop-app] error: null (Use --stacktrace to see the full trace)
grails> 
grails> stop-app
| Error Command [stop-app] error: null (Use --stacktrace to see the full trace)
grails> 

Here is the stacktrace

grails> stop-app --stacktrace
| Error Command [stop-app] error: null (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.NullPointerException
    at org.grails.io.support.MainClassFinder.findMainClass(MainClassFinder.groovy:87)
    at org.grails.io.support.MainClassFinder.findMainClass(MainClassFinder.groovy)
    at org.grails.io.support.MainClassFinder$findMainClass.call(Unknown Source)
    at stop-app$_run_closure2.doCall(stop-app.groovy:14)
    at stop-app.run(stop-app.groovy:51)
    at org.grails.cli.profile.commands.script.GroovyScriptCommand.handle(GroovyScriptCommand.groovy:152)
    at org.grails.cli.profile.AbstractProfile.handleCommand(AbstractProfile.groovy:384)
    at org.grails.cli.GrailsCli.handleCommand(GrailsCli.groovy:356)
    at org.grails.cli.GrailsCli$_handleCommandWithCancellationSupport_closure6.doCall(GrailsCli.groovy:451)
    at org.grails.cli.GrailsCli$_handleCommandWithCancellationSupport_closure6.call(GrailsCli.groovy)
| Error Command [stop-app] error: null

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions