incubator-cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devdeep Singh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-1468) Management server fail to start
Date Mon, 04 Mar 2013 13:29:13 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13592189#comment-13592189
] 

Devdeep Singh commented on CLOUDSTACK-1468:
-------------------------------------------

In commit 8e360f342d6e72ad3355008456bec13904fe3e2b, the file Transaction.java was updated
and the code to check if encryption should be used was commented out. Because of this when
the db.properties file is loaded we are always assuming all the fields to be unencrypted.

Putting the code back to check if encryption is used should be straight forward; just need
to uncomment the two lines that were commented out. However, need to confirm the reason why
the two lines were commented out in the first place.

Assigning the bug to Edison as he had made the change.
                
> Management server fail to start
> -------------------------------
>
>                 Key: CLOUDSTACK-1468
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1468
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>            Reporter: sadhu suresh
>            Assignee: edison su
>            Priority: Blocker
>             Fix For: 4.2.0
>
>
> latest Master build has broken.MS fail to  start and it failed with below exception.
> pleteServlet,domainDaoImpl,dummyHostDiscoverer,resourceManagerImpl,componentContext,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.aspectj.AspectJPointcutAdvisor#0,captureAnyMethod,org.springframework.aop.aspectj.AspectJPointcutAdvisor#1,captureEventMethod,transactionContextBuilder,actionEventInterceptor,onwireRegistry,messageSerializer,transportProvider,rpcProvider,eventBus,premiumDatabaseUpgradeChecker,managementServerImpl,clusterManagerImpl,clusteredAgentManagerImpl,clusteredVirtualMachineManagerImpl,highAvailabilityManagerExtImpl,userVmManagerImpl,consoleProxyManagerImpl,securityGroupManagerImpl2,premiumSecondaryStorageManagerImpl,userVmDaoImpl,ipv6AddressManagerImpl,VmwareManager,NetappManager,BaremetalManager,BaremetalDhcpManager,BaremetalKickStartPxeService,BaremetalPingPxeService,BaremetalPxeManager,Ovs,BareMetalDhcp,BareMetalPxe,BareMetalUserdata,SecurityGroupProvider,VirtualRouter,VpcVirtualRouter,NiciraNvp,JuniperSRX,Netscaler,F5BigIP,CiscoNexus1000vVSM,FirstFitRouting,LocalStoragePoolAllocator,UserConcentratedAllocator,ConsoleProxyAllocator,StaticRoleBasedAPIAccessChecker,ExteralIpAddressAllocator,BareMetalTemplateAdapter,MD5UserAuthenticator,LDAPUserAuthenticator,CheckOnAgentInvestigator,XenServerInvestigator,UserVmDomRInvestigator,ManagementIPSystemVMInvestigator,VmwareInvestigator,XenServerFencer,KVMFencer,OvmFencer,VmwareFencer,XcpServerDiscoverer,SecondaryStorageDiscoverer,KvmServerDiscoverer,BareMetalDiscoverer,HypervServerDiscoverer,OvmDiscoverer,vmwareServerDiscoverer,FirstFitPlanner,UserDispersingPlanner,UserConcentratedPodPlanner,BareMetalPlanner,StorageNetworkGuru,ExternalGuestNetworkGuru,PublicNetworkGuru,PodBasedNetworkGuru,ControlNetworkGuru,DirectNetworkGuru,DirectPodBasedNetworkGuru,OvsGuestNetworkGuru,PrivateNetworkGuru,NiciraNvpGuestNetworkGuru,XenServerGuru,KVMGuru,OvmGuru,VMwareGuru,BaremetalGuru,BaremetalPlannerSelector,HypervisorPlannerSelector,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0];
root of factory hierarchy
> 2013-03-01 08:19:57,142 ERROR [web.context.ContextLoader] (ContainerBackgroundProcessor[StandardEngine[Catalina]]:null)
Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'apiServlet': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: com.cloud.api.ApiServer com.cloud.api.ApiServlet._apiServer; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'apiServer': Invocation of init method failed; nested exception is com.cloud.utils.exception.CloudRuntimeException:
DB Exception on: null
>         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
>         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
>         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
>         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
>         at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
>         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
>         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
>         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
>         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
>         at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1345)
>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
>         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
>         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
>         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
>         at java.lang.Thread.run(Thread.java:679)
> Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire
field: com.cloud.api.ApiServer com.cloud.api.ApiServlet._apiServer; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'apiServer': Invocation of init method failed; nested exception
is com.cloud.utils.exception.CloudRuntimeException: DB Exception on: null
>         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
>         at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
>         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
>         ... 29 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'apiServer': Invocation of init method failed; nested exception is com.cloud.utils.exception.CloudRuntimeException:
DB Exception on: null
>         at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:135)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
>         at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:876)
>         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:818)
>         at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:735)
>         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
>         ... 31 more
> Caused by: com.cloud.utils.exception.CloudRuntimeException: DB Exception on: null
>         at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:412)
>         at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:347)
>         at com.cloud.utils.db.GenericDaoBase.search(GenericDaoBase.java:331)
>         at com.cloud.utils.db.GenericDaoBase.search(GenericDaoBase.java:1233)
>         at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
>         at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
>         at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:48)
>         at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
>         at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
>         at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
>         at com.cloud.api.ApiServer.init(ApiServer.java:187)
>         at com.cloud.api.ApiServer.initComponent(ApiServer.java:176)
>         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:616)
>         at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:346)
>         at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:299)
>         at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:132)
>         ... 43 more
> Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/cloud?autoReconnect=true&prepStmtCacheSize=517&cachePrepStmts=true
>         at java.sql.DriverManager.getConnection(DriverManager.java:640)
>         at java.sql.DriverManager.getConnection(DriverManager.java:200)
>         at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
>         at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
>         at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
>         at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
>         at com.cloud.utils.db.Transaction.getConnection(Transaction.java:550)
>         at com.cloud.utils.db.Transaction.prepareStatement(Transaction.java:461)
>         at com.cloud.utils.db.Transaction.prepareAutoCloseStatement(Transaction.java:454)
>         at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:385)
>         ... 72 more
> or.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
>         at com.cloud.api.ApiServer.init(ApiServer.java:187)
>         at com.cloud.api.ApiServer.initComponent(ApiServer.java:176)
>         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:616)
>         at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:346)
>         at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:299)
>         at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:132)
>         ... 43 more
> Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/cloud?autoReconnect=true&prepStmtCacheSize=517&cachePrepStmts=true
>         at java.sql.DriverManager.getConnection(DriverManager.java:640)
>         at java.sql.DriverManager.getConnection(DriverManager.java:200)
>         at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
>         at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
>         at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
>         at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
>         at com.cloud.utils.db.Transaction.getConnection(Transaction.java:550)
>         at com.cloud.utils.db.Transaction.prepareStatement(Transaction.java:461)
>         at com.cloud.utils.db.Transaction.p

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message