[
https://issues.apache.org/jira/browse/CAMEL-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marius Cornescu updated CAMEL-14132:
------------------------------------
Summary: camel-hdfs: Producer throws exception when body is RemoteFile
(was: cmael-hdfs: Producer throws exception when body is RemoteFile)
> camel-hdfs: Producer throws exception when body is RemoteFile
> -------------------------------------------------------------
>
> Key: CAMEL-14132
> URL: https://issues.apache.org/jira/browse/CAMEL-14132
> Project: Camel
> Issue Type: Bug
> Components: camel-hdfs
> Affects Versions: 3.0.0.RC3
> Reporter: Marius Cornescu
> Priority: Major
>
> When running a route *FROM* sftp with streamDownload=true *TO* hdfs, an
> exception is thrown, with the root cause that
> *GenericFileConverter.genericFileToInputStream(GenericFile<?> file, Exchange
> exchange)* needs the exchange instance to be non null
>
> {code}
> exchange.getContext().getTypeConverter().convertTo(InputStream.class);
> {code}
> returns null, while
> {code}
> exchange.getContext().getTypeConverter().convertTo(InputStream.class,
> exchange, value);
> {code}
> works
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)