quarkus: Single project to mutl project gets NPE at UnixPath.normalizeAndCheck ad 404 when hit the endpoints

Describe the bug

UPDATE: it is on 1.0.1 final

Used to have working quarkus web project with rest-easy end-points.

Converted it to multi-module one.

Expected behavior all up and running and - responding by the hitting the url endpoints.

Actual behavior

Listening for transport dt_socket at address: 5005 Exception in thread “main” java.lang.RuntimeException: java.lang.NullPointerException at io.quarkus.dev.DevModeMain.main(DevModeMain.java:70) Caused by: java.lang.NullPointerException at sun.nio.fs.UnixPath.normalizeAndCheck(UnixPath.java:77)

and 404 on hitting the endpoint.

To Reproduce Steps to reproduce the behavior: 1. my-project-service

  • my-project-api
    • data-api-object.java
    • pom.xml // dep on quarkus-core as provided
  • my-project-backend
    • pom.xml + depends on my-project-api
  • pom.xml

./mvnw compile quarkus:dev

Listening for transport dt_socket at address: 5005 Exception in thread “main” java.lang.RuntimeException: java.lang.NullPointerException at io.quarkus.dev.DevModeMain.main(DevModeMain.java:70) Caused by: java.lang.NullPointerException at sun.nio.fs.UnixPath.normalizeAndCheck(UnixPath.java:77)

  • [io.quarkus] (main) Quarkus 1.0.1.Final started in 1.595s. Listening on: http://0.0.0.0:8080
  • [io.quarkus] (main) Installed features: [agroal, cdi, infinispan-client, jaeger, narayana-jta, reactive-pg-client, rest-client, resteasy, resteasy-jackson, smallrye-context-propagation, smallrye-fault-tolerance, smallrye-health, smallrye-metrics, smallrye-openapi, smallrye-opentracing, swagger-ui, vertx]

Configuration


n my-project-backend / ... / resources/application.properties

quarkus.application.name=my-project-service
quarkus.http.root-path=/my-project-service

Additional context Related question: https://stackoverflow.com/questions/59328770/quarkus-project-once-covered-to-mutli-module-form-got-404-when-hit-the-existing

And potentially related previous fixed related issue: https://github.com/quarkusio/quarkus/commit/bc1ffba31f9979b4b60f2bcb6a122a6298649744

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (10 by maintainers)

Most upvoted comments

@Sergey80 you first need to do ./mvnw clean install -DskipTests in the parent project.

Now like I said I’m not sure if the dev mode is supposed to work in the parent project. If it is, then there is definitely a bug, because although I can’t reproduce your NPE, the application doesn’t behave correctly.