Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev ui config edit crashes when I try to unset a property #14934

Closed
emmanuelbernard opened this issue Feb 9, 2021 · 1 comment · Fixed by #14309
Closed

Dev ui config edit crashes when I try to unset a property #14934

emmanuelbernard opened this issue Feb 9, 2021 · 1 comment · Fixed by #14309
Labels
area/dev-ui kind/bug Something isn't working
Milestone

Comments

@emmanuelbernard
Copy link
Member

On an app with Hibernate Panache,

And the following config file

# set DB - only mandatory part
quarkus.datasource.db-kind=postgresql
quarkus.datasource.jdbc.url=jdbc:postgresql:quarkus-demo
quarkus.datasource.username=quarkus-demo
quarkus.datasource.password=quarkus-demo

# Hibernate details
quarkus.hibernate-orm.database.generation=drop-and-create
# don't do this at home !!!!!!
%prod.quarkus.hibernate-orm.database.generation=drop-and-create
%prod.quarkus.hibernate-orm.sql-load-script=import.sql
quarkus.hibernate-orm.log.sql=true

I load dev ui config editor and try to unset quarkus.hibernate-orm.log.sql by setting it to empty. When I hit update I get the following error

io.quarkus.runtime.configuration.ConfigurationException: One or more configuration errors have prevented the application from starting. The errors are:
  - SRCFG00014: Property quarkus.hibernate-orm.log.sql is required but the value was not found or is empty

Resulted in: java.lang.RuntimeException: Failed to start quarkus
	at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:907)
	at io.quarkus.runtime.Application.start(Application.java:90)
	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:97)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:66)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:42)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:119)
	at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at io.quarkus.runner.bootstrap.StartupActionImpl$3.run(StartupActionImpl.java:134)
	at java.base/java.lang.Thread.run(Thread.java:834)
@emmanuelbernard emmanuelbernard added the kind/bug Something isn't working label Feb 9, 2021
@ghost ghost added the triage/needs-triage label Feb 9, 2021
@emmanuelbernard
Copy link
Member Author

@stuartwdouglas

stuartwdouglas added a commit to radcortez/quarkus that referenced this issue Feb 9, 2021
@ghost ghost added this to the 1.13 - master milestone Feb 11, 2021
@gsmet gsmet modified the milestones: 1.13 - master, 1.11.3.Final Feb 11, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Feb 11, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dev-ui kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants