Flex and Java Communication error

Source: Internet
Author: User
Tags addchild

1. Error description

11-30 18:15:52 ERROR [localhost-startstop-1] Org.springframework.web.servlet.FrameworkServlet.initServletBean ( frameworkservlet.java:468)-Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating Bean with Name ' Workcommonservicecontroller ': Injection of autowired dependencies failed; Nested exception is org.springframework.beans.factory.BeanCreationException:Could not Autowire field:private Com.romeo.backbone.services.WorkCommonService Com.romeo.backbone.flex.WorkCommonServiceController.workCommonService; Nested exception is Org.springframework.beans.factory.NoSuchBeanDefinitionException:No qualifying bean of type [ Com.romeo.backbone.services.WorkCommonService] found for dependency:expected at least 1 bean which qualifies as Autowire Candidate for this dependency. Dependency annotations: {@org. springframework.beans.factory.annotation.Autowired (required=true)}at Org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProceSsor.postprocesspropertyvalues (autowiredannotationbeanpostprocessor.java:288) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( ABSTRACTAUTOWIRECAPABLEBEANFACTORY.JAVA:1120) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:522) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:461) 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:626) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:932) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:479) at Org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext ( frameworkservlet.java:652) at Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext ( frameworkservlet.java:600) at Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext ( frameworkservlet.java:666) at Org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext ( frameworkservlet.java:519) at Org.springframework.web.servlet.FrameworkServlet.initServletBean ( frameworkservlet.java:460) at Org.springframework.web.servlet.HttpServletBean.init (httpservletbean.java:136) at Javax.servlet.GenericServlet.init (genericservlet.java:160) at Org.apache.catalina.core.Standardwrapper.initservlet (standardwrapper.java:1266) at Org.apache.catalina.core.StandardWrapper.loadServlet ( standardwrapper.java:1185) at Org.apache.catalina.core.StandardWrapper.load (standardwrapper.java:1080) at Org.apache.catalina.core.StandardContext.loadOnStartup (standardcontext.java:5027) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5314) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:633) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1105) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1664) at Java.util.concurrent.executors$runnableadapter.call (executors.java:439) at java.util.concurrent.futuretask$ Sync.innerrun (futuretask.java:303) at Java.util.concUrrent. Futuretask.run (futuretask.java:138) at Java.util.concurrent.threadpoolexecutor$worker.runtask ( threadpoolexecutor.java:895) at Java.util.concurrent.threadpoolexecutor$worker.run (ThreadPoolExecutor.java:918) At Java.lang.Thread.run (thread.java:662) caused by:org.springframework.beans.factory.BeanCreationException:Could Not Autowire field:private Com.romeo.backbone.services.WorkCommonService Com.romeo.backbone.flex.WorkCommonServiceController.workCommonService; Nested exception is Org.springframework.beans.factory.NoSuchBeanDefinitionException:No qualifying bean of type [ Com.romeo.backbone.services.WorkCommonService] found for dependency:expected at least 1 bean which qualifies as Autowire Candidate for this dependency. Dependency annotations: {@org. springframework.beans.factory.annotation.Autowired (required=true)}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) ... morecaused by:org.springframework.beans.factory.NoSuchBeanDefinitionException:No Qualifying Bean of type [ Com.romeo.backbone.services.WorkCommonService] found for dependency:expected at least 1 bean which qualifies as Autowire Candidate for this dependency. Dependency annotations: {@org. springframework.beans.factory.annotation.Autowired (required=true)}at Org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException ( defaultlistablebeanfactory.java:967) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency ( defaultlistablebeanfactory.java:837) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency ( Defaultlistablebeanfactory.java:749) at org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$ Autowiredfieldelement.inject (autowiredannotationbeanpostprocessor.java:486) ... more2014-11-30 18:15:52 org.apache.catalina.core.ApplicationContext Log Critical: StandardWrapper.Throwableorg.springframework.beans.factory.BeanCreationException:Error creating bean with Name ' Workcommonservicecontroller ': Injection of autowired dependencies failed; Nested exception is org.springframework.beans.factory.BeanCreationException:Could not Autowire field:private Com.romeo.backbone.services.WorkCommonService Com.romeo.backbone.flex.WorkCommonServiceController.workCommonService; Nested exception is Org.springframework.beans.factory.NoSuchBeanDefinitionException:No qualifying bean of type [ Com.romeo.backbone.services.WorkCommonService] found for dependency:expected at least 1 bean which qualifies as Autowire Candidate for this dependency. Dependency annotations: {@org. springframework.beans.factory.annotatioN.autowired (required=true)}at Org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues ( autowiredannotationbeanpostprocessor.java:288) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( ABSTRACTAUTOWIRECAPABLEBEANFACTORY.JAVA:1120) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:522) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:461) 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:626) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:932) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:479) at Org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext ( frameworkservlet.java:652) at Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext ( frameworkservlet.java:600) at Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext ( frameworkservlet.java:666) at Org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext ( frameworkservlet.java:519) at Org.springframework.web.servlet.FrameworkServlet.initServletBean ( frameworkservlet.java:460) at Org.springframework.web.servlet.HttpServletBean.init (httpservletbean.java:136) at Javax.servlet.GenericServlet.init (genericservlet.java:160) at Org.apache.catalina.core.StandardWrapper.initServlet (standardwrapper.java:1266) at Org.apache.catalina.core.StandardWrapper.loadServlet (standardwrapper.java:1185) at Org.apache.catalina.core.StandardWrapper.load (standardwrapper.java:1080) at Org.apache.catalina.core.StandardContext.loadOnStartup (standardcontext.java:5027) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5314) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:633) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1105) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1664) at Java.util.concurrent.executors$runnableadapter.calL (executors.java:439) at Java.util.concurrent.futuretask$sync.innerrun (futuretask.java:303) at Java.util.concurrent.FutureTask.run (futuretask.java:138) at java.util.concurrent.threadpoolexecutor$ Worker.runtask (threadpoolexecutor.java:895) at Java.util.concurrent.threadpoolexecutor$worker.run ( threadpoolexecutor.java:918) at Java.lang.Thread.run (thread.java:662) caused by: Org.springframework.beans.factory.BeanCreationException:Could not Autowire field:private Com.romeo.backbone.services.WorkCommonService Com.romeo.backbone.flex.WorkCommonServiceController.workCommonService; Nested exception is Org.springframework.beans.factory.NoSuchBeanDefinitionException:No qualifying bean of type [ Com.romeo.backbone.services.WorkCommonService] found for dependency:expected at least 1 bean which qualifies as Autowire Candidate for this dependency. Dependency annotations: {@org. springframework.beans.factory.annotation.Autowired (required=true)}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) ... morecaused by:org.springframework.beans.factory.NoSuchBeanDefinitionException:No Qualifying Bean of type [ Com.romeo.backbone.services.WorkCommonService] found for dependency:expected at least 1 bean which qualifies as Autowire Candidate for this dependency. Dependency annotations: {@org. springframework.beans.factory.annotation.Autowired (required=true)}at Org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException ( defaultlistablebeanfactory.java:967) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency ( defaultlistablebeanfactory.java:837) at Org.spriNgframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (Defaultlistablebeanfactory.java : 749) at org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$ Autowiredfieldelement.inject (autowiredannotationbeanpostprocessor.java:486) ... more2014-11-30 18:15:52 org.apache.catalina.core.StandardContext loadonstartup severity: servlet/threw load () Exceptionorg.springframework.beans.factory.NoSuchBeanDefinitionException:No qualifying Bean of type [ Com.romeo.backbone.services.WorkCommonService] found for dependency:expected at least 1 bean which qualifies as Autowire Candidate for this dependency. Dependency annotations: {@org. springframework.beans.factory.annotation.Autowired (required=true)}at Org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException ( defaultlistablebeanfactory.java:967) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency ( Defaultlistablebeanfactory.java:837) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency ( defaultlistablebeanfactory.java:749) at Org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredfieldelement.inject (autowiredannotationbeanpostprocessor.java:486) at Org.springframework.beans.factory.annotation.InjectionMetadata.inject (injectionmetadata.java:87) at Org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues ( autowiredannotationbeanpostprocessor.java:285) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( ABSTRACTAUTOWIRECAPABLEBEANFACTORY.JAVA:1120) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:522) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:461) 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:626) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:932) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:479) at Org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext ( frameworkservlet.java:652) at Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext ( frameworkservlet.java:600)At Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext (frameworkservlet.java:666) at Org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext (frameworkservlet.java:519) at Org.springframework.web.servlet.FrameworkServlet.initServletBean (frameworkservlet.java:460) at Org.springframework.web.servlet.HttpServletBean.init (httpservletbean.java:136) at Javax.servlet.GenericServlet.init (genericservlet.java:160) at Org.apache.catalina.core.StandardWrapper.initServlet (standardwrapper.java:1266) at Org.apache.catalina.core.StandardWrapper.loadServlet (standardwrapper.java:1185) at Org.apache.catalina.core.StandardWrapper.load (standardwrapper.java:1080) at Org.apache.catalina.core.StandardContext.loadOnStartup (standardcontext.java:5027) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5314) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (Containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:633) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1105) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1664) at Java.util.concurrent.executors$runnableadapter.call (executors.java:439) at java.util.concurrent.futuretask$ Sync.innerrun (futuretask.java:303) at Java.util.concurrent.FutureTask.run (futuretask.java:138) at Java.util.concurrent.threadpoolexecutor$worker.runtask (threadpoolexecutor.java:895) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:918) at Java.lang.Thread.run ( thread.java:662) 2014-11-30 18:15:52 org.apache.catalina.startup.HostConfig deploydirectory

2. Cause of error


3. Solutions

Flex and Java Communication error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.