Skip to content

Allow retry when UrlConnectionHttpClient encounters a NullPointerException wrapped in RuntimeException - #6894

Merged
jencymaryjoseph merged 7 commits into
masterfrom
jencyjos/urlcxnhttpclient_bugfix
Apr 29, 2026
Merged

Allow retry when UrlConnectionHttpClient encounters a NullPointerException wrapped in RuntimeException #6894
jencymaryjoseph merged 7 commits into
masterfrom
jencyjos/urlcxnhttpclient_bugfix

Handle unhandled NPE wrapped in RuntimeException

fb1a6b1
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Apr 22, 2026 in 16m 12s

Annotations

Check warning on line 36 in core/sdk-core/src/test/java/software/amazon/awssdk/core/internal/async/InputStreamWithExecutorAsyncRequestBodyTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=aws_aws-sdk-java-v2&issues=AZ23bPNZBBAZJmFr3IXB&open=AZ23bPNZBBAZJmFr3IXB&pullRequest=6894

Check warning on line 105 in services/s3/src/test/java/software/amazon/awssdk/services/s3/internal/multipart/MultipartClientChecksumTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=aws_aws-sdk-java-v2&issues=AZ23bPKmBBAZJmFr3IW_&open=AZ23bPKmBBAZJmFr3IW_&pullRequest=6894

Check warning on line 63 in core/sdk-core/src/test/java/software/amazon/awssdk/core/async/AsyncRequestBodyFromInputStreamConfigurationTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=aws_aws-sdk-java-v2&issues=AZ23bPN0BBAZJmFr3IXF&open=AZ23bPN0BBAZJmFr3IXF&pullRequest=6894

Check failure on line 38 in core/sdk-core/src/test/java/software/amazon/awssdk/core/internal/async/InputStreamWithExecutorAsyncRequestBodyTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this "try" to a try-with-resources.

See more on https://sonarcloud.io/project/issues?id=aws_aws-sdk-java-v2&issues=AZ23bPNZBBAZJmFr3IXD&open=AZ23bPNZBBAZJmFr3IXD&pullRequest=6894

Check warning on line 107 in http-clients/url-connection-client/src/test/java/software/amazon/awssdk/http/urlconnection/UrlConnectionHttpClientWithCustomCreateWireMockTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=aws_aws-sdk-java-v2&issues=AZ23bPQMBBAZJmFr3IXJ&open=AZ23bPQMBBAZJmFr3IXJ&pullRequest=6894

Check failure on line 74 in core/sdk-core/src/test/java/software/amazon/awssdk/core/internal/async/InputStreamWithExecutorAsyncRequestBodyTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this "try" to a try-with-resources.

See more on https://sonarcloud.io/project/issues?id=aws_aws-sdk-java-v2&issues=AZ23bPNZBBAZJmFr3IXE&open=AZ23bPNZBBAZJmFr3IXE&pullRequest=6894

Check warning on line 80 in http-clients/url-connection-client/src/test/java/software/amazon/awssdk/http/urlconnection/UrlConnectionHttpClientWithCustomCreateWireMockTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=aws_aws-sdk-java-v2&issues=AZ23bPQMBBAZJmFr3IXH&open=AZ23bPQMBBAZJmFr3IXH&pullRequest=6894

Check warning on line 94 in http-clients/url-connection-client/src/test/java/software/amazon/awssdk/http/urlconnection/UrlConnectionHttpClientWithCustomCreateWireMockTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=aws_aws-sdk-java-v2&issues=AZ23bPQMBBAZJmFr3IXI&open=AZ23bPQMBBAZJmFr3IXI&pullRequest=6894

Check warning on line 120 in services/s3/src/test/java/software/amazon/awssdk/services/s3/internal/multipart/MultipartClientChecksumTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=aws_aws-sdk-java-v2&issues=AZ23bPKmBBAZJmFr3IXA&open=AZ23bPKmBBAZJmFr3IXA&pullRequest=6894

Check warning on line 72 in core/sdk-core/src/test/java/software/amazon/awssdk/core/internal/async/InputStreamWithExecutorAsyncRequestBodyTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=aws_aws-sdk-java-v2&issues=AZ23bPNZBBAZJmFr3IXC&open=AZ23bPNZBBAZJmFr3IXC&pullRequest=6894

Check warning on line 79 in http-clients/aws-crt-client/src/main/java/software/amazon/awssdk/http/crt/internal/response/InputStreamAdaptingHttpStreamResponseHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this lambda with method reference 'responseHandlerHelper::closeStream'.

See more on https://sonarcloud.io/project/issues?id=aws_aws-sdk-java-v2&issues=AZ23bPPtBBAZJmFr3IXG&open=AZ23bPPtBBAZJmFr3IXG&pullRequest=6894