Git Product home page Git Product logo

Comments (2)

dstepanov avatar dstepanov commented on July 22, 2024

Only occurs for async controller methods

from micronaut-core.

dstepanov avatar dstepanov commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.