oscerd opened a new pull request, #25092:
URL: https://github.com/apache/camel/pull/25092

   Backport of #25089 to `camel-4.14.x`.
   
   AWS producer health checks guarded `e.statusCode()` for null but dereferenced
   `e.awsErrorDetails()` directly when recording the AWS error code.
   `AwsServiceException.awsErrorDetails()` is nullable, so such an exception 
makes
   the health check throw
   
   ```
   NullPointerException: Cannot invoke "AwsErrorDetails.errorCode()" because 
the return
   value of "AwsServiceException.awsErrorDetails()" is null
   ```
   
   instead of reporting the endpoint `DOWN` with the message it had already 
prepared.
   
   ## Scope on this branch
   
   Only **15** of the 21 health checks fixed on `main` exist here. The 
cherry-pick
   was resolved by dropping the six whose modules are not on this branch:
   
   * `camel-aws-parameter-store`
   * `camel-aws-security-hub`
   * `camel-aws2-comprehend`
   * `camel-aws2-polly`
   * `camel-aws2-rekognition`
   * `camel-aws2-textract`
   
   Verified afterwards that all 15 remaining health checks carry the guard and 
that
   no unguarded `awsErrorDetails().errorCode()` dereference is left in the 
module set.
   `Athena2ProducerHealthCheckErrorDetailsTest` passes 2/2 on this branch.
   
   No upgrade-guide entry — this prevents a crash on an error path; no 
user-visible
   configuration change.
   
   ---
   _Claude Code on behalf of oscerd_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to