[
https://issues.apache.org/activemq/browse/SM-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41850#action_41850
]
Guillaume Nodet commented on SM-1295:
-------------------------------------
Lars explicitely changed that a few weeks ago:
http://fisheye6.cenqua.com/browse/servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/components/util/BinaryFileMarshaler.java?r1=602826&r2=634247
I don't recall exactly what was the probem. Lars ?
> BinaryFileMarshaler does not work with FTPPoller Endpoint
> ---------------------------------------------------------
>
> Key: SM-1295
> URL: https://issues.apache.org/activemq/browse/SM-1295
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-core
> Affects Versions: 3.2.1, 3.3
> Environment: Windows XP
> Reporter: Rabi
> Fix For: 3.3
>
> Attachments: BinaryFileMarshaler-patch.txt
>
>
> When using BinaryFileMarshaler with FtpPoller
> File not found excelption. It seems to be looking for the file on the local
> server rather than ftp location.
> java.io.FileNotFoundException: \dnbusr1\ks\control\Input.txt (The system
> cannot find the path specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at
> javax.activation.FileDataSource.getInputStream(FileDataSource.java:97)
> at javax.activation.DataHandler.getInputStream(DataHandler.java:237)
>
> Code responsible for the problem are the following lines in
> BinaryFileMarshaler
>
> public void readMessage(MessageExchange exchange, NormalizedMessage message,
> InputStream in, String path)
> throws IOException, JBIException {
> ......
> DataSource ds = new FileDataSource(polledFile);
> DataHandler handler = new DataHandler(ds);
> .....
> }
> Attaching the fix. Please validate and commit. I have tested and it works
> fine with 3.3-SNAPSHOT.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.