cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sowmya Krishnan (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CLOUDSTACK-3668) BeanCreationException while starting up jetty server if Database is configured on different server than Management server
Date Tue, 30 Jul 2013 11:49:49 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-3668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sowmya Krishnan closed CLOUDSTACK-3668.
---------------------------------------

    
> BeanCreationException while starting up jetty server if Database is configured on different
server than Management server
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3668
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3668
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Install and Setup
>    Affects Versions: 4.2.0
>         Environment: Latest 4.2, working on a98c0f5b89533e9e8d3ef671c994ff9528aa5665
commit id
>            Reporter: Sowmya Krishnan
>             Fix For: 4.2.0
>
>         Attachments: jetty.log.err
>
>
> Configure DB server on a different server other than management server and start up jetty
server. Fails to start up due to org.springframework.beans.factory.BeanCreationException
> For performance tests, need to configure DB server in a separate remote server. 
> Steps
> ====
> mvn clean install -P developer,systemvm
> Update hostnames to point to the remote db server in db.properties.override
> mvn -Pdeveloper -pl developer -Ddeploydb
> Start jetty server
> Fails with the following exception
> ERROR [web.context.ContextLoader] (main:) Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'dataMotionServiceImpl': Injection of autowired dependencies failed; nested exception is org.springfra
> mework.beans.factory.BeanCreationException: Could not autowire field: java.util.List
org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies; nested exception is
org.springfra
> mework.beans.factory.BeanCreationException: Error creating bean with name 'ancientDataMotionStrategy':
Injection of autowired dependencies failed; nested exception is org.springframework.be
> ans.factory.BeanCreationException: Could not autowire field: org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager
org.apache.cloudstack.storage.motion.AncientDataMotionStr
> ategy.cacheMgr; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'storageCacheManagerImpl': Injection of autowired dependencies
fai
> led; nested exception is org.springframework.beans.factory.BeanCreationException: Could
not autowire field: org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorithm
org.
> apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheReplacementAlgorithm;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean w
> ith name 'StorageCacheReplacementAlgorithm': 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.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
>         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.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
>         at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
>         at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
>         at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
>         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
>         at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
>         at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>         at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>         at org.mortbay.jetty.Server.doStart(Server.java:224)
>         at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
>         at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454)
>         at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)
>         at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
>         at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire
field: java.util.List org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'ancientDataMotionStrategy': Injection of autowired dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field:
org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'storageCacheManagerImpl': Injection of autowired dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field:
org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorithm org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheReplacementAlgorithm;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'StorageCacheReplacementAlgorithm': 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)
>         ... 56 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ancientDataMotionStrategy': Injection of autowired dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field:
org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'storageCacheManagerImpl': Injection of autowired dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field:
org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorithm org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheReplacementAlgorithm;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'StorageCacheReplacementAlgorithm': 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.findAutowireCandidates(DefaultListableBeanFactory.java:876)
>         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:776)
>         at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:735)
>         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
>         ... 58 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire
field: org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'storageCacheManagerImpl': Injection of autowired dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field:
org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorithm org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheReplacementAlgorithm;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'StorageCacheReplacementAlgorithm': 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)
>         ... 69 more
> I don't see the issue if DB server is localhost

--
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