Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11433

Box - no property for fileName in upload action

XMLWordPrintable

    • Fuse 7.5 Sprint 54 - Interim

      (Migrated from https://github.com/syndesisio/syndesis/issues/5233)

      Author: Andrej Vaňo
      Assignees: Claudio Miranda,

      This is a...

      [pre][code]
      [ ] Feature request
      [ ] Regression (a behavior that used to work and stopped working in a new release)
      [X] Bug report [!-- Please search GitHub for a similar issue or PR before submitting --]
      [ ] Documentation issue or request
      [/code][/pre]

      Description

      The only property for box upload action is

      parentFolderId

      and when I try to use box connector in

      SQL -> Box

      integration, it fails with

      Missing properties for upload, need one or more from [fileName, size, created, listener, modified]

      ``

      {"exchange":"i-LcZtWP4KguUebqgO_N7z","step":"-LcZtDcRXiVo7s6EHBN3","id":"i-LcZtWWMKguUebqgO_N9z","duration":1201657626}
      2019-04-16 06:47:01.656 ERROR 1 --- [r://integration] o.a.camel.processor.DefaultErrorHandler  : Failed delivery for (MessageId: i-LcZtWo8KguUebqgO_NAz on ExchangeId: i-LcZtWP4KguUebqgO_N7z). Exhausted after delivery attempt: 1 caught: org.apache.camel.RuntimeCamelException: Missing properties for upload, need one or more from [fileName, size, created, listener, modified]
      Message History
      h2. 
      RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
      [-LcZsyC-XiVo7s6EHB] [-LcZsyC-XiVo7s6EHB] [timer://integration?period=60000                                              ] [      1677]
      [-LcZsyC-XiVo7s6EHB] [setHeader1        ] [setHeader[Syndesis.FLOW_ID]                                                   ] [         4]
      [-LcZsyC-XiVo7s6EHB] [to1               ] [sql-0-0                                                                       ] [       430]
      [-LcZsyC-XiVo7s6EHB] [setHeader2        ] [setHeader[Syndesis.STEP_ID]                                                   ] [         0]
      [-LcZsyC-XiVo7s6EHB] [process1          ] [Processor@0x7f4d33c3                                                          ] [        13]
      [-LcZsyC-XiVo7s6EHB] [step:-LcZtDcRXiVo7] [pipeline                                                                      ] [      1204]
      [-LcZsyC-XiVo7s6EHB] [setHeader3        ] [setHeader[Syndesis.STEP_ID]                                                   ] [         0]
      [-LcZsyC-XiVo7s6EHB] [process2          ] [Processor@0x78662cd5                                                          ] [         3]
      [-LcZsyC-XiVo7s6EHB] [to2               ] [atlas:mapping-flow-0-step-1.json?encoding=UTF-8&sourceMapName=Syndesis.CAPTURE] [      1178]
      [-LcZsyC-XiVo7s6EHB] [process3          ] [Processor@0x2507613b                                                          ] [         0]
      [-LcZsyC-XiVo7s6EHB] [process4          ] [Processor@0x7f4d33c3                                                          ] [         0]
      [-LcZsyC-XiVo7s6EHB] [step:-LcZt-nsXiVo7] [pipeline                                                                      ] [         0]
      [-LcZsyC-XiVo7s6EHB] [setHeader4        ] [setHeader[Syndesis.STEP_ID]                                                   ] [         0]
      [-LcZsyC-XiVo7s6EHB] [to3               ] [box-0-2                                                                       ] [         3]
      Stacktrace
      h2. 
      org.apache.camel.RuntimeCamelException: Missing properties for upload, need one or more from [fileName, size, created, listener, modified]
      	at org.apache.camel.util.component.AbstractApiProducer.findMethod(AbstractApiProducer.java:149) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.util.component.AbstractApiProducer.process(AbstractApiProducer.java:69) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at io.syndesis.integration.component.proxy.ComponentProxyProducer.process(ComponentProxyProducer.java:44) ~[integration-component-proxy-1.7.1-20190415.jar!/:1.7.1-20190415]
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:110) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:110) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at io.syndesis.integration.runtime.logging.ActivityTrackingInterceptStrategy$EventProcessor.process(ActivityTrackingInterceptStrategy.java:79) [integration-runtime-1.7.1-20190415.jar!/:1.7.1-20190415]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:110) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at java.util.TimerThread.mainLoop(Timer.java:555) [na:1.8.0_191]
      	at java.util.TimerThread.run(Timer.java:505) [na:1.8.0_191]
      {"exchange":"i-LcZtWP4KguUebqgO_N7z","step":"-LcZt-nsXiVo7s6EHBN2","id":"i-LcZtWoAKguUebqgO_NBz","duration":12795180,"failure":"org.apache.camel.RuntimeCamelException: Missing properties for upload, need one or more from [fileName, size, created, listener, modified]\n\tat org.apache.camel.util.component.AbstractApiProducer.findMethod(AbstractApiProducer.java:149)\n\tat org.apache.camel.util.component.AbstractApiProducer.process(AbstractApiProducer.java:69)\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:138)\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:101)\n\tat io.syndesis.integration.component.proxy.ComponentProxyProducer.process(ComponentProxyProducer.java:44)\n\tat org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)\n\tat org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:110)\n\tat org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:138)\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:101)\n\tat org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:110)\n\tat io.syndesis.integration.runtime.logging.ActivityTrackingInterceptStrategy$EventProcessor.process(ActivityTrackingInterceptStrategy.java:79)\n\tat org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:110)\n\tat org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:138)\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:101)\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)\n\tat org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197)\n\tat org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79)\n\tat java.util.TimerThread.mainLoop(Timer.java:555)\n\tat java.util.TimerThread.run(Timer.java:505)\n"}
      {"exchange":"i-LcZtWP4KguUebqgO_N7z","status":"done","failed":true}
      2019-04-16 06:47:01.658  WARN 1 --- [r://integration] o.a.camel.component.timer.TimerConsumer  : Error processing exchange. Exchange[i-LcZtWP4KguUebqgO_N7z]. Caused by: [org.apache.camel.RuntimeCamelException - Missing properties for upload, need one or more from [fileName, size, created, listener, modified]]
      org.apache.camel.RuntimeCamelException: Missing properties for upload, need one or more from [fileName, size, created, listener, modified]
      	at org.apache.camel.util.component.AbstractApiProducer.findMethod(AbstractApiProducer.java:149) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.util.component.AbstractApiProducer.process(AbstractApiProducer.java:69) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at io.syndesis.integration.component.proxy.ComponentProxyProducer.process(ComponentProxyProducer.java:44) ~[integration-component-proxy-1.7.1-20190415.jar!/:1.7.1-20190415]
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:110) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:110) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at io.syndesis.integration.runtime.logging.ActivityTrackingInterceptStrategy$EventProcessor.process(ActivityTrackingInterceptStrategy.java:79) ~[integration-runtime-1.7.1-20190415.jar!/:1.7.1-20190415]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:110) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) ~[camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79) [camel-core-2.21.0.fuse-740001.jar!/:2.21.0.fuse-740001]
      	at java.util.TimerThread.mainLoop(Timer.java:555) [na:1.8.0_191]
      	at java.util.TimerThread.run(Timer.java:505) [na:1.8.0_191]
      

      ``

        1. pom.xml
          5 kB
        2. BoxApp.java
          4 kB

              cmiranda@redhat.com Claudio Miranda
              rhn-support-hbraun Heiko Braun
              Andrej Vano Andrej Vano
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: