HCS configure fails with ArrayIndexOutOfBoundsException- getVcdApi(LSGatewayImpl


Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at com.vmware.hcs.gateway.cis.impl.ls.LSGatewayImpl.getVcdApi(LSGatewayImpl.java:95)
at com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint(LsVcdGatewayFactory.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160)
... 136 more

If the VCAV installation fails with a ArrayIndexOutOfBoundsException , with the above exception stated in the hcs.log , it could mean that the public endpoints were set in the VCD but not the certificate chain.

The solution is either get rid of the public endpoint config is we have say a POC with one VCD cell , or configure the certificate chain in the pem format.

1- set the certificate or clear the endpoint

2 – unregister and register the Federation Lookup service

3. HCS reconfigure –

Screen Shot 2017-10-22 at 15.04.47

Now we should have HCS service starting OK!!

The Full Exception for reference

2017-10-19 15:14:39.004 WARN com.vmware.vim.vmomi.client.http.impl.HttpConfigurationCompilerBase$ConnectionMonitorThreadBase [main] (..http.impl.HttpConfigurationCompilerBase$ConnectionMonitorThreadBase) {} | Shutting down the connection monitor.
2017-10-19 15:14:39.051 FATAL com.vmware.hcs.Main [main] (..vmware.hcs.Main) {} | Service startup failure
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hcs': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.facade.amqp.client.AmqpListener com.vmware.hcs.HcsService.amqpListener; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hcsListener' defined in class path resource [META-INF/amqp-facade.xml]: Cannot resolve reference to bean 'tunnelResolverInfo' while setting constructor argument with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tunnelResolverInfo' defined in class path resource [META-INF/amqp-facade.xml]: Cannot resolve reference to bean 'tunnelResolverProcessor' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tunnelResolverProcessor' defined in class path resource [META-INF/amqp-facade.xml]: Cannot create inner bean 'com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler#1f93114f' of type [com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler] while setting constructor argument with key [Bean definition with name 'util:constant#2f0d810b': Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler#1f93114f': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.domainmodel.replication.ReplicationService com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler.replicationService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'replicationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.gateway.vcd.VcdGateway com.vmware.hcs.domainmodel.replication.impl.ReplicationServiceImpl.vcdGateway; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lsVcdGatewayFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.vmware.hcs.gateway.vcd.ConnectionFactory com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.connectionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:938)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)
at com.vmware.hcs.Main.main(Main.java:54)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.facade.amqp.client.AmqpListener com.vmware.hcs.HcsService.amqpListener; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hcsListener' defined in class path resource [META-INF/amqp-facade.xml]: Cannot resolve reference to bean 'tunnelResolverInfo' while setting constructor argument with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tunnelResolverInfo' defined in class path resource [META-INF/amqp-facade.xml]: Cannot resolve reference to bean 'tunnelResolverProcessor' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tunnelResolverProcessor' defined in class path resource [META-INF/amqp-facade.xml]: Cannot create inner bean 'com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler#1f93114f' of type [com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler] while setting constructor argument with key [Bean definition with name 'util:constant#2f0d810b': Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler#1f93114f': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.domainmodel.replication.ReplicationService com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler.replicationService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'replicationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.gateway.vcd.VcdGateway com.vmware.hcs.domainmodel.replication.impl.ReplicationServiceImpl.vcdGateway; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lsVcdGatewayFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.vmware.hcs.gateway.vcd.ConnectionFactory com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.connectionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:531)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:295)
... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hcsListener' defined in class path resource [META-INF/amqp-facade.xml]: Cannot resolve reference to bean 'tunnelResolverInfo' while setting constructor argument with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tunnelResolverInfo' defined in class path resource [META-INF/amqp-facade.xml]: Cannot resolve reference to bean 'tunnelResolverProcessor' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tunnelResolverProcessor' defined in class path resource [META-INF/amqp-facade.xml]: Cannot create inner bean 'com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler#1f93114f' of type [com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler] while setting constructor argument with key [Bean definition with name 'util:constant#2f0d810b': Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler#1f93114f': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.domainmodel.replication.ReplicationService com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler.replicationService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'replicationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.gateway.vcd.VcdGateway com.vmware.hcs.domainmodel.replication.impl.ReplicationServiceImpl.vcdGateway; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lsVcdGatewayFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.vmware.hcs.gateway.vcd.ConnectionFactory com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.connectionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:334)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:358)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:651)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:145)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1077)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:981)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:921)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:864)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:779)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:503)
... 15 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tunnelResolverInfo' defined in class path resource [META-INF/amqp-facade.xml]: Cannot resolve reference to bean 'tunnelResolverProcessor' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tunnelResolverProcessor' defined in class path resource [META-INF/amqp-facade.xml]: Cannot create inner bean 'com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler#1f93114f' of type [com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler] while setting constructor argument with key [Bean definition with name 'util:constant#2f0d810b': Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler#1f93114f': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.domainmodel.replication.ReplicationService com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler.replicationService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'replicationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.gateway.vcd.VcdGateway com.vmware.hcs.domainmodel.replication.impl.ReplicationServiceImpl.vcdGateway; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lsVcdGatewayFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.vmware.hcs.gateway.vcd.ConnectionFactory com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.connectionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:334)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:651)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:145)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1077)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:981)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
... 32 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tunnelResolverProcessor' defined in class path resource [META-INF/amqp-facade.xml]: Cannot create inner bean 'com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler#1f93114f' of type [com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler] while setting constructor argument with key [Bean definition with name 'util:constant#2f0d810b': Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler#1f93114f': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.domainmodel.replication.ReplicationService com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler.replicationService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'replicationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.gateway.vcd.VcdGateway com.vmware.hcs.domainmodel.replication.impl.ReplicationServiceImpl.vcdGateway; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lsVcdGatewayFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.vmware.hcs.gateway.vcd.ConnectionFactory com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.connectionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:287)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:384)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:165)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:651)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:145)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1077)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:981)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
... 44 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler#1f93114f': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.domainmodel.replication.ReplicationService com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler.replicationService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'replicationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.gateway.vcd.VcdGateway com.vmware.hcs.domainmodel.replication.impl.ReplicationServiceImpl.vcdGateway; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lsVcdGatewayFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.vmware.hcs.gateway.vcd.ConnectionFactory com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.connectionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276)
... 58 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.domainmodel.replication.ReplicationService com.vmware.hcs.facade.amqp.client.messageprocessor.impl.tunnel.handlers.ResolveReplicationGroupRequestHandler.replicationService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'replicationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.gateway.vcd.VcdGateway com.vmware.hcs.domainmodel.replication.impl.ReplicationServiceImpl.vcdGateway; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lsVcdGatewayFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.vmware.hcs.gateway.vcd.ConnectionFactory com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.connectionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:531)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:295)
... 62 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'replicationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.gateway.vcd.VcdGateway com.vmware.hcs.domainmodel.replication.impl.ReplicationServiceImpl.vcdGateway; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lsVcdGatewayFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.vmware.hcs.gateway.vcd.ConnectionFactory com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.connectionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:921)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:864)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:779)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:503)
... 64 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.vmware.hcs.gateway.vcd.VcdGateway com.vmware.hcs.domainmodel.replication.impl.ReplicationServiceImpl.vcdGateway; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lsVcdGatewayFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.vmware.hcs.gateway.vcd.ConnectionFactory com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.connectionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:531)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:295)
... 75 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lsVcdGatewayFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.vmware.hcs.gateway.vcd.ConnectionFactory com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.connectionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:377)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1057)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:921)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:864)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:779)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:503)
... 77 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.vmware.hcs.gateway.vcd.ConnectionFactory com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.connectionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:531)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:295)
... 97 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'restRequestConfigurer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:334)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:651)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:449)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1057)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:921)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:864)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:779)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:503)
... 99 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restRequestConfigurer' defined in class path resource [META-INF/vcd-gateway.xml]: Cannot resolve reference to bean 'expectedVcdThumbprint' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:334)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:651)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:145)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1077)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:981)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
... 114 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expectedVcdThumbprint' defined in class path resource [META-INF/vcd-gateway.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:603)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1057)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
... 126 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.String com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint() throws java.security.cert.CertificateEncodingException,java.security.NoSuchAlgorithmException] threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:181)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:592)
... 135 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at com.vmware.hcs.gateway.cis.impl.ls.LSGatewayImpl.getVcdApi(LSGatewayImpl.java:95)
at com.vmware.hcs.gateway.vcd.impl.LsVcdGatewayFactory.getVcdThumbprint(LsVcdGatewayFactory.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160)
... 136 more

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s