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

Infinispan client deployment tests fail unless test-containers and start-containers is set #37658

Closed
dmlloyd opened this issue Dec 11, 2023 · 1 comment · Fixed by #38193
Closed
Assignees
Labels
area/infinispan Infinispan kind/bug Something isn't working
Milestone

Comments

@dmlloyd
Copy link
Member

dmlloyd commented Dec 11, 2023

Describe the bug

Building the Infinispan client deployment module will fail unless test-containers and start-containers is set.

Expected behavior

It is expected that container-dependent tests would be skipped if test-containers is not set.

Actual behavior

[ERROR] io.quarkus.infinispan.test.MultipleNamedInfinispanClientsTest.testNamedDevServices -- Time elapsed: 0.005 s <<< ERROR!
jakarta.enterprise.inject.CreationException: Null contextual instance was produced by a normal scoped synthetic bean: SYNTHETIC bean [class=org.infinispan.client.hotrod.RemoteCacheManager, id=iuJWECJKRxD6SGBV0Bxy9oFLf-0]
    at org.infinispan.client.hotrod.RemoteCacheManager_iuJWECJKRxD6SGBV0Bxy9oFLf-0_Synthetic_Bean.doCreate(Unknown Source)
    at org.infinispan.client.hotrod.RemoteCacheManager_iuJWECJKRxD6SGBV0Bxy9oFLf-0_Synthetic_Bean.create(Unknown Source)
    at org.infinispan.client.hotrod.RemoteCacheManager_iuJWECJKRxD6SGBV0Bxy9oFLf-0_Synthetic_Bean.create(Unknown Source)
    at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:118)
    at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:38)
    at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:35)
    at io.quarkus.arc.generator.Default_jakarta_enterprise_context_ApplicationScoped_ContextInstances.c3(Unknown Source)
    at io.quarkus.arc.generator.Default_jakarta_enterprise_context_ApplicationScoped_ContextInstances.computeIfAbsent(Unknown Source)
    at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:35)
    at io.quarkus.arc.impl.ClientProxies.getApplicationScopedDelegate(ClientProxies.java:21)
    at org.infinispan.client.hotrod.RemoteCacheManager_iuJWECJKRxD6SGBV0Bxy9oFLf-0_Synthetic_ClientProxy.arc$delegate(Unknown Source)
    at org.infinispan.client.hotrod.RemoteCacheManager_iuJWECJKRxD6SGBV0Bxy9oFLf-0_Synthetic_ClientProxy.getConfiguration(Unknown Source)
    at io.quarkus.infinispan.test.MultipleNamedInfinispanClientsTest.testNamedDevServices(MultipleNamedInfinispanClientsTest.java:48)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at io.quarkus.test.QuarkusUnitTest.runExtensionMethod(QuarkusUnitTest.java:500)
    at io.quarkus.test.QuarkusUnitTest.interceptTestMethod(QuarkusUnitTest.java:414)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

and other exceptions.

How to Reproduce?

Build Quarkus once (e.g. mvn clean && mvn install -DskipTests) and then run mvn install in the extensions/infinispan-client/deployment directory.

Output of uname -a or ver

Darwin xxxx 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64

Output of java -version

openjdk version "17.0.9" 2023-10-17 OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9) OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode)

Quarkus version or git rev

0d90b7c

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546) Maven home: /Users/david/local/apache-maven Java version: 17.0.9, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "14.1.2", arch: "aarch64", family: "mac"

Additional information

No response

@dmlloyd dmlloyd added the kind/bug Something isn't working label Dec 11, 2023
@quarkus-bot quarkus-bot bot added the area/infinispan Infinispan label Dec 11, 2023
Copy link

quarkus-bot bot commented Dec 11, 2023

/cc @karesti (infinispan), @wburns (infinispan)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/infinispan Infinispan kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants