Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

02-serverless-api example fails in the camel-k-examples repo #2400

Closed
ilan-pinto opened this issue Jun 13, 2021 · 5 comments
Closed

02-serverless-api example fails in the camel-k-examples repo #2400

ilan-pinto opened this issue Jun 13, 2021 · 5 comments

Comments

@ilan-pinto
Copy link

when triggering the deployed route, I get the below error
the amazonaws classes are not recognized

[1] 2021-06-10 12:00:15,150 INFO [org.apa.cam.k.lis.SourcesConfigurer] (main) Loading routes from: SourceDefinition{name='MinioCustomizer', language='java', location='file:/etc/camel/sources/MinioCustomizer.java', }
[1] 2021-06-10 12:00:15,629 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start application: org.apache.camel.RuntimeCamelException: org.joor.ReflectException: Compilation error: /test/MinioCustomizer.java:7: error: package com.amazonaws.auth does not exist
[1] import com.amazonaws.auth.AWSCredentials;
[1] ^
[1] /test/MinioCustomizer.java:8: error: package com.amazonaws.auth does not exist
[1] import com.amazonaws.auth.AWSCredentialsProvider;
[1] ^
[1] /test/MinioCustomizer.java:9: error: package com.amazonaws.auth does not exist
[1] import com.amazonaws.auth.AWSStaticCredentialsProvider;
[1] ^
[1] /test/MinioCustomizer.java:10: error: package com.amazonaws.auth does not exist
[1] import com.amazonaws.auth.BasicAWSCredentials;
[1] ^
[1] /test/MinioCustomizer.java:11: error: package com.amazonaws.client.builder does not exist
[1] import com.amazonaws.client.builder.AwsClientBuilder;
[1] ^
[1] /test/MinioCustomizer.java:12: error: package com.amazonaws.services.s3 does not exist
[1] import com.amazonaws.services.s3.AmazonS3;
[1] ^
[1] /test/MinioCustomizer.java:13: error: package com.amazonaws.services.s3 does not exist
[1] import com.amazonaws.services.s3.AmazonS3ClientBuilder;
[1] ^
[1] /test/MinioCustomizer.java:18: error: cannot find symbol
[1] public static AmazonS3 minioClient(
[1] ^
[1] symbol: class AmazonS3
[1] location: class MinioCustomizer
[1] /test/MinioCustomizer.java:23: error: package AwsClientBuilder does not exist
[1] AwsClientBuilder.EndpointConfiguration endpoint = new AwsClientBuilder.EndpointConfiguration(endpointAddress, "US_EAST_1");
[1] ^
[1] /test/MinioCustomizer.java:23: error: package AwsClientBuilder does not exist
[1] AwsClientBuilder.EndpointConfiguration endpoint = new AwsClientBuilder.EndpointConfiguration(endpointAddress, "US_EAST_1");
[1] ^
[1] /test/MinioCustomizer.java:24: error: cannot find symbol
[1] AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
[1] ^
[1] symbol: class AWSCredentials
[1] location: class MinioCustomizer
[1] /test/MinioCustomizer.java:24: error: cannot find symbol
[1] AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
[1] ^
[1] symbol: class BasicAWSCredentials
[1] location: class MinioCustomizer
[1] /test/MinioCustomizer.java:25: error: cannot find symbol
[1] AWSCredentialsProvider credentialsProvider = new AWSStaticCredentialsProvider(credentials);
[1] ^
[1] symbol: class AWSCredentialsProvider
[1] location: class MinioCustomizer
[1] /test/MinioCustomizer.java:25: error: cannot find symbol
[1] AWSCredentialsProvider credentialsProvider = new AWSStaticCredentialsProvider(credentials);
[1] ^
[1] symbol: class AWSStaticCredentialsProvider
[1] location: class MinioCustomizer
[1] /test/MinioCustomizer.java:27: error: cannot find symbol
[1] return AmazonS3ClientBuilder
[1] ^
[1] symbol: variable AmazonS3ClientBuilder
[1] location: class MinioCustomizer
[1] 15 errors
[1]

@ilan-pinto
Copy link
Author

you can assign it to me. ill fix it

@oscerd
Copy link
Contributor

oscerd commented Jun 13, 2021

A comment is enough. We usually give assignee permissions to contributors more active in the long term. In this case the comment is enough. Thanks

@ilan-pinto
Copy link
Author

ilan-pinto commented Jun 14, 2021 via email

@oscerd
Copy link
Contributor

oscerd commented Jun 14, 2021

Yes, you can. I meant to say that currently we cannot assign the issue to you, because you're a new contributor, also you need to be in ASF organization before being able to assign issue to yourself or to be assigned. You can work on this for sure, thanks!

@nicolaferraro
Copy link
Member

Fixed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants