fitzoh
09/14/2017, 5:19 PM.beans.factory.BeanCreationException: Error creating bean with name 'cfProperties': Could not bind properties to CfProperties (prefix=cf, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'services' of bean class [com.cardinalhealth.mobius.mobiusorchestrator.cf.config.CfProperties$$EnhancerBySpringCGLIB$$d09a0c26]: Getter for property 'services' threw exception; nested exception is java.lang.reflect.InvocationTargetException
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
agomez
09/14/2017, 5:25 PMfitzoh
09/14/2017, 5:26 PMclass ServiceVersions {
lateinit var idm: ServiceVersion
lateinit var zuul: ServiceVersion
lateinit var mobius: ServiceVersion
lateinit var inpower: ServiceVersion
}
class ServiceVersion {
lateinit var dockerTag: String
lateinit var mavenVersion: String
lateinit var jarPath: String
}
fitzoh
09/14/2017, 5:26 PMfitzoh
09/14/2017, 5:27 PMlateinit var services: ServiceVersion
instead of lateinit var services: ServiceVersions
, but fixing that didn’t helpfitzoh
09/14/2017, 5:37 PMfitzoh
09/14/2017, 5:37 PMfitzoh
09/14/2017, 5:37 PMclass CfProperties {
lateinit var apiHost: String
lateinit var organization: String
lateinit var refreshToken: String
lateinit var zuulVersion: String
lateinit var idmVersion: String
val services = ServiceVersions()
}
class ServiceVersions {
var idm: ServiceVersion = ServiceVersion()
var zuul: ServiceVersion = ServiceVersion()
var mobius: ServiceVersion = ServiceVersion()
var inpower: ServiceVersion = ServiceVersion()
}
class ServiceVersion {
var dockerTag: String? = null
var mavenVersion: String? = null
var jarPath: String? = null
}
agomez
09/14/2017, 5:37 PM