8000 Keycloak fails to run tests with embedded undertow · Issue #49058 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Keycloak fails to run tests with embedded undertow #49058

Closed

Description

@mposolda

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

dist/quarkus

Describe the bug

It seems that since this change #48733, the Keycloak is broken when running tests with embedded undertow in the old testsuite. For example those steps:

mvn clean install -DskipTests=true
cd testsuite/integration-arquillian/tests/base/
mvn clean install -Dtest=UserInfoTest

Fails with:

...
Caused by: java.lang.NullPointerException: Cannot read field "features" because the return value of "org.keycloak.common.Profile.getInstance()" is null
	at org.keycloak.common.Profile.isFeatureEnabled(Profile.java:520)
	at org.keycloak.services.resteasy.ResteasyKeycloakApplication.<init>(ResteasyKeycloakApplication.java:52)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
	at org.jboss.resteasy.core.ConstructorInjectorImpl.constructOutsideRequest(ConstructorInjectorImpl.java:203)
	... 58 more

Version

Keycloak main (from 2026-05-18)

Regression

  • The issue is a regression

Expected behavior

Tests working

Actual behavior

Not possible to run the tests ind the arquillian testsuite with embedded undertow

How to Reproduce?

  • See description

Anything else?

No response

Activity

  1. added theissue type on May 18, 2026
  2. shawkins commented on May 18, 2026

    @shawkins
    Contributor

    I'll address this.

  3. added a commit that references this issue on May 18, 2026
    deed3f7
  4. added a commit that references this issue on May 18, 2026
    ce38c5b
  5. 11 remaining items

  6. added a commit that references this issue on Jul 20, 2026
    d3e1e66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0