Hi,

I am building an application, which I develop and test with eclipse. My problem is, that I always get an exception "Failed to process import candidates for configuration class" and I don't know what to do to resolve the problem.

Suggestion are welcomed!

Regards
Skydog

This is the exception log:


Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Sep 26, 2015 7:53:55 PM org.springframework.context.support.ClassPathXmlAp plicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlAp plicationContext@69f070e8: startup date [Sat Sep 26 19:53:55 CEST 2015]; root of context hierarchy
Sep 26, 2015 7:53:55 PM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [SpringConfig.xml]
It prints correctly the message!!
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See SLF4J Error Codes for further details.
Sep 26, 2015 7:53:55 PM org.springframework.context.annotation.AnnotationC onfigApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.annotation.AnnotationC onfigApplicationContext@47a2c1d8: startup date [Sat Sep 26 19:53:55 CEST 2015]; root of context hierarchy
Sep 26, 2015 7:53:56 PM org.springframework.context.annotation.AnnotationC onfigApplicationContext refresh
WARNING: Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanDefinitionSt oreException: Failed to process import candidates for configuration class [org.ethereum.config.DefaultConfig]; nested exception is java.io.FileNotFoundException: class path resource [io/netty/handler/codec/ByteToMessageCodec.class] cannot be opened because it does not exist
at org.springframework.context.annotation.Configurati onClassParser.processImports(ConfigurationClassPar ser.java:518)
at org.springframework.context.annotation.Configurati onClassParser.doProcessConfigurationClass(Configur ationClassParser.java:277)
at org.springframework.context.annotation.Configurati onClassParser.processConfigurationClass(Configurat ionClassParser.java:231)
at org.springframework.context.annotation.Configurati onClassParser.parse(ConfigurationClassParser.java: 198)
at org.springframework.context.annotation.Configurati onClassParser.parse(ConfigurationClassParser.java: 167)
at org.springframework.context.annotation.Configurati onClassPostProcessor.processConfigBeanDefinitions( ConfigurationClassPostProcessor.java:321)
at org.springframework.context.annotation.Configurati onClassPostProcessor.postProcessBeanDefinitionRegi stry(ConfigurationClassPostProcessor.java:243)
at org.springframework.context.support.PostProcessorR egistrationDelegate.invokeBeanDefinitionRegistryPo stProcessors(PostProcessorRegistrationDelegate.jav a:273)
at org.springframework.context.support.PostProcessorR egistrationDelegate.invokeBeanFactoryPostProcessor s(PostProcessorRegistrationDelegate.java:98)
at org.springframework.context.support.AbstractApplic ationContext.invokeBeanFactoryPostProcessors(Abstr actApplicationContext.java:673)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:519)
at org.springframework.context.annotation.AnnotationC onfigApplicationContext.<init>(AnnotationConfigApp licationContext.java:84)
at org.ethereum.facade.EthereumFactory.createEthereum (EthereumFactory.java:46)
at org.ethereum.facade.EthereumFactory.createEthereum (EthereumFactory.java:37)
at com.fsco.eth.bp.core.EthereumBean.start(EthereumBe an.java:23)
at com.fsco.eth.bp.core.TestFS001.main(TestFS001.java :33)
Caused by: java.io.FileNotFoundException: class path resource [io/netty/handler/codec/ByteToMessageCodec.class] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getI nputStream(ClassPathResource.java:172)
at org.springframework.core.type.classreading.SimpleM etadataReader.<init>(SimpleMetadataReader.java:50)
at org.springframework.core.type.classreading.SimpleM etadataReaderFactory.getMetadataReader(SimpleMetad ataReaderFactory.java:98)
at org.springframework.core.type.classreading.Caching MetadataReaderFactory.getMetadataReader(CachingMet adataReaderFactory.java:102)
at org.springframework.core.type.classreading.SimpleM etadataReaderFactory.getMetadataReader(SimpleMetad ataReaderFactory.java:93)
at org.springframework.context.annotation.Configurati onClassParser.asSourceClass(ConfigurationClassPars er.java:620)
at org.springframework.context.annotation.Configurati onClassParser$SourceClass.getSuperClass(Configurat ionClassParser.java:800)
at org.springframework.context.annotation.Configurati onClassParser.doProcessConfigurationClass(Configur ationClassParser.java:313)
at org.springframework.context.annotation.Configurati onClassParser.processConfigurationClass(Configurat ionClassParser.java:231)
at org.springframework.context.annotation.Configurati onClassParser.parse(ConfigurationClassParser.java: 190)
at org.springframework.context.annotation.Configurati onClassParser.doProcessConfigurationClass(Configur ationClassParser.java:271)
at org.springframework.context.annotation.Configurati onClassParser.processConfigurationClass(Configurat ionClassParser.java:231)
at org.springframework.context.annotation.Configurati onClassParser.processImports(ConfigurationClassPar ser.java:509)
... 15 more

Exception in thread "main" org.springframework.beans.factory.BeanDefinitionSt oreException: Failed to process import candidates for configuration class [org.ethereum.config.DefaultConfig]; nested exception is java.io.FileNotFoundException: class path resource [io/netty/handler/codec/ByteToMessageCodec.class] cannot be opened because it does not exist
at org.springframework.context.annotation.Configurati onClassParser.processImports(ConfigurationClassPar ser.java:518)
at org.springframework.context.annotation.Configurati onClassParser.doProcessConfigurationClass(Configur ationClassParser.java:277)
at org.springframework.context.annotation.Configurati onClassParser.processConfigurationClass(Configurat ionClassParser.java:231)
at org.springframework.context.annotation.Configurati onClassParser.parse(ConfigurationClassParser.java: 198)
at org.springframework.context.annotation.Configurati onClassParser.parse(ConfigurationClassParser.java: 167)
at org.springframework.context.annotation.Configurati onClassPostProcessor.processConfigBeanDefinitions( ConfigurationClassPostProcessor.java:321)
at org.springframework.context.annotation.Configurati onClassPostProcessor.postProcessBeanDefinitionRegi stry(ConfigurationClassPostProcessor.java:243)
at org.springframework.context.support.PostProcessorR egistrationDelegate.invokeBeanDefinitionRegistryPo stProcessors(PostProcessorRegistrationDelegate.jav a:273)
at org.springframework.context.support.PostProcessorR egistrationDelegate.invokeBeanFactoryPostProcessor s(PostProcessorRegistrationDelegate.java:98)
at org.springframework.context.support.AbstractApplic ationContext.invokeBeanFactoryPostProcessors(Abstr actApplicationContext.java:673)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:519)
at org.springframework.context.annotation.AnnotationC onfigApplicationContext.<init>(AnnotationConfigApp licationContext.java:84)
at org.ethereum.facade.EthereumFactory.createEthereum (EthereumFactory.java:46)
at org.ethereum.facade.EthereumFactory.createEthereum (EthereumFactory.java:37)
at com.fsco.eth.bp.core.EthereumBean.start(EthereumBe an.java:23)
at com.fsco.eth.bp.core.TestFS001.main(TestFS001.java :33)
Caused by: java.io.FileNotFoundException: class path resource [io/netty/handler/codec/ByteToMessageCodec.class] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getI nputStream(ClassPathResource.java:172)
at org.springframework.core.type.classreading.SimpleM etadataReader.<init>(SimpleMetadataReader.java:50)
at org.springframework.core.type.classreading.SimpleM etadataReaderFactory.getMetadataReader(SimpleMetad ataReaderFactory.java:98)
at org.springframework.core.type.classreading.Caching MetadataReaderFactory.getMetadataReader(CachingMet adataReaderFactory.java:102)
at org.springframework.core.type.classreading.SimpleM etadataReaderFactory.getMetadataReader(SimpleMetad ataReaderFactory.java:93)
at org.springframework.context.annotation.Configurati onClassParser.asSourceClass(ConfigurationClassPars er.java:620)
at org.springframework.context.annotation.Configurati onClassParser$SourceClass.getSuperClass(Configurat ionClassParser.java:800)
at org.springframework.context.annotation.Configurati onClassParser.doProcessConfigurationClass(Configur ationClassParser.java:313)
at org.springframework.context.annotation.Configurati onClassParser.processConfigurationClass(Configurat ionClassParser.java:231)
at org.springframework.context.annotation.Configurati onClassParser.parse(ConfigurationClassParser.java: 190)
at org.springframework.context.annotation.Configurati onClassParser.doProcessConfigurationClass(Configur ationClassParser.java:271)
at org.springframework.context.annotation.Configurati onClassParser.processConfigurationClass(Configurat ionClassParser.java:231)
at org.springframework.context.annotation.Configurati onClassParser.processImports(ConfigurationClassPar ser.java:509)
... 15 more