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
[AbstractLambdaContainerHandler:215:] [] ERROR Error while handling request java.lang.NullPointerException: null
at io.micronaut.function.aws.proxy.MicronautResponseWriter.writeResponse(MicronautResponseWriter.java:113)
at io.micronaut.function.aws.proxy.MicronautResponseWriter.writeResponse(MicronautResponseWriter.java:50)
at io.micronaut.function.aws.proxy.AbstractLambdaContainerHandler.proxy(AbstractLambdaContainerHandler.java:213)
at io.micronaut.function.aws.proxy.MicronautLambdaHandler.handleRequest(MicronautLambdaHandler.java:68)
at io.micronaut.function.aws.proxy.MicronautLambdaHandler.handleRequest(MicronautLambdaHandler.java:35)
at lambdainternal.EventHandlerLoader$PojoHandlerAsStreamHandler.handleRequest(EventHandlerLoader.java:180)
at lambdainternal.EventHandlerLoader$2.call(EventHandlerLoader.java:902)
at lambdainternal.AWSLambda.startRuntime(AWSLambda.java:340)
at lambdainternal.AWSLambda.<clinit>(AWSLambda.java:63)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at lambdainternal.LambdaRTEntry.main(LambdaRTEntry.java:150)
Steps To Reproduce
Create a mn app: micronaut/2.4.2/bin/mn create-app --features=aws-lambda,aws-lambda-custom-runtime,shadeddd example.micronaut.micronautguided --build=maven --lang=java
Return a status of 209 MULTI_STATUS
@Get("/207")
// Setting a status that isn't in javax.ws.rs.core.Response.Status
// causes a null pointer exception and causes the api to return a
// 500 Internal Server Error
@Status(HttpStatus.MULTI_STATUS)
public String multiStatus(){
return "multiStatus";
}
Expected Behavior
HTTP/1.1 207 Multi Status
Actual Behaviour
HTTP/1.1 500 Internal Server Error
Steps To Reproduce
micronaut/2.4.2/bin/mn create-app --features=aws-lambda,aws-lambda-custom-runtime,shadeddd example.micronaut.micronautguided --build=maven --lang=java
Environment Information
Env: AWS ALB with AWS Lambda Java8 runtime
Micronaut Version: 2.4.2
JDK Version: 1.8
A potential solution(?): #1168
Example Application
No response
Version
2.4.2
The text was updated successfully, but these errors were encountered: