Hi,
I think it's a bundle version mismatch issue.
Could you test with the latest released FUSE ESB 4.2 release [1](which
is based on SMX 4.x ), as in the latest release version we fixed lots
of issues after apace servicemix 4.0 release
If the fuse version works, then the next coming apache servicemix 4.2
release should also works for you.
[1]http://repo.open.iona.com/maven2/org/apache/servicemix/apache-servicemix/4.2.0-fuse-01-00/
Freeman
On 2010-3-4, at 下午6:33, pshettyk wrote:
Hi,
We are using Servicemix4.
We had the ftp bean specification like below
<ftp:poller service="ns:ftpPoller" endpoint="ftpPollerEndpoint"
targetService="ns:ftpSender" targetEndpoint="ftpSenderEndpoint"
uri="ftp://testftp:[email protected]:21/home/testftp/poller">
<property name="marshaler">
<bean
class="org.apache.servicemix.components.util.BinaryFileMarshaler"
/>
</property>
</ftp:poller>
<ftp:sender service="ns:ftpSender" endpoint="ftpSenderEndpoint"
uri="file:/home/prakash/test/sender">
<property name="marshaler">
<bean
class="org.apache.servicemix.components.util.BinaryFileMarshaler"
/>
</property>
</ftp:sender>
But it is throwing error. The error report in servicemix.log says :-
15:50:43,038 | ERROR | xtenderThread-74 |
ServiceAssemblyInstaller |
er.impl.ServiceAssemblyInstaller 100 | <component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-ftp</component-name>
<component-task-result-details>
<task-result-details>
<task-id>start</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg><msg-loc-info><loc-token/><loc-message>Unable to
start
service unit</loc-message></msg-loc-info></task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<msg-loc-info>
<loc-token />
<loc-message>java.util.NoSuchElementException: Could not create a
validated object, cause:
org.apache.commons.net.ftp.FTPClient.setReaderThread(Z)V</loc-message>
<stack-trace><![CDATA[javax.jbi.JBIException:
java.util.NoSuchElementException: Could not create a validated object,
cause: org.apache.commons.net.ftp.FTPClient.setReaderThread(Z)V
at
org
.apache
.servicemix
.ftp.FtpPollerEndpoint.borrowClient(FtpPollerEndpoint.java:544)
at
org
.apache
.servicemix.ftp.FtpPollerEndpoint.start(FtpPollerEndpoint.java:147)
at
org
.apache
.servicemix.common.DefaultServiceUnit.start(DefaultServiceUnit.java:
78)
at
org
.apache
.servicemix
.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:155)
......
Caused by: java.util.NoSuchElementException: Could not create a
validated
object, cause:
org.apache.commons.net.ftp.FTPClient.setReaderThread(Z)V
at
org
.apache
.commons
.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1008)
at
org
.apache
.servicemix
.ftp
.SocketClientPoolSupport.borrowClient(SocketClientPoolSupport.java:62)
at
org
.apache
.servicemix
.ftp.FtpPollerEndpoint.borrowClient(FtpPollerEndpoint.java:542)
... 88 more
I am not getting any idea what to fix?
Is it a configuration issue or servicemix bundle issue or ftp server
issue?
Could you please suggest the solution for this.
Thanks.
Regards,
Prakash
--
View this message in context:
http://old.nabble.com/servicemix4-ftp-ftp%3Apoller---ftp%3Asender-thowing-java.util.NoSuchElementException%3A-Could-not-create-a-validated-object%2C-cause%3A-org.apache.commons.net.ftp.FTPClient.setReaderThread-tp27779068p27779068.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com