
AWS Developer Forums » Java Development
1,000 FOLLOWERS
This section of AWS Developer Forums is a place to talk and discuss Java Development. Browse through technical guidance about Java Development, and learn more about cloud computing. You can also download the AWS toolkits needed to run Java applications on AWS from here.
AWS Developer Forums » Java Development
2d ago
Hello, I'm using Java CDK to create a new ECR instance. Here is a code fragment: Repository.Builder.create(scope, id).imageScanOnPush(true) .repositoryName("my-registry").removalPolicy(RemovalPolicy.DESTROY).build(); Looking in the AWS Console, the name of the new created repository is "null/my-registry" instead of "my-registry". If I create the new ECR instance in AWS Console then its name is created as expected, i.e. "my-registry" and not "null/my-registry". What am I doing wrong here ? Many thanks in advance. Nicolas ..read more
AWS Developer Forums » Java Development
3w ago
Team Getting 502 Bad Gateway Spring Boot Using Elastice Bean Stack. Can someone please help ..read more
AWS Developer Forums » Java Development
3w ago
 Hi Team I Deployed Spring Boot using Elastic Bean stack and done the necessary steps * server port * adding roles But application did not deploy it says degraded. could someone please help Source Code : https://github.com/andrewsselvaraj/springawt/tree/main/spring-boot-jwt ..read more
AWS Developer Forums » Java Development
3w ago
Hi team, I am using the revoke token API to revoke the refresh token and it revokes the refresh token as well I can see that I am not able to generate the new access token using that refresh token but I tried to call the revoke token API again with the same refresh token but it didn't throw any error. I am expecting it should throw an error something like refresh token has already been revoked. Here is how I am revoking access token: ``` RevokeTokenRequest revokeTokenRequest = new RevokeTokenRequest(); revokeTokenRequest.setClientId("client-id"); revokeTokenRequest.setToken("refresh_token"); r ..read more
AWS Developer Forums » Java Development
1M ago
This is cross posted on StackOverflow https://stackoverflow.com/questions/75389388/using-aws-java-sdk-2-0-webidentitytokenfilecredentialsprovider-gives-sdkclientex ``` I have an application that already works using Kinesis. The application uses AWS Session Credentials but we are switching to using either AWS Session Credentials or Web Identity Token (software.amazon.awssdk.auth.credentials.WebIdentityTokenFileCredentialsProvider) depending on the deployment environment. When I add in the code to use WebIdentityTokenFileCredentialsProvider I get the stacktrace below. I can't provide the code bu ..read more
AWS Developer Forums » Java Development
1M ago
We are using Java Flow framework for swf workflow and activities. The current workflow will execute two activities, now we will need to register a new activity, and update the workflow implementation to conditionally run another activity when the workflow input meet a certain condition, so there is no change to other two activities, no change to the workflow interface itself, but will only update the workflow implementation to invoke another activity, now my question is if we deploy the change, will the in-fly workflow execution that run on the old version failed or timed out because of the re ..read more
AWS Developer Forums » Java Development
1M ago
I have a AWS elastic beanstalk load balancer t2.medium environment set up recently. I noticed that there is a CPU spike event (last a few seconds), following with high latency stay at 80s forever and hanging - never auto recover until manual reboot. (see chart)  The new environment is a clone of our old instance (Tomcat 8.5 with Java 8 running on 64bit Amazon Linux/3.4.18). The CPU spike might be caused by a batch job, but why latency stay high 80s after CPU usage recover? This happened twice in 2 weeks. I checked the log, no ..read more
AWS Developer Forums » Java Development
1M ago
I'm trying to migrate from SDK for Java v1 to v2. With the `AmazonS3` client in SDK v1, PutObject returns PutObjectResult which makes the object metadata available. From the object metadata I can get the version ID of the file (along with content length and last modified timestamp). I don't see a way to get any of this information from the `S3Client` in SDK v2 from the response to the PutObject. I do not want to have to make a separate call to get the version ID. I'm really hoping someone can tell me that this data is still available in the response and that I'm just not seeing it. Any pointer ..read more
AWS Developer Forums » Java Development
1M ago
Hello, I am somewhat new to CDK. Or at least I haven't came across this problem. **Problem:** I created a stack in CDK and accidentally named it the wrong file. I also unwillingly used a module that I was not suppose to use for my particular use case. I now need to refactor the code in the stack to create resources without the module. I also need to rename the file. For example, I created an S3 bucket. I didn't add an event notificaiton. Now I want to add an event notification on the existing S3 bucket that I already created, in my new refactored code. **Goal: ** The solution I'm looking to ac ..read more
AWS Developer Forums » Java Development
1M ago
We're using the `GlueSchemaRegistryDeserializerDataParser` class from https://github.com/awslabs/aws-glue-schema-registry. This seems to be from the v1 of the AWS SDK (or am I wrong?) Is there a replacement in aws-sdk-java-v2 (https://github.com/aws/aws-sdk-java-v2 ..read more