asgard
asgard copied to clipboard
Exception when adding more than one custom instance type in Config
Hi,
I wanted to add the new EC2 having problems adding more instance types than one.
customInstanceTypes = [
new InstanceTypeData(linuxOnDemandPrice: 0.077, hardwareProfile:
new HardwareProfile(instanceType: 'm3.medium',
family: 'General Purpose', group: 'm3',
size: 'Medium', arch: '64-bit', vCpu: '1', ecu: '3',
mem: '3.75', storage: '1 x 4 SSD', ebsOptim: '-',
netPerf: '?')),
// new InstanceTypeData(linuxOnDemandPrice: 0.154, hardwareProfile:
// new HardwareProfile(instanceType: 'm3.large',
// family: 'Compute Optimized', group: 'm3',
// size: 'Large', arch: '64-bit', vCpu: '2',
// ecu: '6.5', mem: '7.5', storage: '1 x 32 SSD',
// ebsOptim: '-', netPerf: '?')),
]
When I uncomment the second profile, I am starting to get a startup exception:
[2014-04-04 16:29:35,740] [pool-18-thread-1] com.netflix.asgard.SshService Error using ssh to connect to null
[2014-04-04 16:29:35,780] [pool-18-thread-1] grails.web.context.GrailsContextLoader Error initializing the application: Error creating bean with name 'applicationService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsAutoScalingService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsClientService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secretService': Invocation of init method failed; nested exception is java.lang.NullPointerException: ERROR: Trying to use String with null null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsAutoScalingService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsClientService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secretService': Invocation of init method failed; nested exception is java.lang.NullPointerException: ERROR: Trying to use String with null null
at com.netflix.asgard.InitService.initializeApplication(InitService.groovy:64)
at BootStrap$_closure1.doCall(BootStrap.groovy:32)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:308)
at grails.util.Environment.executeForEnvironment(Environment.java:301)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:277)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsAutoScalingService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsClientService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secretService': Invocation of init method failed; nested exception is java.lang.NullPointerException: ERROR: Trying to use String with null null
... 9 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsClientService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secretService': Invocation of init method failed; nested exception is java.lang.NullPointerException: ERROR: Trying to use String with null null
... 9 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secretService': Invocation of init method failed; nested exception is java.lang.NullPointerException: ERROR: Trying to use String with null null
... 9 more
Caused by: java.lang.NullPointerException: ERROR: Trying to use String with null null
at com.netflix.asgard.Check.notNull(Check.groovy:39)
at com.netflix.asgard.Check.notEmpty(Check.groovy:85)
at com.netflix.asgard.SecretService.fetchRemote(SecretService.groovy:78)
at com.netflix.asgard.SecretService.fetch(SecretService.groovy:67)
at com.netflix.asgard.SecretService.afterPropertiesSet(SecretService.groovy:40)
... 9 more
[2014-04-04 16:29:35,784] [pool-18-thread-1] grails.web.context.GrailsContextLoader Error initializing Grails: Error creating bean with name 'applicationService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsAutoScalingService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsClientService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secretService': Invocation of init method failed; nested exception is java.lang.NullPointerException: ERROR: Trying to use String with null null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsAutoScalingService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsClientService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secretService': Invocation of init method failed; nested exception is java.lang.NullPointerException: ERROR: Trying to use String with null null
at com.netflix.asgard.InitService.initializeApplication(InitService.groovy:64)
at BootStrap$_closure1.doCall(BootStrap.groovy:32)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:308)
at grails.util.Environment.executeForEnvironment(Environment.java:301)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:277)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsAutoScalingService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsClientService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secretService': Invocation of init method failed; nested exception is java.lang.NullPointerException: ERROR: Trying to use String with null null
... 9 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsClientService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secretService': Invocation of init method failed; nested exception is java.lang.NullPointerException: ERROR: Trying to use String with null null
... 9 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secretService': Invocation of init method failed; nested exception is java.lang.NullPointerException: ERROR: Trying to use String with null null
... 9 more
Caused by: java.lang.NullPointerException: ERROR: Trying to use String with null null
at com.netflix.asgard.Check.notNull(Check.groovy:39)
at com.netflix.asgard.Check.notEmpty(Check.groovy:85)
at com.netflix.asgard.SecretService.fetchRemote(SecretService.groovy:78)
at com.netflix.asgard.SecretService.fetch(SecretService.groovy:67)
at com.netflix.asgard.SecretService.afterPropertiesSet(SecretService.groovy:40)
... 9 more
[2014-04-04 16:31:00,862] [pool-18-thread-1] ShiroGrailsPlugin Registering realm: com.netflix.asgard.AsgardRealm
[2014-04-04 16:31:00,876] [pool-18-thread-1] ShiroGrailsPlugin Registering realm: com.netflix.asgard.ApiTokenRealm
Maybe my syntax? Cheers