cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suresh Sadhu <Suresh.Sa...@citrix.com>
Subject RE: [QA]question on cloudstack-usage service
Date Mon, 15 Apr 2013 05:43:53 GMT
Wido/Kelven,

This issue  noticed on master build please find few more details below:.
 http://jenkins-ccp.citrix.com/job/ASF-build-master-nonoss-rhel63/211/


root@centos63 usage]# which jsvc
/usr/bin/jsvc
[root@centos63 usage]# /usr/bin/jsvc status
15/04/2013 06:53:11 14280 jsvc error: Cannot locate Java Home
Manually set the JAVA_HOME classpath but still see the problem

[root@centos63 usage]# export JAVA_HOME=/usr/lib/jvm/jre-1.6.0
[root@centos63 usage]# echo $JAVA_HOME
/usr/lib/jvm/jre-1.6.0
[root@centos63 usage]# /usr/bin/jsvc status
[root@centos63 usage]# /usr/bin/jsvc start

Content of  Cloudstack-usage file (FYI)
--------------------------------------------------------
SCP=""
DCP=""
UCP=`ls /usr/share/cloudstack-usage/cloud-usage-*.jar`":"`ls /usr/share/cloudstack-usage/lib/*
| tr '\n' ':'`
JCP="/usr/share/java/commons-daemon.jar"

# We need to append the JSVC daemon JAR to the classpath
# AgentShell implements the JSVC daemon methods
export CLASSPATH="$SCP:$DCP:$UCP:$JCP:/etc/cloudstack/usage"


Its looks like it's similar to the following issue:

 https://issues.apache.org/jira/browse/CLOUDSTACK-1746


regards
sadhu




-----Original Message-----
From: Kelven Yang [mailto:kelven.yang@citrix.com] 
Sent: 13 April 2013 00:11
To: dev@cloudstack.apache.org
Subject: Re: [QA]question on cloudstack-usage service

It looks like to UsageDao has some trouble to initialize itself. On which branch does this
problem happen?

Kelven

On 4/12/13 11:05 AM, "Wido den Hollander" <wido@widodh.nl> wrote:

>
>
>On 04/12/2013 01:33 PM, Suresh Sadhu wrote:
>> HI,
>>
>>
>> Any idea why usage server is stopped with unexpected exception(is 
>>there any issue exits/logged already),do we need to add any additional 
>>packages/rpm/configurations other than installing the usage server 
>>monitor"
>> Seen this issue on master build.
>>
>
>Hmm, that is weird. Could you print the classpath what is submitted to 
>the JSVC process?
>
>Wondering what it is generating.
>
>Wido
>
>>
>> [root@rhel631 ~]# service cloudstack-usage start
>> Starting CloudStack Usage Monitor cloudstack-usage         [  OK  ]
>> [root@rhel631 ~]# service cloudstack-usage status cloudstack-usage 
>> (pid  20999) is running...
>> [root@rhel631 ~]# service cloudstack-usage status cloudstack-usage is 
>> stopped
>>
>>
>> Content of cloudstack-usage.err:
>> *************************
>>
>> log4j:WARN No appenders could be found for logger 
>>(org.springframework.core.env.StandardEnvironment).
>> log4j:WARN Please initialize the log4j system properly.
>> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
>>for more info.
>> java.lang.reflect.InvocationTargetException
>>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>          at
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
>>ava
>>:57)
>>          at
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
>>orI
>>mpl.java:43)
>>          at java.lang.reflect.Method.invoke(Method.java:616)
>>          at
>>org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java
>>:17
>>7)
>> 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-server-4.2.0-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.AutowiredAnnotationBeanPo
>>stP 
>>rocessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcesso
>>r.j
>>ava:287)
>>          at
>>org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
>>act
>>ory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
>>          at
>>org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
>>act
>>ory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
>>          at
>>org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
>>act
>>ory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>>          at
>>org.springframework.beans.factory.support.AbstractBeanFactory$1.getObj
>>ect
>>(AbstractBeanFactory.java:294)
>>          at
>>org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
>>.ge
>>tSingleton(DefaultSingletonBeanRegistry.java:225)
>>          at
>>org.springframework.beans.factory.support.AbstractBeanFactory.doGetBea
>>n(A
>>bstractBeanFactory.java:291)
>>          at
>>org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
>>Abs
>>tractBeanFactory.java:193)
>>          at
>>org.springframework.beans.factory.support.DefaultListableBeanFactory.p
>>reI
>>nstantiateSingletons(DefaultListableBeanFactory.java:609)
>>          at
>>org.springframework.context.support.AbstractApplicationContext.finishB
>>ean
>>FactoryInitialization(AbstractApplicationContext.java:918)
>>          at
>>org.springframework.context.support.AbstractApplicationContext.refresh
>>(Ab
>>stractApplicationContext.java:469)
>>          at
>>org.springframework.context.support.ClassPathXmlApplicationContext.<in
>>it>
>>(ClassPathXmlApplicationContext.java:139)
>>          at
>>org.springframework.context.support.ClassPathXmlApplicationContext.<in
>>it>
>>(ClassPathXmlApplicationContext.java:83)
>>          at com.cloud.usage.UsageServer.start(UsageServer.java:52)
>>          ... 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-server-4.2.0-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
>> @
>>


Mime
View raw message