Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14132

camel-hdfs: Producer throws exception when body is RemoteFile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0.RC3
    • 3.0.0
    • camel-hdfs
    • None
    • Unknown

    Description

      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

       

      exchange.getContext().getTypeConverter().convertTo(InputStream.class);
      

      returns null, while

      exchange.getContext().getTypeConverter().convertTo(InputStream.class, exchange, value);
      

      works
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marius_cornescu Marius Cornescu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m