You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/04/23 04:10:41 UTC

[GitHub] [camel-quarkus] nparfait opened a new issue, #3745: Native image build failing using SES and url http client

nparfait opened a new issue, #3745:
URL: https://github.com/apache/camel-quarkus/issues/3745

   I was successfully building a native image using camel-quarkus (consuming from kafka and publishing to aws2 ses and sns) using apache client. This was working ok till I deployed to our EKS cluster using IRSA. I then included the STS  module and got past the webidentitytokens issue. However this was failing intermittently with invalid security token when running as a native image (working fine in jvm mode).
   
   I then tried to switch to url http client, with software.amazon.awssdk.http.service.impl=software.amazon.awssdk.http.urlconnection.UrlConnectionSdkHttpService
   
   JVM version builds and runs ok.
   Native build is now failing with below error
   
   **GraalVM version:**
   openjdk version "17.0.2" 2022-01-18
   OpenJDK Runtime Environment GraalVM CE 22.0.0.2 (build 17.0.2+8-jvmci-22.0-b05)
   OpenJDK 64-Bit Server VM GraalVM CE 22.0.0.2 (build 17.0.2+8-jvmci-22.0-b05, mixed mode, sharing)
   
   **Error Message**
   [ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.8.1.Final:build (default) on project correspondence-service: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
   [ERROR] 	[error]: Build step org.apache.camel.quarkus.component.aws.commons.deployment.AwsCommonsProcessor#client threw an exception: javax.enterprise.inject.spi.DeploymentException: Missing 'software.amazon.awssdk:apache-client' dependency on the classpath
   [ERROR] 	at org.apache.camel.quarkus.component.aws.commons.deployment.AwsCommonsProcessor.checkClasspath(AwsCommonsProcessor.java:61)
   [ERROR] 	at org.apache.camel.quarkus.component.aws.commons.deployment.AwsCommonsProcessor.client(AwsCommonsProcessor.java:51)
   [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
   [ERROR] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   [ERROR] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
   [ERROR] 	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:925)
   [ERROR] 	at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
   [ERROR] 	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
   [ERROR] 	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
   [ERROR] 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
   [ERROR] 	at java.base/java.lang.Thread.run(Thread.java:833)
   [ERROR] 	at org.jboss.threads.JBossThread.run(JBossThread.java:501)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] jamesnetherton commented on issue #3745: Native image build failing using SES and url http client

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #3745:
URL: https://github.com/apache/camel-quarkus/issues/3745#issuecomment-1108161831

   Seems we mandate usage of the Apache HTTP client:
   
   https://camel.apache.org/camel-quarkus/2.8.x/reference/extensions/aws2-ses.html#_additional_camel_quarkus_configuration
   
   I'm not familiar with the background as to why that is. Maybe @ppalaga or @JiriOndrusek knows?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] nparfait closed issue #3745: Native image build failing using SES and url http client

Posted by GitBox <gi...@apache.org>.
nparfait closed issue #3745: Native image build failing using SES and url http client
URL: https://github.com/apache/camel-quarkus/issues/3745


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] nparfait commented on issue #3745: Native image build failing using SES and url http client

Posted by GitBox <gi...@apache.org>.
nparfait commented on issue #3745:
URL: https://github.com/apache/camel-quarkus/issues/3745#issuecomment-1111073007

   Closing as I have it now working with the apache client


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] oscerd commented on issue #3745: Native image build failing using SES and url http client

Posted by GitBox <gi...@apache.org>.
oscerd commented on issue #3745:
URL: https://github.com/apache/camel-quarkus/issues/3745#issuecomment-1111083898

   In all the AWS component we are using only apache http client. The netty side is for async client and we are not supporting them for the moment 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org