You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Philippe Gervaise (Jira)" <ji...@apache.org> on 2023/01/31 13:57:00 UTC

[jira] [Created] (KARAF-7642) Blueprint & AWS2 S3 routes

Philippe Gervaise created KARAF-7642:
----------------------------------------

             Summary: Blueprint & AWS2 S3 routes
                 Key: KARAF-7642
                 URL: https://issues.apache.org/jira/browse/KARAF-7642
             Project: Karaf
          Issue Type: Bug
          Components: karaf
    Affects Versions: 4.3.9, 4.4.3
            Reporter: Philippe Gervaise
         Attachments: route-aws-s3-get.xml

Hi,

When using Apache Karaf with a simple blueprint XML file under "deploy" folder we got an exception for AWS S3 :
{noformat}
org.apache.camel.FailedToStartRouteException: Failed to start route aws-s3-get-test because of null
    at org.apache.camel.impl.engine.RouteService.warmUp(RouteService.java:123) ~[?:?]
[...]
Caused by: software.amazon.awssdk.core.exception.SdkClientException: Unable to load an HTTP implementation from any provider in the chain. You must declare a dependency on an appropriate HTTP implementation or pass in an SdkHttpClient explicitly to the client builder.
    at software.amazon.awssdk.core.exception.SdkClientException$BuilderImpl.build(SdkClientException.java:102) ~[?:?]

{noformat}
 

Tested with a "fresh" Apache Karaf 4.4.3 runtime with those commands on first run :
{noformat}
feature:repo-add camel
feature:install camel-blueprint
feature:install camel-aws2-s3{noformat}
And then the "blueprint route" throw an exception about missing a Http Client. The blueprint XML file is very simple :
{noformat}
<?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">
        <route>
            <from uri="aws2-s3://myawsbucket?accessKey=RAW(myaccesskey)&amp;secretKey=RAW(mysecretkey)&amp;region=eu-west-1"/>
            <to uri="file:d:/data/camel/aws-s3-test/in?fileName=${header.CamelAwsS3Key}"/>
        </route>
    </camelContext>
</blueprint>{noformat}
(even if accesskey or secretkey are OK, the error is the same)

 

Under the hoods it's Camel 3.20.1 (but Camel 3.15.0 failed the same way) and Java 17.

It's the same error for Apache Karaf 4.4.3 and Apache Karaf 4.3.6.

It is a bug or something is missing ?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)