brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Macartney (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BROOKLYN-335) brooklyn-client runtime panic on an app with no location
Date Mon, 22 Aug 2016 10:28:20 GMT
Geoff Macartney created BROOKLYN-335:
----------------------------------------

             Summary: brooklyn-client runtime panic on an app with no location
                 Key: BROOKLYN-335
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-335
             Project: Brooklyn
          Issue Type: Bug
            Reporter: Geoff Macartney
            Priority: Minor


It is possible (though rare) to have an application in Brooklyn with no location, e.g. if
its entities specify their own locations.  With such an application, the {{br}} client will
correctly report the details with a {{br app}} command, 

{code}
br app 
Id           Name            Status    Location   
mcp7qvfh6o   Test            RUNNING 
{code}

but on requesting details for the individual application there is a panic:

{code}
$ br app mcp7qvfh6o
panic: runtime error: index out of range

goroutine 1 [running]:
panic(0x3dad60, 0xc820010080)
	/usr/local/Cellar/go/1.6/libexec/src/runtime/panic.go:464 +0x3e6
github.com/apache/brooklyn-client/commands.(*Application).show(0xc820030068, 0x7fff5fbff8c7,
0xa)
	/Users/geoff/go/src/github.com/apache/brooklyn-client/commands/application.go:82 +0xe70
github.com/apache/brooklyn-client/commands.(*Application).Run(0xc820030068, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/Users/geoff/go/src/github.com/apache/brooklyn-client/commands/application.go:61 +0x21d
github.com/apache/brooklyn-client/command_runner.ConcreteRunner.RunCmdByName(0x78ac28, 0xc8200110d0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/Users/geoff/go/src/github.com/apache/brooklyn-client/command_runner/runner.go:49 +0xe7
github.com/apache/brooklyn-client/command_runner.(*ConcreteRunner).RunCmdByName(0xc820018300,
0x464970, 0xb, 0xc820016780, 0x0, 0x0)
	<autogenerated>:1 +0xe0
github.com/apache/brooklyn-client/app.getCommand.func1(0xc820016780)
	/Users/geoff/go/src/github.com/apache/brooklyn-client/app/app.go:72 +0x57
github.com/apache/brooklyn-client/vendor/github.com/codegangsta/cli.Command.Run(0x464970,
0xb, 0x0, 0x0, 0xc82000b320, 0x3, 0x3, 0xc8200c2ac0, 0x14, 0x0, ...)
	/Users/geoff/go/src/github.com/apache/brooklyn-client/vendor/github.com/codegangsta/cli/command.go:174
+0x1399
github.com/apache/brooklyn-client/vendor/github.com/codegangsta/cli.(*App).Run(0xc820016500,
0xc82000b2c0, 0x3, 0x3, 0x0, 0x0)
	/Users/geoff/go/src/github.com/apache/brooklyn-client/vendor/github.com/codegangsta/cli/app.go:187
+0x112b
main.main()
	/Users/geoff/go/src/github.com/apache/brooklyn-client/br/brooklyn.go:60 +0x850
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message