New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hudsonCollectorTask issue #1712

Closed
SreedharYadavN opened this Issue Sep 7, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@SreedharYadavN

SreedharYadavN commented Sep 7, 2017

Hi Team,
Need help
working with jenkins collector and getting below error need help.
Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hudsonCollectorTask': Invocation of init method failed; nested exception is java.lang.NullPointerException

@nitin1706

This comment has been minimized.

Show comment
Hide comment
@nitin1706

nitin1706 Sep 7, 2017

Collaborator

can you please share complete error stack trace along with commands and properties file you use to run Hygieia-Jenkins module

Collaborator

nitin1706 commented Sep 7, 2017

can you please share complete error stack trace along with commands and properties file you use to run Hygieia-Jenkins module

@nireeshT

This comment has been minimized.

Show comment
Hide comment
@nireeshT

nireeshT Sep 8, 2017

Collaborator

@SreedharYadavN - send your jenkins prop file, name of prop file, cmd to run jenkins collector, full collector log.

Collaborator

nireeshT commented Sep 8, 2017

@SreedharYadavN - send your jenkins prop file, name of prop file, cmd to run jenkins collector, full collector log.

@SreedharYadavN

This comment has been minimized.

Show comment
Hide comment
@SreedharYadavN

SreedharYadavN Sep 8, 2017

dbname=dashboard
#dbusername=admin
#dbpassword=admin
dbhost=localhost
dbport=27017
dbreplicaset=false
dbhostport=localhost:27017
server.contextPath=/api
server.port=9085

Collector schedule (required)

jenkins.cron=0 0/5 * * * *

The page size

#jenkins.pageSize=1000

The folder depth - default is 10

#jenkins.folderDepth=10

Jenkins server (required) - Can provide multiple

jenkins.servers[0]=http://admin:8cbf150dcfd281ad6051d6d1e27924a0@localhost:8080

Another option: If using same username/password Jenkins auth,

set username/apiKey to use HTTP Basic Auth (blank=no auth)

jenkins.usernames[0]=admin
jenkins.apiKeys[0]=8cbf150dcfd281ad6051d6d1e27924a0

Determines if build console log is collected - defaults to false

jenkins.saveLog=false


command : java -jar /opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar --spring.config.name=jenkins --spring.config.name=/opt/Hygieia/api/src/main/resources/application.properties



Logs


14:41:24,873 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
14:41:24,874 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
14:41:24,874 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/logback.xml]
14:41:24,901 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@360ccc34 - URL [jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/logback.xml] is not of type file
14:41:24,953 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
14:41:24,960 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
14:41:24,969 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
14:41:24,996 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
14:41:25,060 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
14:41:25,062 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ROLLING]
14:41:25,091 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
14:41:25,092 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern logs/buildcollector-%d{yyyy-MM-dd}.%i.log for the active file
14:41:25,094 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@205e034e - The date pattern is 'yyyy-MM-dd' from file name pattern 'logs/buildcollector-%d{yyyy-MM-dd}.%i.log'.
14:41:25,094 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@205e034e - Roll-over at midnight.
14:41:25,097 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@205e034e - Setting initial period to Fri Sep 08 14:41:25 IST 2017
14:41:25,098 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
14:41:25,099 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - Active log file name: logs/buildcollector-2017-09-08.0.log
14:41:25,099 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - File property is set to [null]
14:41:25,100 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - Failed to create parent directories for [/opt/Hygieia/collectors/build/jenkins/target/logs/buildcollector-2017-09-08.0.log]
14:41:25,100 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - openFile(null,true) call failed. java.io.FileNotFoundException: logs/buildcollector-2017-09-08.0.log (No such file or directory)
at java.io.FileNotFoundException: logs/buildcollector-2017-09-08.0.log (No such file or directory)
at at java.io.FileOutputStream.open0(Native Method)
at at java.io.FileOutputStream.open(FileOutputStream.java:270)
at at java.io.FileOutputStream.(FileOutputStream.java:213)
at at ch.qos.logback.core.recovery.ResilientFileOutputStream.(ResilientFileOutputStream.java:28)
at at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:148)
at at ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
at at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:86)
at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:152)
at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
at at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:55)
at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)
at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:283)
at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
at at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:273)
at at org.springframework.boot.SpringApplication.(SpringApplication.java:160)
at at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)
at at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)
at at com.capitalone.dashboard.Application.main(Application.java:13)
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at at java.lang.reflect.Method.invoke(Method.java:498)
at at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
at at java.lang.Thread.run(Thread.java:745)
14:41:25,100 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
14:41:25,100 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ROLLING] to Logger[ROOT]
14:41:25,101 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
14:41:25,101 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
14:41:25,101 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@5499bb5c - Registering current configuration as safe fallback point


| | | | () () | ___ \ () | | | / __ \ | | | | |
| |
| |_ _ __ _ _ ___ _ __ _ | |/ / _ | | | || / / ___ | | | ___ | | ___ _ __
| _ | | | |/ | |/ _ \ |/ _ || ___ \ | | | | |/ ` || | / _ | | |/ _ / __| / _ | '|
| | | | |
| | (
| | | __/ | (
| | | |
/ / |
| | | | (
| | | _
/\ (
) | | | / (| || (
) | |
_| |
/_
, |_
, |
|_
|
|_
,
| _/ _,||
|_,| _/_/|||_|_|___/||
/ | / |
|
/ |
/

2017-09-08 14:41:25,368 INFO com.capitalone.dashboard.Application - Starting Application v2.0.4-SNAPSHOT on INHYDSPMOBCD with PID 6974 (/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar started by bijay in /opt/Hygieia/collectors/build/jenkins/target)
2017-09-08 14:41:25,403 INFO o.s.c.a.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@40b45930: startup date [Fri Sep 08 14:41:25 IST 2017]; root of context hierarchy
2017-09-08 14:41:26,147 INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-09-08 14:41:26,189 INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.1.3.Final
2017-09-08 14:41:26,388 INFO o.s.s.c.ThreadPoolTaskScheduler - Initializing ExecutorService 'taskScheduler'
2017-09-08 14:41:26,475 INFO c.c.dashboard.config.MongoConfig - ReplicaSetfalse
2017-09-08 14:41:26,476 INFO c.c.dashboard.config.MongoConfig - Initializing Mongo Client server at: localhost:27017
2017-09-08 14:41:26,563 INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2017-09-08 14:41:26,627 INFO c.c.dashboard.config.MongoConfig - Connecting to Mongo: Mongo{options=MongoClientOptions{description='null', readPreference=primary, writeConcern=WriteConcern{w=1, wtimeout=0, fsync=false, j=false, codecRegistry=org.bson.codecs.configuration.ProvidersCodecRegistry@1ee4b925, minConnectionsPerHost=0, maxConnectionsPerHost=100, threadsAllowedToBlockForConnectionMultiplier=5, serverSelectionTimeout=30000, maxWaitTime=120000, maxConnectionIdleTime=0, maxConnectionLifeTime=0, connectTimeout=10000, socketTimeout=0, socketKeepAlive=false, sslEnabled=false, sslInvalidHostNamesAllowed=false, alwaysUseMBeans=false, heartbeatFrequency=10000, minHeartbeatFrequency=500, heartbeatConnectTimeout=20000, heartbeatSocketTimeout=20000, localThreshold=15, requiredReplicaSetName='null', dbDecoderFactory=com.mongodb.DefaultDBDecoder$1@2a4bb54e, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@7b644d67, socketFactory=javax.net.DefaultSocketFactory@2cc25a84, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitQueueSize=500, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, keepAlive=false, receiveBufferSize=0, sendBufferSize=0}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=20000, readTimeoutMS=20000, keepAlive=false, receiveBufferSize=0, sendBufferSize=0}}}
2017-09-08 14:41:26,673 INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:1, serverValue:187}] to localhost:27017
2017-09-08 14:41:26,674 INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[2, 6, 12]}, minWireVersion=0, maxWireVersion=2, electionId=null, maxDocumentSize=16777216, roundTripTimeNanos=366917}
2017-09-08 14:41:27,076 WARN o.s.c.a.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hudsonCollectorTask': Invocation of init method failed; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at com.capitalone.dashboard.Application.main(Application.java:13) [jenkins-build-collector-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) [jenkins-build-collector-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
Caused by: java.lang.NullPointerException: null
at org.springframework.scheduling.support.CronSequenceGenerator.parse(CronSequenceGenerator.java:265) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:95) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:82) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronTrigger.(CronTrigger.java:44) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at com.capitalone.dashboard.collector.CollectorTask.onStartup(CollectorTask.java:73) ~[core-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
... 22 common frames omitted
2017-09-08 14:41:27,079 INFO o.s.s.c.ThreadPoolTaskScheduler - Shutting down ExecutorService 'taskScheduler'
2017-09-08 14:41:27,080 INFO o.s.b.l.ClasspathLoggingApplicationListener - Application failed to start with classpath: [jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/core-2.0.4-SNAPSHOT.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-boot-1.2.5.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/commons-codec-1.9.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-test-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-data-mongodb-1.8.0.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-expression-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-data-commons-1.11.0.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/slf4j-api-1.7.12.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/jcl-over-slf4j-1.7.12.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/querydsl-jpa-3.6.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/querydsl-core-3.6.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/guava-18.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/jsr305-1.3.9.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/mysema-commons-lang-0.2.4.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/bridge-method-annotation-1.13.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/querydsl-apt-3.6.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/querydsl-codegen-3.6.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/codegen-0.6.5.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/ecj-4.3.1.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/javax.inject-1.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/querydsl-mongodb-3.6.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/validation-api-1.1.0.Final.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/hibernate-validator-5.1.3.Final.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/jboss-logging-3.1.3.GA.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/classmate-1.0.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/javax.el-api-2.2.4.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/commons-beanutils-1.9.2.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/commons-collections-3.2.1.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/json-simple-1.1.1.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/junit-4.12.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/commons-lang3-3.3.2.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-web-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-aop-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/aopalliance-1.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-beans-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-context-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-core-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-boot-starter-data-mongodb-1.2.5.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-boot-starter-1.2.5.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-boot-autoconfigure-1.2.5.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-boot-starter-logging-1.2.5.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/jul-to-slf4j-1.7.12.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/log4j-over-slf4j-1.7.12.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/logback-classic-1.1.3.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/logback-core-1.1.3.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/snakeyaml-1.14.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/mongo-java-driver-3.0.2.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-tx-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/hamcrest-core-1.3.jar!/]
2017-09-08 14:41:27,081 INFO o.s.b.a.l.AutoConfigurationReportLoggingInitializer -

Error starting ApplicationContext. To display the auto-configuration report enable debug logging (start with --debug)

2017-09-08 14:41:27,081 ERROR o.s.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hudsonCollectorTask': Invocation of init method failed; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at com.capitalone.dashboard.Application.main(Application.java:13) [jenkins-build-collector-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) [jenkins-build-collector-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
Caused by: java.lang.NullPointerException: null
at org.springframework.scheduling.support.CronSequenceGenerator.parse(CronSequenceGenerator.java:265) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:95) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:82) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronTrigger.(CronTrigger.java:44) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at com.capitalone.dashboard.collector.CollectorTask.onStartup(CollectorTask.java:73) ~[core-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
... 22 common frames omitted
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hudsonCollectorTask': Invocation of init method failed; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)
at com.capitalone.dashboard.Application.main(Application.java:13)
... 6 more
Caused by: java.lang.NullPointerException
at org.springframework.scheduling.support.CronSequenceGenerator.parse(CronSequenceGenerator.java:265)
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:95)
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:82)
at org.springframework.scheduling.support.CronTrigger.(CronTrigger.java:44)
at com.capitalone.dashboard.collector.CollectorTask.onStartup(CollectorTask.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
... 22 more

SreedharYadavN commented Sep 8, 2017

dbname=dashboard
#dbusername=admin
#dbpassword=admin
dbhost=localhost
dbport=27017
dbreplicaset=false
dbhostport=localhost:27017
server.contextPath=/api
server.port=9085

Collector schedule (required)

jenkins.cron=0 0/5 * * * *

The page size

#jenkins.pageSize=1000

The folder depth - default is 10

#jenkins.folderDepth=10

Jenkins server (required) - Can provide multiple

jenkins.servers[0]=http://admin:8cbf150dcfd281ad6051d6d1e27924a0@localhost:8080

Another option: If using same username/password Jenkins auth,

set username/apiKey to use HTTP Basic Auth (blank=no auth)

jenkins.usernames[0]=admin
jenkins.apiKeys[0]=8cbf150dcfd281ad6051d6d1e27924a0

Determines if build console log is collected - defaults to false

jenkins.saveLog=false


command : java -jar /opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar --spring.config.name=jenkins --spring.config.name=/opt/Hygieia/api/src/main/resources/application.properties



Logs


14:41:24,873 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
14:41:24,874 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
14:41:24,874 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/logback.xml]
14:41:24,901 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@360ccc34 - URL [jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/logback.xml] is not of type file
14:41:24,953 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
14:41:24,960 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
14:41:24,969 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
14:41:24,996 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
14:41:25,060 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
14:41:25,062 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ROLLING]
14:41:25,091 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
14:41:25,092 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern logs/buildcollector-%d{yyyy-MM-dd}.%i.log for the active file
14:41:25,094 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@205e034e - The date pattern is 'yyyy-MM-dd' from file name pattern 'logs/buildcollector-%d{yyyy-MM-dd}.%i.log'.
14:41:25,094 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@205e034e - Roll-over at midnight.
14:41:25,097 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@205e034e - Setting initial period to Fri Sep 08 14:41:25 IST 2017
14:41:25,098 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
14:41:25,099 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - Active log file name: logs/buildcollector-2017-09-08.0.log
14:41:25,099 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - File property is set to [null]
14:41:25,100 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - Failed to create parent directories for [/opt/Hygieia/collectors/build/jenkins/target/logs/buildcollector-2017-09-08.0.log]
14:41:25,100 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - openFile(null,true) call failed. java.io.FileNotFoundException: logs/buildcollector-2017-09-08.0.log (No such file or directory)
at java.io.FileNotFoundException: logs/buildcollector-2017-09-08.0.log (No such file or directory)
at at java.io.FileOutputStream.open0(Native Method)
at at java.io.FileOutputStream.open(FileOutputStream.java:270)
at at java.io.FileOutputStream.(FileOutputStream.java:213)
at at ch.qos.logback.core.recovery.ResilientFileOutputStream.(ResilientFileOutputStream.java:28)
at at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:148)
at at ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
at at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:86)
at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:152)
at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
at at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:55)
at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)
at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:283)
at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
at at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:273)
at at org.springframework.boot.SpringApplication.(SpringApplication.java:160)
at at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)
at at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)
at at com.capitalone.dashboard.Application.main(Application.java:13)
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at at java.lang.reflect.Method.invoke(Method.java:498)
at at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
at at java.lang.Thread.run(Thread.java:745)
14:41:25,100 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
14:41:25,100 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ROLLING] to Logger[ROOT]
14:41:25,101 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
14:41:25,101 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
14:41:25,101 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@5499bb5c - Registering current configuration as safe fallback point


| | | | () () | ___ \ () | | | / __ \ | | | | |
| |
| |_ _ __ _ _ ___ _ __ _ | |/ / _ | | | || / / ___ | | | ___ | | ___ _ __
| _ | | | |/ | |/ _ \ |/ _ || ___ \ | | | | |/ ` || | / _ | | |/ _ / __| / _ | '|
| | | | |
| | (
| | | __/ | (
| | | |
/ / |
| | | | (
| | | _
/\ (
) | | | / (| || (
) | |
_| |
/_
, |_
, |
|_
|
|_
,
| _/ _,||
|_,| _/_/|||_|_|___/||
/ | / |
|
/ |
/

2017-09-08 14:41:25,368 INFO com.capitalone.dashboard.Application - Starting Application v2.0.4-SNAPSHOT on INHYDSPMOBCD with PID 6974 (/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar started by bijay in /opt/Hygieia/collectors/build/jenkins/target)
2017-09-08 14:41:25,403 INFO o.s.c.a.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@40b45930: startup date [Fri Sep 08 14:41:25 IST 2017]; root of context hierarchy
2017-09-08 14:41:26,147 INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-09-08 14:41:26,189 INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.1.3.Final
2017-09-08 14:41:26,388 INFO o.s.s.c.ThreadPoolTaskScheduler - Initializing ExecutorService 'taskScheduler'
2017-09-08 14:41:26,475 INFO c.c.dashboard.config.MongoConfig - ReplicaSetfalse
2017-09-08 14:41:26,476 INFO c.c.dashboard.config.MongoConfig - Initializing Mongo Client server at: localhost:27017
2017-09-08 14:41:26,563 INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2017-09-08 14:41:26,627 INFO c.c.dashboard.config.MongoConfig - Connecting to Mongo: Mongo{options=MongoClientOptions{description='null', readPreference=primary, writeConcern=WriteConcern{w=1, wtimeout=0, fsync=false, j=false, codecRegistry=org.bson.codecs.configuration.ProvidersCodecRegistry@1ee4b925, minConnectionsPerHost=0, maxConnectionsPerHost=100, threadsAllowedToBlockForConnectionMultiplier=5, serverSelectionTimeout=30000, maxWaitTime=120000, maxConnectionIdleTime=0, maxConnectionLifeTime=0, connectTimeout=10000, socketTimeout=0, socketKeepAlive=false, sslEnabled=false, sslInvalidHostNamesAllowed=false, alwaysUseMBeans=false, heartbeatFrequency=10000, minHeartbeatFrequency=500, heartbeatConnectTimeout=20000, heartbeatSocketTimeout=20000, localThreshold=15, requiredReplicaSetName='null', dbDecoderFactory=com.mongodb.DefaultDBDecoder$1@2a4bb54e, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@7b644d67, socketFactory=javax.net.DefaultSocketFactory@2cc25a84, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitQueueSize=500, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, keepAlive=false, receiveBufferSize=0, sendBufferSize=0}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=20000, readTimeoutMS=20000, keepAlive=false, receiveBufferSize=0, sendBufferSize=0}}}
2017-09-08 14:41:26,673 INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:1, serverValue:187}] to localhost:27017
2017-09-08 14:41:26,674 INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[2, 6, 12]}, minWireVersion=0, maxWireVersion=2, electionId=null, maxDocumentSize=16777216, roundTripTimeNanos=366917}
2017-09-08 14:41:27,076 WARN o.s.c.a.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hudsonCollectorTask': Invocation of init method failed; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at com.capitalone.dashboard.Application.main(Application.java:13) [jenkins-build-collector-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) [jenkins-build-collector-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
Caused by: java.lang.NullPointerException: null
at org.springframework.scheduling.support.CronSequenceGenerator.parse(CronSequenceGenerator.java:265) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:95) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:82) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronTrigger.(CronTrigger.java:44) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at com.capitalone.dashboard.collector.CollectorTask.onStartup(CollectorTask.java:73) ~[core-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
... 22 common frames omitted
2017-09-08 14:41:27,079 INFO o.s.s.c.ThreadPoolTaskScheduler - Shutting down ExecutorService 'taskScheduler'
2017-09-08 14:41:27,080 INFO o.s.b.l.ClasspathLoggingApplicationListener - Application failed to start with classpath: [jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/core-2.0.4-SNAPSHOT.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-boot-1.2.5.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/commons-codec-1.9.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-test-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-data-mongodb-1.8.0.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-expression-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-data-commons-1.11.0.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/slf4j-api-1.7.12.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/jcl-over-slf4j-1.7.12.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/querydsl-jpa-3.6.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/querydsl-core-3.6.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/guava-18.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/jsr305-1.3.9.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/mysema-commons-lang-0.2.4.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/bridge-method-annotation-1.13.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/querydsl-apt-3.6.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/querydsl-codegen-3.6.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/codegen-0.6.5.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/ecj-4.3.1.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/javax.inject-1.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/querydsl-mongodb-3.6.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/validation-api-1.1.0.Final.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/hibernate-validator-5.1.3.Final.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/jboss-logging-3.1.3.GA.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/classmate-1.0.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/javax.el-api-2.2.4.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/commons-beanutils-1.9.2.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/commons-collections-3.2.1.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/json-simple-1.1.1.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/junit-4.12.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/commons-lang3-3.3.2.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-web-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-aop-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/aopalliance-1.0.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-beans-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-context-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-core-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-boot-starter-data-mongodb-1.2.5.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-boot-starter-1.2.5.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-boot-autoconfigure-1.2.5.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-boot-starter-logging-1.2.5.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/jul-to-slf4j-1.7.12.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/log4j-over-slf4j-1.7.12.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/logback-classic-1.1.3.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/logback-core-1.1.3.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/snakeyaml-1.14.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/mongo-java-driver-3.0.2.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/spring-tx-4.1.7.RELEASE.jar!/, jar:file:/opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar!/lib/hamcrest-core-1.3.jar!/]
2017-09-08 14:41:27,081 INFO o.s.b.a.l.AutoConfigurationReportLoggingInitializer -

Error starting ApplicationContext. To display the auto-configuration report enable debug logging (start with --debug)

2017-09-08 14:41:27,081 ERROR o.s.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hudsonCollectorTask': Invocation of init method failed; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at com.capitalone.dashboard.Application.main(Application.java:13) [jenkins-build-collector-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) [jenkins-build-collector-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
Caused by: java.lang.NullPointerException: null
at org.springframework.scheduling.support.CronSequenceGenerator.parse(CronSequenceGenerator.java:265) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:95) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:82) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.scheduling.support.CronTrigger.(CronTrigger.java:44) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at com.capitalone.dashboard.collector.CollectorTask.onStartup(CollectorTask.java:73) ~[core-2.0.4-SNAPSHOT.jar!/:2.0.4-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
... 22 common frames omitted
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hudsonCollectorTask': Invocation of init method failed; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)
at com.capitalone.dashboard.Application.main(Application.java:13)
... 6 more
Caused by: java.lang.NullPointerException
at org.springframework.scheduling.support.CronSequenceGenerator.parse(CronSequenceGenerator.java:265)
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:95)
at org.springframework.scheduling.support.CronSequenceGenerator.(CronSequenceGenerator.java:82)
at org.springframework.scheduling.support.CronTrigger.(CronTrigger.java:44)
at com.capitalone.dashboard.collector.CollectorTask.onStartup(CollectorTask.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
... 22 more

@nitin1706

This comment has been minimized.

Show comment
Hide comment
@nitin1706

nitin1706 Sep 8, 2017

Collaborator

@SreedharYadavN : Its not able to find the location of properties file. Make sure the path to properties file is correct and change your command to use --spring.config.location instead of --spring.config.name:

command : java -jar /opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar --spring.config.name=jenkins --spring.config.name -> change this to --spring.config.location=/opt/Hygieia/api/src/main/resources/application.properties

Collaborator

nitin1706 commented Sep 8, 2017

@SreedharYadavN : Its not able to find the location of properties file. Make sure the path to properties file is correct and change your command to use --spring.config.location instead of --spring.config.name:

command : java -jar /opt/Hygieia/collectors/build/jenkins/target/jenkins-build-collector-2.0.4-SNAPSHOT.jar --spring.config.name=jenkins --spring.config.name -> change this to --spring.config.location=/opt/Hygieia/api/src/main/resources/application.properties

@satishc1 satishc1 closed this Sep 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment