Skip to content

Dev mode stops without reason instead of restart when fired by code Changed (worked with 1.4.2.Final) #9748

@JiriOndrusek

Description

@JiriOndrusek

Describe the bug
Problem can be simulated on the example from camel-quarkus: https://github.com/apache/camel-quarkus/tree/master/examples/timer-log

Problem doesn't happen with quarkus 1.4.2.Final. (but happens with 1.5.0.cr1, 1.5.0.Final and master)

Expected behavior
App is reloaded with custom code change.

Actual behavior
App stops.

To Reproduce
Steps to reproduce the behavior:

  1. Download https://github.com/apache/camel-quarkus/tree/master/examples/timer-log (version of quarkus could be chaged in https://github.com/apache/camel-quarkus/blob/master/pom.xml#L69)
  2. Run mvn compile quarkus:dev
  3. Change message in TimeRoute.java

Additional context

Problem seems to be happening somewhere near https://github.com/quarkusio/quarkus/blob/master/core/runtime/src/main/java/io/quarkus/runtime/util/ClassPathUtils.java#L84
I can debug that process enters this method with parameter META-INF/quarkus-config-roots.list but it never leaves (no exception is thrown), Java ends also.
I've tried to debug issue also in https://github.com/quarkusio/quarkus/blob/master/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/classloading/QuarkusClassLoader.java#L154,
but it usually ens in different places. I'm probably missing something here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions