Greetings,


I am trying to add use Camel-Azure-Storage-Queue in my Karaf 4.3.0 instance 
(Camel 3.7.0) with a Blueprint xml deployment. I have the 
camel-azure-storage-queue listed as installed (feature:list). I am using java 
11. I am using a VERY simple camelcontext (see below). The error I am getting 
has this in the listing (complete error attached in file):



Caused by: org.apache.camel.RuntimeCamelException: 
java.lang.IllegalStateException: Cannot find any HttpClient provider on the 
classpath - unable to create a default HttpClient instance



Writetoqueue.xml

<?xml version="1.0" encoding="UTF-8"?>

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";>

    <camelContext xmlns="http://camel.apache.org/schema/blueprint"; 
id="contextasqtesting">

        <route id="makemeamsg">

            <from uri="timer:main?period=5000"/>

                <setBody>

                    <simple>Time for a message [${date:now:yyyy-MM-dd 
HH:mm:ss}]\n</simple>

                </setBody>

            <log message="${body}"/>

            <to 
uri="azure-storage-queue://azure_storage_account/cameltest?accessKey=sSoSEhvzSAhHedpr6YhF3iV/X7Dw...3ywb3nIJ8ps94pAT5Pot5Ujjkg=="/>

        </route>

    </camelContext>

</blueprint>



If this needs to be in the Karaf group, let me know and I can post it there.



Thank you for your assistance,
Joe Dean
Staff Engineer
BD | Technology Solution | Software Engineering

*******************************************************************
IMPORTANT MESSAGE FOR RECIPIENTS IN THE U.S.A.:
This message may constitute an advertisement of a BD group's products or 
services or a solicitation of interest in them. If this is such a message and 
you would like to opt out of receiving future advertisements or solicitations 
from this BD group, please forward this e-mail to optoutbygr...@bd.com. 
[BD.v1.0]
*******************************************************************
This message (which includes any attachments) is intended only for the 
designated recipient(s). It may contain confidential or proprietary information 
and may be subject to the attorney-client privilege or other confidentiality 
protections. If you are not a designated recipient, you may not review, use, 
copy or distribute this message. If you received this in error, please notify 
the sender by reply e-mail and delete this message. Thank you.
*******************************************************************
Corporate Headquarters Mailing Address: BD (Becton, Dickinson and Company) 1 
Becton Drive Franklin Lakes, NJ 07417 U.S.A.
00:38:54.943 ERROR [Blueprint Event Dispatcher: 1] Error occurred during 
starting CamelContext: contextshell
org.apache.camel.FailedToStartRouteException: Failed to start route makemeamsg 
because of null
        at 
org.apache.camel.impl.engine.RouteService.warmUp(RouteService.java:122) 
~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.InternalRouteStartupManager.doWarmUpRoutes(InternalRouteStartupManager.java:270)
 ~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.InternalRouteStartupManager.safelyStartRouteServices(InternalRouteStartupManager.java:157)
 ~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.InternalRouteStartupManager.doStartOrResumeRoutes(InternalRouteStartupManager.java:115)
 ~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2889)
 ~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:2702)
 ~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2665)
 ~[!/:3.7.0]
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:115) 
~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2431)
 ~[!/:3.7.0]
        at 
org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:241)
 ~[!/:3.7.0]
        at 
org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:283)
 ~[!/:3.7.0]
        at 
org.apache.camel.blueprint.BlueprintCamelContext.blueprintEvent(BlueprintCamelContext.java:188)
 [!/:3.7.0]
        at 
org.apache.aries.blueprint.container.BlueprintEventDispatcher$3.call(BlueprintEventDispatcher.java:190)
 [!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BlueprintEventDispatcher$3.call(BlueprintEventDispatcher.java:188)
 [!/:1.10.2]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
 [?:?]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 
[?:?]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 
[?:?]
        at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: org.apache.camel.RuntimeCamelException: 
java.lang.IllegalStateException: Cannot find any HttpClient provider on the 
classpath - unable to create a default HttpClient instance
        at 
org.apache.camel.RuntimeCamelException.wrapRuntimeCamelException(RuntimeCamelException.java:51)
 ~[!/:3.7.0]
        at 
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:67) 
~[?:?]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:84)
 ~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:101)
 ~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.DefaultChannel.doStart(DefaultChannel.java:126) 
~[?:?]
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:115) 
~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:84)
 ~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:87)
 ~[!/:3.7.0]
        at org.apache.camel.processor.Pipeline.doStart(Pipeline.java:154) ~[?:?]
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:115) 
~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:84)
 ~[!/:3.7.0]
        at 
org.apache.camel.support.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
 ~[?:?]
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:115) 
~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:84)
 ~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.RouteService.startChildService(RouteService.java:331)
 ~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.RouteService.doWarmUp(RouteService.java:181) 
~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.RouteService.warmUp(RouteService.java:120) 
~[!/:3.7.0]
        ... 22 more
Caused by: java.lang.IllegalStateException: Cannot find any HttpClient provider 
on the classpath - unable to create a default HttpClient instance
        at 
com.azure.core.implementation.http.HttpClientProviders.createInstance(HttpClientProviders.java:35)
 ~[?:?]
        at com.azure.core.http.HttpClient.createDefault(HttpClient.java:27) 
~[?:?]
        at 
com.azure.core.http.HttpPipelineBuilder.build(HttpPipelineBuilder.java:60) 
~[?:?]
        at 
com.azure.storage.queue.implementation.util.BuilderHelper.buildPipeline(BuilderHelper.java:192)
 ~[?:?]
        at 
com.azure.storage.queue.QueueServiceClientBuilder.buildAsyncClient(QueueServiceClientBuilder.java:116)
 ~[?:?]
        at 
com.azure.storage.queue.QueueServiceClientBuilder.buildClient(QueueServiceClientBuilder.java:145)
 ~[?:?]
        at 
org.apache.camel.component.azure.storage.queue.client.QueueClientFactory.createQueueServiceClient(QueueClientFactory.java:38)
 ~[?:?]
        at 
org.apache.camel.component.azure.storage.queue.QueueEndpoint.doStart(QueueEndpoint.java:70)
 ~[?:?]
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:115) 
~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:84)
 ~[!/:3.7.0]
        at 
org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:230) ~[?:?]
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:115) 
~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:84)
 ~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:101)
 ~[!/:3.7.0]
        at 
org.apache.camel.processor.errorhandler.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1487)
 ~[?:?]
        at 
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:60) 
~[?:?]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:84)
 ~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:101)
 ~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.DefaultChannel.doStart(DefaultChannel.java:126) 
~[?:?]
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:115) 
~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:84)
 ~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:87)
 ~[!/:3.7.0]
        at org.apache.camel.processor.Pipeline.doStart(Pipeline.java:154) ~[?:?]
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:115) 
~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:84)
 ~[!/:3.7.0]
        at 
org.apache.camel.support.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
 ~[?:?]
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:115) 
~[!/:3.7.0]
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:84)
 ~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.RouteService.startChildService(RouteService.java:331)
 ~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.RouteService.doWarmUp(RouteService.java:181) 
~[!/:3.7.0]
        at 
org.apache.camel.impl.engine.RouteService.warmUp(RouteService.java:120) 
~[!/:3.7.0]
        ... 22 more

Reply via email to