Quarkus Reactive Application throwing IllegalArgumentException: Wrong syntax of connection URI

Solution Verified - Updated -

Issue

Quarkus Reactive Application failing to start with:

ERROR [io.qua.run.Application] (main) Failed to start application (with profile [prod]): java.lang.IllegalArgumentException: Wrong syntax of connection URI
        at io.vertx.pgclient.impl.PgConnectionUriParser.doParse(PgConnectionUriParser.java:97)
        at io.vertx.pgclient.impl.PgConnectionUriParser.parse(PgConnectionUriParser.java:66)
        at io.vertx.pgclient.impl.PgConnectionUriParser.parse(PgConnectionUriParser.java:58)
        at io.vertx.pgclient.PgConnectOptions.fromUri(PgConnectOptions.java:65)
        at io.quarkus.reactive.pg.client.runtime.PgPoolRecorder.lambda$toPgConnectOptions$1(PgPoolRecorder.java:131)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at io.quarkus.reactive.pg.client.runtime.PgPoolRecorder.toPgConnectOptions(PgPoolRecorder.java:126)
        at io.quarkus.reactive.pg.client.runtime.PgPoolRecorder.initialize(PgPoolRecorder.java:78)
        at io.quarkus.reactive.pg.client.runtime.PgPoolRecorder.configurePgPool(PgPoolRecorder.java:55)
        at io.quarkus.deployment.steps.ReactivePgClientProcessor$build897843755.deploy_0(Unknown Source)
        at io.quarkus.deployment.steps.ReactivePgClientProcessor$build897843755.deploy(Unknown Source)
        at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
        at io.quarkus.runtime.Application.start(Application.java:101)
        at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:111)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
        at io.quarkus.runner.GeneratedMain.main(Unknown Source)

This is what we have for the database url:

%prod.quarkus.datasource.reactive.url=jdbc:postgresql://localhost:5432/quarkus_test

Environment

Red Hat build of Quarkus (RHBQ)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content