org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filesOut.adapter': Cannot resolve reference to bean 'org.springframework.integration.file.config.FileWritingMessageHandlerFactoryBean#0' while setting bean property 'handler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.file.config.FileWritingMessageHandlerFactoryBean#0': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Unexpected IOException when looking for destination directory: class path resource [C:/DOCUME~1/Joseph/LOCALS~1/Temp//spring-integration-samples/output]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Joe Witt, 1 year ago
java.lang.IllegalArgumentException: Unexpected IOException when looking for destination directory: class path resource [C:/DOCUME~1/Joseph/LOCALS~1/Temp//spring-integration-samples/output]
via Spring JIRA by Joe Witt, 1 year ago
java.lang.IllegalArgumentException: Unexpected IOException when looking for destination directory: class path resource [C:/DOCUME~1/Joseph/LOCALS~1/Temp//spring-integration-samples/output]
via spring.io by Unknown author, 1 year ago
Error creating bean with name 'org.springframework.integration.config.ConsumerEndpointFactoryBean#5': Cannot resolve reference to bean 'org.springframework.integration.handler.MessageHandlerChain#0' while setting bean property 'handler'; nested
via Stack Overflow by flexinIT
, 2 years ago
Error creating bean with name 'wuamsApplicationListener' defined in class path resource [GeneralApplicationContext.xml]: Cannot resolve reference to bean 'repository' while setting bean property 'repository'; nested exception is
via Oracle Community by Jeegar Patel, 1 year ago
Error creating bean with name 'SensorManager' defined in ServletContext resource [/WEB-INF/fabric-config-core.xml]: Cannot resolve reference to bean 'FabricMesh' while setting bean property 'fabricMesh'; nested exception is
via Stack Overflow by Prashant
, 2 years ago
Error creating bean with name 'themeCache' defined in ServletContext resource [/WEB-INF/applicationContext-themes.xml]: Cannot resolve reference to bean 'unsecureRepositoryService' while setting bean property 'repositoryService'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filesOut.adapter': Cannot resolve reference to bean 'org.springframework.integration.file.config.FileWritingMessageHandlerFactoryBean#0' while setting bean property 'handler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.file.config.FileWritingMessageHandlerFactoryBean#0': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Unexpected IOException when looking for destination directory: class path resource [C:/DOCUME~1/Joseph/LOCALS~1/Temp//spring-integration-samples/output]
at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:163)
at org.springframework.integration.file.FileWritingMessageHandler.(FileWritingMessageHandler.java:83)
at org.springframework.integration.file.config.FileWritingMessageHandlerFactoryBean.initHandler(FileWritingMessageHandlerFactoryBean.java:142)
at org.springframework.integration.file.config.FileWritingMessageHandlerFactoryBean.getObject(FileWritingMessageHandlerFactoryBean.java:122)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:91)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1288)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:275)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:947)
at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:701)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:377)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:197)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:172)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:158)
at org.springframework.integration.samples.filecopy.BinaryFileCopyDemo.main(BinaryFileCopyDemo.java:33)

Users with the same issue

Once, 3 days ago
Once, 1 month ago
2 times, 4 months ago
7 times, 4 months ago
Once, 6 months ago
22 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.