[
https://issues.apache.org/activemq/browse/SM-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41881#action_41881
]
Lars Heinemann commented on SM-1295:
------------------------------------
Rabi,
if you need this change really fast then please do it at your local servicemix
code. I won't change the code until I found a reliable solution.
Regards,
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
> Assignee: Lars Heinemann
> 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.