Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-2235

Unexpected warning message after reload a Dev Mode application

    XMLWordPrintable

Details

    • Hide
      1. create and run a quarkus App in devMode
      mvn io.quarkus.platform:quarkus-maven-plugin:2.9.2.Final:create \
          -DprojectGroupId=org.acme \
          -DprojectArtifactId=getting-started \
          -Dextensions="resteasy-reactive" 
      cd getting-started
      

       

      mvn quarkus:dev 

             2.  Navigated to dev UI - Config Editor and changed quarkus.application.name to code-with-quarkus-dd. This triggered application restart and complaint about the old app name
             3. You will see the following warning message in the reloaded application

      WARN  [io.qua.run.con.ConfigRecorder] (Quarkus Main Thread) Build time property cannot be changed at runtime:
       - quarkus.application.name is set to 'code-with-quarkus' but it is build time fixed to 'code-with-quarkus-dd'. Did you change the property quarkus.application.name after building the application? 

       

      Show
      create and run a quarkus App in devMode mvn io.quarkus.platform:quarkus-maven-plugin:2.9.2.Final:create \ -DprojectGroupId=org.acme \ -DprojectArtifactId=getting-started \ -Dextensions= "resteasy-reactive" cd getting-started   mvn quarkus:dev        2.  Navigated to dev UI - Config Editor and changed  quarkus.application.name  to  code-with-quarkus-dd . This triggered application restart and complaint about the old app name        3. You will see the following warning message in the reloaded application WARN [io.qua.run.con.ConfigRecorder] (Quarkus Main Thread ) Build time property cannot be changed at runtime: - quarkus.application.name is set to 'code-with-quarkus' but it is build time fixed to 'code-with-quarkus-dd' . Did you change the property quarkus.application.name after building the application?  
    • ---

    Description

      When end-user changes a build time property through DevUI (Quarkus devMode) unexpected warning message show up in the reloaded application. 

       Quarkus App name: code-with-quarkus to code-with-quarkus-dd

      __  ____  __  _____   ___  __ ____  ______
       --/ __ \/ / / / _ | / _ \/ //_/ / / / __/
       -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
      --\___\_\____/_/ |_/_/|_/_/|_|\____/___/
      2022-06-15 14:05:12,163 INFO  [io.quarkus] (Quarkus Main Thread) code-with-quarkus 1.0.0-SNAPSHOT on JVM (powered by Quarkus 2.9.2.Final) started in 2.704s. Listening on: http://localhost:8080
      
      2022-06-15 14:05:12,181 INFO  [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
      2022-06-15 14:05:12,182 INFO  [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, resteasy-reactive, smallrye-context-propagation, vertx]
      2022-06-15 14:05:48,628 INFO  [io.qua.dep.dev.RuntimeUpdatesProcessor] ([DevConsole]vert.x-eventloop-thread-0) File change detected: /Users/rsvoboda/Downloads/code-with-quarkus/src/main/resources/application.properties
      2022-06-15 14:05:48,633 INFO  [io.qua.dep.dev.RuntimeUpdatesProcessor] ([DevConsole]vert.x-eventloop-thread-0) Restarting quarkus due to changes in application.properties.
      2022-06-15 14:05:48,654 INFO  [io.quarkus] (Quarkus Main Thread) code-with-quarkus stopped in 0.020s
      __  ____  __  _____   ___  __ ____  ______
       --/ __ \/ / / / _ | / _ \/ //_/ / / / __/
       -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
      --\___\_\____/_/ |_/_/|_/_/|_|\____/___/
      2022-06-15 14:05:48,900 WARN  [io.qua.run.con.ConfigRecorder] (Quarkus Main Thread) Build time property cannot be changed at runtime:
       - quarkus.application.name is set to 'code-with-quarkus' but it is build time fixed to 'code-with-quarkus-dd'. Did you change the property quarkus.application.name after building the application?
      
      2022-06-15 14:05:48,904 INFO  [io.quarkus] (Quarkus Main Thread) code-with-quarkus-dd 1.0.0-SNAPSHOT on JVM (powered by Quarkus 2.9.2.Final) started in 0.241s. Listening on: http://localhost:8080
      2022-06-15 14:05:48,905 INFO  [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
      2022-06-15 14:05:48,905 INFO  [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, resteasy-reactive, smallrye-context-propagation, vertx]
      2022-06-15 14:05:48,906 INFO  [io.qua.dep.dev.RuntimeUpdatesProcessor] ([DevConsole]vert.x-eventloop-thread-0) Live reload total time: 0.281s
      2022-06-15 14:16:10,445 INFO  [io.quarkus] (Shutdown thread) code-with-quarkus-dd stopped in 0.007s 

      Unexpected warning message:

      WARN [io.qua.run.con.ConfigRecorder] (Quarkus Main Thread) Build time property cannot be changed at runtime: - quarkus.application.name is set to 'code-with-quarkus' but it is build time fixed to 'code-with-quarkus-dd'. Did you change the property quarkus.application.name after building the application?  

      Is unexpected because the current application name on the reloaded application is "code-with-quarkus-dd" and nobody tries to put the original name back. 

      Attachments

        Issue Links

          Activity

            People

              manderse@redhat.com Max Andersen
              rhn-support-pagonzal Pablo Gonzalez Granados (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: