Bug 265353 - net/keycloak 15.1.1 ByteBuffer no such method error openjdk8
Summary: net/keycloak 15.1.1 ByteBuffer no such method error openjdk8
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-21 09:54 UTC by Julian Noble
Modified: 2022-08-28 11:45 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (freebsd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Noble 2022-07-21 09:54:35 UTC
keycloak@postgresql built with poudriere and pkg installed on 13.1-RELEASE

dependency openjdk8 is installed by the keycloak pkg

When sending a test smtp email from the keycloak management interface the following error occurs:

2022-07-21 08:19:57,214 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-1) Uncaught server error: java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;


Installing pkg openjdk18 seems to fix this error - but I have not tested many keycloak features yet to know if this is fully compatible.

keycloak 15.1.1 is now significantly behind anyway (keycloak is up to 18) but I expected this version to work without having to install an additional openjdk version.

Unable to uninstall openjdk8 without it removing keycloak-postgres
Guidance not found in ports/UPDATING
Comment 1 Matthias Wolf 2022-08-15 15:38:10 UTC
Recent Keycloak versions do need at least OpenJDK 11. The dependencies will be fixed in the upcoming upgrade to v19.0.1, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265072 for details on this.
Comment 2 Fernando Apesteguía freebsd_committer freebsd_triage 2022-08-17 06:00:19 UTC
Julian,

Do you still have the problem after the update to 19.0.1?
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2022-08-28 11:45:50 UTC
OP timeout after 11 days