You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Lars Heinemann (JIRA)" <ji...@apache.org> on 2008/03/28 12:44:32 UTC
[jira] Assigned: (SM-1295) BinaryFileMarshaler does not work with
FTPPoller Endpoint
[ https://issues.apache.org/activemq/browse/SM-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Heinemann reassigned SM-1295:
----------------------------------
Assignee: Lars Heinemann
> 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.