org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftphg2Application': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpMessageSource' defined in com.ftp.hg.Ftphg2Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.core.MessageSource]: Circular reference involving containing bean 'ftphg2Application' - consider declaring the factory method as static for independence from its containing instance. Factory method 'ftpMessageSource' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpInboundFileSynchronizer' defined in com.ftp.hg.Ftphg2Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizer]: Circular reference involving containing bean 'ftphg2Application' - consider declaring the factory method as static for independence from its containing instance. Factory method 'ftpInboundFileSynchronizer' threw exception; nested exception is java.lang.NoSuchFieldError: EXPRESSION_PARSER

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Spring FTP Inbound channel Adapter Error
    via Stack Overflow by viruskimera
    ,
    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftphg2Application': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpMessageSource' defined in com.ftp.hg.Ftphg2Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.core.MessageSource]: Circular reference involving containing bean 'ftphg2Application' - consider declaring the factory method as static for independence from its containing instance. Factory method 'ftpMessageSource' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpInboundFileSynchronizer' defined in com.ftp.hg.Ftphg2Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizer]: Circular reference involving containing bean 'ftphg2Application' - consider declaring the factory method as static for independence from its containing instance. Factory method 'ftpInboundFileSynchronizer' threw exception; nested exception is java.lang.NoSuchFieldError: EXPRESSION_PARSER at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:751)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at com.ftp.hg.Ftphg2Application.main(Ftphg2Application.java:33)[classes/:na] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpMessageSource' defined in com.ftp.hg.Ftphg2Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.core.MessageSource]: Circular reference involving containing bean 'ftphg2Application' - consider declaring the factory method as static for independence from its containing instance. Factory method 'ftpMessageSource' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpInboundFileSynchronizer' defined in com.ftp.hg.Ftphg2Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizer]: Circular reference involving containing bean 'ftphg2Application' - consider declaring the factory method as static for independence from its containing instance. Factory method 'ftpInboundFileSynchronizer' threw exception; nested exception is java.lang.NoSuchFieldError: EXPRESSION_PARSER at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1128)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1023)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.integration.config.annotation.AbstractMethodAnnotationPostProcessor.resolveTargetBeanFromMethodWithBeanAnnotation(AbstractMethodAnnotationPostProcessor.java:335)[spring-integration-core-4.0.1.RELEASE.jar:na] at org.springframework.integration.config.annotation.InboundChannelAdapterAnnotationPostProcessor.createMessageSource(InboundChannelAdapterAnnotationPostProcessor.java:75)[spring-integration-core-4.0.1.RELEASE.jar:na] at org.springframework.integration.config.annotation.InboundChannelAdapterAnnotationPostProcessor.postProcess(InboundChannelAdapterAnnotationPostProcessor.java:61)[spring-integration-core-4.0.1.RELEASE.jar:na] at org.springframework.integration.config.annotation.MessagingAnnotationPostProcessor$1.doWith(MessagingAnnotationPostProcessor.java:150)[spring-integration-core-4.0.1.RELEASE.jar:na] at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:530)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:537)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.integration.config.annotation.MessagingAnnotationPostProcessor.postProcessAfterInitialization(MessagingAnnotationPostProcessor.java:130)[spring-integration-core-4.0.1.RELEASE.jar:na] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:422)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1588)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] ... 13 more Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.core.MessageSource]: Circular reference involving containing bean 'ftphg2Application' - consider declaring the factory method as static for independence from its containing instance. Factory method 'ftpMessageSource' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpInboundFileSynchronizer' defined in com.ftp.hg.Ftphg2Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizer]: Circular reference involving containing bean 'ftphg2Application' - consider declaring the factory method as static for independence from its containing instance. Factory method 'ftpInboundFileSynchronizer' threw exception; nested exception is java.lang.NoSuchFieldError: EXPRESSION_PARSER at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] ... 31 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpInboundFileSynchronizer' defined in com.ftp.hg.Ftphg2Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizer]: Circular reference involving containing bean 'ftphg2Application' - consider declaring the factory method as static for independence from its containing instance. Factory method 'ftpInboundFileSynchronizer' threw exception; nested exception is java.lang.NoSuchFieldError: EXPRESSION_PARSER at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1128)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1023)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:381)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at com.ftp.hg.Ftphg2Application$$EnhancerBySpringCGLIB$$aa602000.ftpInboundFileSynchronizer(<generated>)[classes/:na] at com.ftp.hg.Ftphg2Application.ftpMessageSource(Ftphg2Application.java:59)[classes/:na] at com.ftp.hg.Ftphg2Application$$EnhancerBySpringCGLIB$$aa602000.CGLIB$ftpMessageSource$3(<generated>)[classes/:na] at com.ftp.hg.Ftphg2Application$$EnhancerBySpringCGLIB$$aa602000$$FastClassBySpringCGLIB$$d1c2c48.invoke(<generated>)[classes/:na] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at com.ftp.hg.Ftphg2Application$$EnhancerBySpringCGLIB$$aa602000.ftpMessageSource(<generated>)[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_73] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_73] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_73] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_73] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] ... 32 more Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizer]: Circular reference involving containing bean 'ftphg2Application' - consider declaring the factory method as static for independence from its containing instance. Factory method 'ftpInboundFileSynchronizer' threw exception; nested exception is java.lang.NoSuchFieldError: EXPRESSION_PARSER at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] ... 53 more Caused by: java.lang.NoSuchFieldError: EXPRESSION_PARSER at org.springframework.integration.file.DefaultFileNameGenerator.<init>(DefaultFileNameGenerator.java:45)[spring-integration-file-4.3.2.RELEASE.jar:4.3.2.RELEASE] at org.springframework.integration.file.remote.RemoteFileTemplate.<init>(RemoteFileTemplate.java:81)[spring-integration-file-4.3.2.RELEASE.jar:4.3.2.RELEASE] at org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer.<init>(AbstractInboundFileSynchronizer.java:113)[spring-integration-file-4.3.2.RELEASE.jar:4.3.2.RELEASE] at org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizer.<init>(FtpInboundFileSynchronizer.java:43)[spring-integration-ftp-4.3.2.RELEASE.jar:4.3.2.RELEASE] at com.ftp.hg.Ftphg2Application.ftpInboundFileSynchronizer(Ftphg2Application.java:48)[classes/:na] at com.ftp.hg.Ftphg2Application$$EnhancerBySpringCGLIB$$aa602000.CGLIB$ftpInboundFileSynchronizer$2(<generated>)[classes/:na] at com.ftp.hg.Ftphg2Application$$EnhancerBySpringCGLIB$$aa602000$$FastClassBySpringCGLIB$$d1c2c48.invoke(<generated>)[classes/:na] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at com.ftp.hg.Ftphg2Application$$EnhancerBySpringCGLIB$$aa602000.ftpInboundFileSynchronizer(<generated>)[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_73] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_73] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_73] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_73] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] ... 54 more
    No Bugmate found.