Hello ServiceMix-community!
I implemented a custom LockManager-class that implements the LockManager
interface, according to this guide:
http://fusesource.com/docs/esb/3.3/file/ESBFilePollerLock.html
I try to bind it in the fileIn-xbean.xml like this:
<file:poller service="swm:FilePoller"
endpoint="EDIFileIn"
file="../Data/Inbound/FileIn"
<property name="lockManager">
<!-- <bean class="servicemix.swm.swm_file_in_su.SwmLockManager" /> -->
<ref bean="SwmLockManager"/>
</property>
...
<bean id="SwmLockManager"
class="servicemix.swm.swm_file_in_su.SwmLockManager" />
but i get following exception during deploy:
ERROR - FileComponent -
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.
servicemix.file.FilePollerEndpoint#0' defined in file
[C:\SWM\apache-servicemix-3.3\data\smx\service-assemblies\swm-in-sa\version_18\sus\ser
vicemix-file\swm-file-in-su\xbean.xml]: Initialization of bean failed;
nested exception is org.springframework.beans.TypeMismatchException:
Failed to convert property value of type
[biz.accelsis.servicemix.swm.swm_file_in_su.SwmLockManager] to required type
[org.apache.servicemix
.common.locks.LockManager] for property 'lockManager'; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of type
[biz.accelsis.servicemix.swm.swm_file_in_su.SwmLockManager] to required type
[org.apache.servicemix.common.locks.LockManager] for property '
lockManager': no matching editors or conversion strategy found
ERROR - AutoDeploymentService - Failed to update Service Assembly:
swm-in-sa
What does that mean? And how to solve it?
thanks in advance
--
View this message in context:
http://www.nabble.com/FilePoller-Custom-LockManager-issue-tp20680614p20680614.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.