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

Reusing a shared Artemis container in Quarkus Devservice not working properly #639

Closed
fmjaeschke opened this issue Oct 12, 2024 · 0 comments · Fixed by #641
Closed

Reusing a shared Artemis container in Quarkus Devservice not working properly #639

fmjaeschke opened this issue Oct 12, 2024 · 0 comments · Fixed by #641
Labels
backport-3.2.x bug Something isn't working

Comments

@fmjaeschke
Copy link
Contributor

When a shared container should be used the URI is missing any scheme.

As io.quarkus.devservices.common.ContainerAddress.getUrl() method returns only a String containing "host:port".

return maybeContainerAddress
.map(containerAddress -> new RunningDevService(
containerName,
containerAddress.getId(),
null,
urlPropertyName,
containerAddress.getUrl()))

Subsequently it fails, as the returned URI is not valid.

2024-10-12 13:05:58,639 ERROR [io.qua.run.Application] (Quarkus Main Thread) Failed to start application: java.lang.RuntimeException: Failed to start quarkus
        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:119)
        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)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at io.quarkus.runner.bootstrap.StartupActionImpl$1.run(StartupActionImpl.java:116)
        at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.IllegalStateException: java.lang.RuntimeException: java.lang.NullPointerException: Schema localhost not found
        at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:239)
        at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:280)
        at io.quarkus.artemis.jms.runtime.ArtemisJmsRecorder.extractConnectionFactory(ArtemisJmsRecorder.java:52)
        at io.quarkus.artemis.jms.runtime.ArtemisJmsRecorder.getConnectionFactoryProducer(ArtemisJmsRecorder.java:35)
        at io.quarkus.deployment.steps.ArtemisJmsProcessor$configure1243796012.deploy_0(Unknown Source)
        at io.quarkus.deployment.steps.ArtemisJmsProcessor$configure1243796012.deploy(Unknown Source)
        ... 11 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Schema localhost not found
        at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.setBrokerURL(ActiveMQConnectionFactory.java:260)
        at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:237)
        ... 16 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Schema localhost not found
        at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.newLocator(ServerLocatorImpl.java:362)
        at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.setBrokerURL(ActiveMQConnectionFactory.java:257)
        ... 17 more
Caused by: java.lang.NullPointerException: Schema localhost not found
        at org.apache.activemq.artemis.utils.uri.URIFactory.newObject(URIFactory.java:56)
        at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.newLocator(ServerLocatorImpl.java:360)
        ... 18 more
@fmjaeschke fmjaeschke changed the title Share Artemis container in Quarkus Devservice not working properly Reusing a shared Artemis container in Quarkus Devservice not working properly Oct 12, 2024
@turing85 turing85 added bug Something isn't working backport-3.2.x labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-3.2.x bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants