camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamil (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-11680) Camel-dropbox should support Put not only from localPath
Date Wed, 06 Sep 2017 11:58:00 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-11680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16155253#comment-16155253
] 

Kamil commented on CAMEL-11680:
-------------------------------

I tried this:
{code}
from("direct:dropBoxPut")
.convertBodyTo(byte[].class)
.toD("dropbox:put?uploadMode=force&remotePath=/myFile.xml&accessToken={{dropbox.key}}")
{code}
and I got:
{code}
org.apache.camel.component.dropbox.util.DropboxException: option <localPath> is not
present or not valid!
	at org.apache.camel.component.dropbox.validator.DropboxConfigurationValidator.validateLocalPath(DropboxConfigurationValidator.java:76)
~[camel-dropbox-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
	at org.apache.camel.component.dropbox.validator.DropboxConfigurationValidator.validatePutOp(DropboxConfigurationValidator.java:49)
~[camel-dropbox-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
	at org.apache.camel.component.dropbox.integration.producer.DropboxPutProducer.process(DropboxPutProducer.java:47)
~[camel-dropbox-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
~[camel-core-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
{code}

Another problem is that, when I had 
{code}
errorHandler(defaultErrorHandler().maximumRedeliveries(5).redeliveryDelay(3000).backOffMultiplier(2.3).retryAttemptedLogLevel(LoggingLevel.WARN).useOriginalMessage());
{code}
And I was trying to shutdown the app - it didn't close but displayed:
{code}
2017-09-06 13:35:02.198  INFO 5388 --- [ - ShutdownTask] o.a.camel.impl.DefaultShutdownStrategy
  : There are 1 inflight exchanges:
	InflightExchange: [exchangeId=ID-X-0-1, fromRouteId=route1, routeId=route1, nodeId=toD1,
elapsed=0, duration=46088]
2017-09-06 13:35:02.317  INFO 5388 --- [on(9)-127.0.0.1] inMXBeanRegistrar$SpringApplicationAdmin
: Application shutdown requested.
2017-09-06 13:35:02.424  INFO 5388 --- [n(10)-127.0.0.1] inMXBeanRegistrar$SpringApplicationAdmin
: Application shutdown requested.
2017-09-06 13:35:02.544  INFO 5388 --- [n(11)-127.0.0.1] inMXBeanRegistrar$SpringApplicationAdmin
: Application shutdown requested.
2017-09-06 13:35:02.665  INFO 5388 --- [n(12)-127.0.0.1] inMXBeanRegistrar$SpringApplicationAdmin
: Application shutdown requested.
2017-09-06 13:35:03.198  INFO 5388 --- [ - ShutdownTask] o.a.camel.impl.DefaultShutdownStrategy
  : Waiting as there are still 1 inflight and pending exchanges to complete, timeout in 281
seconds. Inflights per route: [route1 = 1]
2017-09-06 13:35:03.198  INFO 5388 --- [ - ShutdownTask] o.a.camel.impl.DefaultShutdownStrategy
  : There are 1 inflight exchanges:
	InflightExchange: [exchangeId=ID-X-0-1, fromRouteId=route1, routeId=route1, nodeId=toD1,
elapsed=0, duration=47088]
2017-09-06 13:35:04.198  INFO 5388 --- [ - ShutdownTask] o.a.camel.impl.DefaultShutdownStrategy
  : Waiting as there are still 1 inflight and pending exchanges to complete, timeout in 280
seconds. Inflights per route: [route1 = 1]
2017-09-06 13:35:04.198  INFO 5388 --- [ - ShutdownTask] o.a.camel.impl.DefaultShutdownStrategy
  : There are 1 inflight exchanges:
	InflightExchange: [exchangeId=ID-X-0-1, fromRouteId=route1, routeId=route1, nodeId=toD1,
elapsed=0, duration=48088]
2017-09-06 13:35:05.199  INFO 5388 --- [ - ShutdownTask] o.a.camel.impl.DefaultShutdownStrategy
  : Waiting as there are still 1 inflight and pending exchanges to complete, timeout in 279
seconds. Inflights per route: [route1 = 1]
2017-09-06 13:35:05.201  INFO 5388 --- [ - ShutdownTask] o.a.camel.impl.DefaultShutdownStrategy
  : There are 1 inflight exchanges:
	InflightExchange: [exchangeId=ID-X-0-1, fromRouteId=route1, routeId=route1, nodeId=toD1,
elapsed=0, duration=49091]
2017-09-06 13:35:06.201  INFO 5388 --- [ - ShutdownTask] o.a.camel.impl.DefaultShutdownStrategy
  : Waiting as there are still 1 inflight and pending exchanges to complete, timeout in 278
seconds. Inflights per route: [route1 = 1]
2017-09-06 13:35:06.202  INFO 5388 --- [ - ShutdownTask] o.a.camel.impl.DefaultShutdownStrategy
  : There are 1 inflight exchanges:
	InflightExchange: [exchangeId=ID-X-0-1, fromRouteId=route1, routeId=route1, nodeId=toD1,
elapsed=0, duration=50092]
2017-09-06 13:35:07.203  INFO 5388 --- [ - ShutdownTask] o.a.camel.impl.DefaultShutdownStrategy
  : Waiting as there are still 1 inflight and pending exchanges to complete, timeout in 277
seconds. Inflights per route: [route1 = 1]
2017-09-06 13:35:07.203  INFO 5388 --- [ - ShutdownTask] o.a.camel.impl.DefaultShutdownStrategy
  : There are 1 inflight exchanges:
{code}
endlessly

> Camel-dropbox should support Put not only from localPath
> --------------------------------------------------------
>
>                 Key: CAMEL-11680
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11680
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-dropbox
>            Reporter: Kamil
>            Assignee: Claus Ibsen
>             Fix For: 2.20.0
>
>
> Currently if I want to Put file on Dropbox using Camel-Dopbox I must create temporary
file, write to it using file:// and then use: 
> {code}
> dropbox://put?localPath=${header.myTempFile}
> {code}
> which is tedious.
> Camel-dropbox should support writing directly from Exchange



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message