org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.servicemix.file.FilePollerEndpoint#0' defined in URL [bundle://158.0:0/META-INF/spring/file-poller.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.io.File] for property 'file'; nested exception is java.lang.IllegalArgumentException: Could not retrieve File for OSGi resource[file:/Users/gnodet/work/apps/apache-servicemix-4.0.0/input|bnd.id=158|bnd.sym=file-poller.xml]: OSGi resource[file:/Users/gnodet/work/apps/apache-servicemix-4.0.0/input|bnd.id=158|bnd.sym=file-poller.xml] cannot be resolved to absolute file path

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 Guillaume Nodet, 1 year ago
: Failed to convert property value of type [java.lang.String] to required type [java.io.File] for property 'file'; nested exception is java.lang.IllegalArgumentException: Could not retrieve File for OSGi resource[file:/Users/gnodet/work/apps/apache
via Spring JIRA by Guillaume Nodet, 1 year ago
: Failed to convert property value of type [java.lang.String] to required type [java.io.File] for property 'file'; nested exception is java.lang.IllegalArgumentException: Could not retrieve File for OSGi resource[file:/Users/gnodet/work/apps/apache
via wordpress.com by Unknown author, 2 years ago
Error creating bean with name 'pivotalRapidBoardManager' defined in URL [bundle://55.0:0/META-INF/spring/atlassian-plugins-components.xml]: Initialization of bean failed; nested exception is java.lang.TypeNotPresentException: Type com.atlassian.greenhopper.api.rapid.view.Column not present
via atlassian.com by Unknown author, 1 year ago
Error creating bean with name 'handler' defined in URL [bundle://26.0:0/META-INF/spring/web-context.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/ServletContext
via bitbucket.org by Unknown author, 1 year ago
Error creating bean with name 'ttsWorkingDayService' defined in URL [bundle://150.0:0/META-INF/spring/atlassian-plugins-components.xml]: Initialization of bean failed; nested exception is java.lang.TypeNotPresentException: Type com.pyxis.greenhopper.jira.configurations.NonWorkingDay not present
via nabble.com by Unknown author, 2 years ago
Error creating bean with name 'handler' defined in URL [bundle://24.0:0/META-INF/spring/web-context.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoun dError: javax/servlet/ServletContext
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.servicemix.file.FilePollerEndpoint#0' defined in URL [bundle://158.0:0/META-INF/spring/file-poller.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.io.File] for property 'file'; nested exception is java.lang.IllegalArgumentException: Could not retrieve File for OSGi resource[file:/Users/gnodet/work/apps/apache-servicemix-4.0.0/input|bnd.id=158|bnd.sym=file-poller.xml]: OSGi resource[file:/Users/gnodet/work/apps/apache-servicemix-4.0.0/input|bnd.id=158|bnd.sym=file-poller.xml] cannot be resolved to absolute file path
at org.springframework.beans.propertyeditors.FileEditor.setAsText(FileEditor.java:100)
at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:382)
at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:358)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:173)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
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.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:68)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:343)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138)
at java.lang.Thread.run(Thread.java:613)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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