Comments (2)
Only occurs for async controller methods
from micronaut-core.
I can reproduce it on the benchmark project:
- Revert the latest performance changes
- Set
maximum-pool-size: 512
/gradlew micronaut-vertx-pg-client:run
http://localhost:8080/prepare-data-for-test
wrk -H 'Host: localhost' -H 'Accept: application/json,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7' -H 'Connection: keep-alive' --latency -d 150 -c 512 --timeout 8 -t 128 "http://localhost:8080/db"
java.lang.NullPointerException: Cannot invoke "io.micronaut.http.MutableHttpResponse.header(java.lang.CharSequence, java.lang.CharSequence)" because "mutableHttpResponse" is null
at benchmark.filter.ServerHeaderFilter.addDateHeader(ServerHeaderFilter.java:28)
at benchmark.filter.$ServerHeaderFilter$Definition$Exec.dispatch(Unknown Source)
at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461)
at io.micronaut.http.filter.MethodFilter.filter0(MethodFilter.java:342)
at io.micronaut.http.filter.MethodFilter.filter(MethodFilter.java:331)
at io.micronaut.http.filter.MethodFilter.processResponseFilter(MethodFilter.java:305)
at io.micronaut.http.filter.FilterRunner.filterResponse(FilterRunner.java:220)
at io.micronaut.http.filter.FilterRunner.lambda$run$1(FilterRunner.java:163)
at io.micronaut.core.execution.CompletableFutureExecutionFlowImpl.lambda$flatMap$0(CompletableFutureExecutionFlowImpl.java:51)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2194)
at io.vertx.core.Future.lambda$toCompletionStage$3(Future.java:583)
at io.vertx.core.impl.future.FutureImpl$4.onFailure(FutureImpl.java:188)
at io.vertx.core.impl.future.FutureBase.emitFailure(FutureBase.java:81)
at io.vertx.core.impl.future.FutureImpl.tryFail(FutureImpl.java:278)
at io.vertx.core.impl.future.Mapping.onFailure(Mapping.java:45)
from micronaut-core.
Related Issues (20)
- Micronaut Management stopped working after migration to Micronaut 4.5.3 HOT 5
- Micronaut 3 to 4 migration issue: request.getHaaders.getFirst (key, type.class) can no longer convert HOT 1
- CompletableFuture endpoint with a redirect response returns a 200
- Micronaut 4 throws 404 error for an endpoint having special characters in path parameter HOT 1
- SslContext with Micronaut HttpClient HOT 2
- Support inject a list of values in expression language
- ClassCastException: class io.netty.handler.codec.http.LastHttpContent$1 cannot be cast to class io.netty.handler.codec.http.HttpRequest HOT 10
- @JsonFormat not working for @Emeddable class HOT 3
- Micronaut 4.5 silently ignores classpath issues and doesn't register the beans
- Threading model for HTTP Client and Java 21+ HOT 4
- Allow the Injection of SequencedCollections (Set/Map/Generic-Collection) of Beans
- Micronaut is unable to inject dependencies into nested tests when using KSP
- Expose AnnotationMetadata of the route match in server filters HOT 2
- @ConfigurationProperties not functioning correctly on nested configuration when using KSP
- Micronaut 4 regression: `@EachProperty` with enum-type `@Parameter` does not work
- DuplicateRouteException when using two Controller uris HOT 7
- Remove all --initialize-at-runtime flags that references bean definition classes
- Custom AbstractPropertySourceLoader not loading the configuration HOT 5
- Enhancing ResourceBundleMessageSource to Support Multiple Message Files in Micronaut
- etags in Micronaut HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micronaut-core.