{"action":"created","issue":{"url":"https://api.github.com/repos/capitalone/Hygieia/issues/1852","repository_url":"https://api.github.com/repos/capitalone/Hygieia","labels_url":"https://api.github.com/repos/capitalone/Hygieia/issues/1852/labels{/name}","comments_url":"https://api.github.com/repos/capitalone/Hygieia/issues/1852/comments","events_url":"https://api.github.com/repos/capitalone/Hygieia/issues/1852/events","html_url":"https://github.com/capitalone/Hygieia/issues/1852","id":275362770,"number":1852,"title":"AWS Collector Null Pointer Exceptions","user":{"login":"yks0000","id":6111679,"avatar_url":"https://avatars0.githubusercontent.com/u/6111679?v=4","gravatar_id":"","url":"https://api.github.com/users/yks0000","html_url":"https://github.com/yks0000","followers_url":"https://api.github.com/users/yks0000/followers","following_url":"https://api.github.com/users/yks0000/following{/other_user}","gists_url":"https://api.github.com/users/yks0000/gists{/gist_id}","starred_url":"https://api.github.com/users/yks0000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yks0000/subscriptions","organizations_url":"https://api.github.com/users/yks0000/orgs","repos_url":"https://api.github.com/users/yks0000/repos","events_url":"https://api.github.com/users/yks0000/events{/privacy}","received_events_url":"https://api.github.com/users/yks0000/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-11-20T13:52:40Z","updated_at":"2018-02-05T16:32:23Z","closed_at":"2018-02-05T16:20:35Z","author_association":"NONE","body":"Hygieia Team,\r\n\r\nSeeing NPE while starting AWS Collector. Could you please help as what is missing?\r\n\r\nCommand to Start:\r\n\r\n`Path: collectors/cloud/aws/target/`\r\n\r\n`java -jar aws-cloud-collector-2.0.5-SNAPSHOT.jar --spring.config.name=aws --spring.config.location=application.properties`\r\n\r\nProperty File:\r\n\r\n> dbname=dashboarddb\r\n> dbhost=127.0.0.1\r\n> dbport=27017\r\n> dbusername=dashboarduser\r\n> dbpassword=dbpassword\r\n> logging.file=./logs/cloud.log\r\n> aws.cron=0 0/1 * * * *\r\n> aws.validTagKey[0]=Name\r\n> aws.validTagKey[1]=Project\r\n> aws.profile=default\r\n\r\nError:\r\n\r\n```\r\n2017-11-20 13:43:15,407 INFO  o.s.c.c.c.ConfigServicePropertySourceLocator - Fetching config from server at: http://localhost:8888\r\n2017-11-20 13:43:15,543 WARN  o.s.c.c.c.ConfigServicePropertySourceLocator - Could not locate PropertySource: I/O error on GET request for \"http://localhost:8888/application/default\":Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)\r\n2017-11-20 13:43:15,544 INFO  com.capitalone.dashboard.Application - No profiles are active\r\n\r\n2017-11-20 13:43:17,126 ERROR o.s.boot.SpringApplication - Application startup failed\r\norg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'AWSCloudCollectorTask' defined in URL [jar:file:/usr/local/src/Hygieia/collectors/cloud/aws/target/aws-cloud-collector-2.0.5-SNAPSHOT.jar!/com/capitalone/dashboard/collector/AWSCloudCollectorTask.class]: Unsatisfied dependency expressed through constructor argument with index 3 of type [com.capitalone.dashboard.collector.AWSCloudClient]: Error creating bean with name 'defaultAWSCloudClient' defined in URL [jar:file:/usr/local/src/Hygieia/collectors/cloud/aws/target/aws-cloud-collector-2.0.5-SNAPSHOT.jar!/com/capitalone/dashboard/collector/DefaultAWSCloudClient.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.capitalone.dashboard.collector.DefaultAWSCloudClient]: Constructor threw exception; nested exception is java.lang.NullPointerException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultAWSCloudClient' defined in URL [jar:file:/usr/local/src/Hygieia/collectors/cloud/aws/target/aws-cloud-collector-2.0.5-SNAPSHOT.jar!/com/capitalone/dashboard/collector/DefaultAWSCloudClient.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.capitalone.dashboard.collector.DefaultAWSCloudClient]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) ~[spring-context-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752) [spring-boot-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.doRun(SpringApplication.java:347) [spring-boot-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:295) [spring-boot-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1112) [spring-boot-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1101) [spring-boot-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]\r\n\tat com.capitalone.dashboard.Application.main(Application.java:38) [aws-cloud-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]\r\n\tat java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]\r\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) [aws-cloud-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT]\r\n\tat java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultAWSCloudClient' defined in URL [jar:file:/usr/local/src/Hygieia/collectors/cloud/aws/target/aws-cloud-collector-2.0.5-SNAPSHOT.jar!/com/capitalone/dashboard/collector/DefaultAWSCloudClient.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.capitalone.dashboard.collector.DefaultAWSCloudClient]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\t... 24 common frames omitted\r\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.capitalone.dashboard.collector.DefaultAWSCloudClient]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n\tat org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\t... 37 common frames omitted\r\nCaused by: java.lang.NullPointerException: null\r\n\tat java.util.Hashtable.put(Hashtable.java:460) ~[na:1.8.0_151]\r\n\tat com.capitalone.dashboard.collector.DefaultAWSCloudClient.setClients(DefaultAWSCloudClient.java:76) ~[aws-cloud-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT]\r\n\tat com.capitalone.dashboard.collector.DefaultAWSCloudClient.<init>(DefaultAWSCloudClient.java:67) ~[aws-cloud-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT]\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_151]\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_151]\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_151]\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_151]\r\n\tat org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) ~[spring-beans-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]\r\n\t... 39 common frames omitted\r\njava.lang.reflect.InvocationTargetException\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\nCaused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'AWSCloudCollectorTask' defined in URL [jar:file:/usr/local/src/Hygieia/collectors/cloud/aws/target/aws-cloud-collector-2.0.5-SNAPSHOT.jar!/com/capitalone/dashboard/collector/AWSCloudCollectorTask.class]: Unsatisfied dependency expressed through constructor argument with index 3 of type [com.capitalone.dashboard.collector.AWSCloudClient]: Error creating bean with name 'defaultAWSCloudClient' defined in URL [jar:file:/usr/local/src/Hygieia/collectors/cloud/aws/target/aws-cloud-collector-2.0.5-SNAPSHOT.jar!/com/capitalone/dashboard/collector/DefaultAWSCloudClient.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.capitalone.dashboard.collector.DefaultAWSCloudClient]: Constructor threw exception; nested exception is java.lang.NullPointerException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultAWSCloudClient' defined in URL [jar:file:/usr/local/src/Hygieia/collectors/cloud/aws/target/aws-cloud-collector-2.0.5-SNAPSHOT.jar!/com/capitalone/dashboard/collector/DefaultAWSCloudClient.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.capitalone.dashboard.collector.DefaultAWSCloudClient]: Constructor threw exception; nested exception is java.lang.NullPointerException\r\n```"},"comment":{"url":"https://api.github.com/repos/capitalone/Hygieia/issues/comments/363139618","html_url":"https://github.com/capitalone/Hygieia/issues/1852#issuecomment-363139618","issue_url":"https://api.github.com/repos/capitalone/Hygieia/issues/1852","id":363139618,"user":{"login":"yks0000","id":6111679,"avatar_url":"https://avatars0.githubusercontent.com/u/6111679?v=4","gravatar_id":"","url":"https://api.github.com/users/yks0000","html_url":"https://github.com/yks0000","followers_url":"https://api.github.com/users/yks0000/followers","following_url":"https://api.github.com/users/yks0000/following{/other_user}","gists_url":"https://api.github.com/users/yks0000/gists{/gist_id}","starred_url":"https://api.github.com/users/yks0000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yks0000/subscriptions","organizations_url":"https://api.github.com/users/yks0000/orgs","repos_url":"https://api.github.com/users/yks0000/repos","events_url":"https://api.github.com/users/yks0000/events{/privacy}","received_events_url":"https://api.github.com/users/yks0000/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T16:32:23Z","updated_at":"2018-02-05T16:32:23Z","author_association":"NONE","body":"@matthewbeasley I am running collector in us-west-2 region but it collects data for us-east-1 only. If this has to collect for Home region then ideally it should collect for us-west-2 instead of us-east-1. Please suggest."}}
{"actor":{"display_login":"yks0000"}}