You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lambda function (and Step Function execution) should complete successfully
Actual behavior
The Lambda invokes fail with a NPE. This looks to be due to the content-type header being in multiValueHeaders instead of in headers in the payload.
Steps to reproduce
Follow steps in workshop for Power Tuning
Full log output
java.lang.NullPointerException: Cannot invoke "com.amazonaws.serverless.proxy.model.SingleValueHeaders.get(Object)" because the return value of "com.amazonaws.serverless.proxy.model.AwsProxyRequest.getHeaders()" is null: java.lang.IllegalStateException
java.lang.IllegalStateException: java.lang.NullPointerException: Cannot invoke "com.amazonaws.serverless.proxy.model.SingleValueHeaders.get(Object)" because the return value of "com.amazonaws.serverless.proxy.model.AwsProxyRequest.getHeaders()" is null
at com.amazonaws.serverless.proxy.spring.AwsSpringHttpProcessingUtils.generateHttpServletRequest(AwsSpringHttpProcessingUtils.java:97)
at com.amazonaws.serverless.proxy.spring.SpringDelegatingLambdaContainerHandler.handleRequest(SpringDelegatingLambdaContainerHandler.java:68)
Caused by: java.lang.NullPointerException: Cannot invoke "com.amazonaws.serverless.proxy.model.SingleValueHeaders.get(Object)" because the return value of "com.amazonaws.serverless.proxy.model.AwsProxyRequest.getHeaders()" is null
at com.amazonaws.serverless.proxy.spring.AwsSpringHttpProcessingUtils.generateRequest1(AwsSpringHttpProcessingUtils.java:129)
at com.amazonaws.serverless.proxy.spring.AwsSpringHttpProcessingUtils.generateHttpServletRequest(AwsSpringHttpProcessingUtils.java:110)
at com.amazonaws.serverless.proxy.spring.AwsSpringHttpProcessingUtils.generateHttpServletRequest(AwsSpringHttpProcessingUtils.java:95)
... 1 more
The text was updated successfully, but these errors were encountered:
Serverless Java Container version:
2.1.0
Implementations:
Spring Boot 3
Framework version:
SpringBoot 3.4.0
Frontend service:
Step Functions (test invoke using Lambda Power Tuning)
Deployment method:
CDK
Scenario
Running through Java on Lambda workshop (https://github.com/aws-samples/aws-lambda-java-workshop) Power Tuning section
Expected behavior
Lambda function (and Step Function execution) should complete successfully
Actual behavior
The Lambda invokes fail with a NPE. This looks to be due to the
content-type
header being inmultiValueHeaders
instead of inheaders
in the payload.Steps to reproduce
Follow steps in workshop for Power Tuning
Full log output
The text was updated successfully, but these errors were encountered: