cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronalds D <roni...@gmail.com>
Subject Cloudstack 4.5.1 and usage service
Date Tue, 07 Apr 2015 10:13:17 GMT
Hello,
I recently installed Cloudstack 4.5.1 from jenkins.
The operating system for management system is Centos 6.6 x64
Then, I also installed usage server and started the service. After that I
found out that the service actually is down and can't be started. I checked
out error log for usage server and there was plenty of exceptions. I
haven't enabled any encryption, or other fancy stuff.
Any ideas how to fix this ?



java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'portForwardingUsageParser': Injection of autowired
dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not autowire
field: private com.cloud.usage.dao.UsageDao
com.cloud.usage.parser.PortForwardingUsageParser._usageDao; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'usageDaoImpl' defined in URL
[jar:file:/usr/share/cloudstack-usage/lib/cloud-engine-schema-4.5.1-SNAPSHOT.jar!/com/cloud/usage/dao/UsageDaoImpl.class]:
BeanPostProcessor before instantiation of bean failed; nested exception is
net.sf.cglib.core.CodeGenerationException:
java.lang.ExceptionInInitializerError-->null
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1116)
        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:295)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
        at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
        at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
        at com.cloud.usage.UsageServer.start(UsageServer.java:58)
        ... 5 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could
not autowire field: private com.cloud.usage.dao.UsageDao
com.cloud.usage.parser.PortForwardingUsageParser._usageDao; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'usageDaoImpl' defined in URL
[jar:file:/usr/share/cloudstack-usage/lib/cloud-engine-schema-4.5.1-SNAPSHOT.jar!/com/cloud/usage/dao/UsageDaoImpl.class]:
BeanPostProcessor before instantiation of bean failed; nested exception is
net.sf.cglib.core.CodeGenerationException:
java.lang.ExceptionInInitializerError-->null
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:514)
        at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
        ... 18 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'usageDaoImpl' defined in URL
[jar:file:/usr/share/cloudstack-usage/lib/cloud-engine-schema-4.5.1-SNAPSHOT.jar!/com/cloud/usage/dao/UsageDaoImpl.class]:
BeanPostProcessor before instantiation of bean failed; nested exception is
net.sf.cglib.core.CodeGenerationException:
java.lang.ExceptionInInitializerError-->null
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:454)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:912)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:855)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:770)
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:486)
        ... 20 more
Caused by: net.sf.cglib.core.CodeGenerationException:
java.lang.ExceptionInInitializerError-->null
        at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:235)
        at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:220)
        at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:216)
        at
net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:643)
        at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:538)
        at
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:225)
        at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
        at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
        at
com.cloud.utils.component.ComponentInstantiationPostProcessor.postProcessBeforeInstantiation(ComponentInstantiationPostProcessor.java:92)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:890)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:862)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:448)
        ... 28 more
Caused by: java.lang.ExceptionInInitializerError
        at
com.cloud.utils.db.TransactionContextBuilder.interceptStart(TransactionContextBuilder.java:49)
        at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:116)
        at
com.cloud.usage.dao.UsageDaoImpl_EnhancerByCloudStack_b2f262f5.createPartialSelectSql(<generated>)
        at com.cloud.utils.db.GenericDaoBase.<init>(GenericDaoBase.java:230)
        at com.cloud.usage.dao.UsageDaoImpl.<init>(UsageDaoImpl.java:78)
        at
com.cloud.usage.dao.UsageDaoImpl_EnhancerByCloudStack_b2f262f5.<init>(<generated>)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:228)
        ... 39 more
Caused by: com.cloud.utils.exception.CloudRuntimeException: key File
containing secret key not found in the classpath:
        at
com.cloud.utils.crypt.EncryptionSecretKeyChecker.check(EncryptionSecretKeyChecker.java:84)
        at
com.cloud.utils.db.DbProperties.getDbProperties(DbProperties.java:80)
        at
com.cloud.utils.db.TransactionLegacy.<clinit>(TransactionLegacy.java:1023)
        ... 50 more
 jsvc.exec error: Cannot start daemon
 jsvc.exec error: Service exit with a return value of 5

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message