Skip to content

fix(docker): run on Java 25 base (fixes UnsupportedClassVersionError)#19

Merged
mjfelis merged 1 commit into
mainfrom
fix/jvm25-runtime
Jun 3, 2026
Merged

fix(docker): run on Java 25 base (fixes UnsupportedClassVersionError)#19
mjfelis merged 1 commit into
mainfrom
fix/jvm25-runtime

Conversation

@mjfelis

@mjfelis mjfelis commented Jun 3, 2026

Copy link
Copy Markdown
Member

Problem

The stats container crashed at startup:

UnsupportedClassVersionError: com/mobiera/ms/commons/stats/assembler/StatVOAssembler
has been compiled by a more recent version of the Java Runtime (class file version 69.0),
this version of the Java Runtime only recognizes class file versions up to 61.0

Class file 69.0 = Java 25, 61.0 = Java 17.

Cause

The app compiles to Java 25 (maven.compiler.release=25, built with maven:3-eclipse-temurin-25), but src/main/docker/Dockerfile.jvm ran on registry.access.redhat.com/ubi8/openjdk-17. A Java 17 runtime can't load Java 25 bytecode.

Fix

Bump the runtime base to registry.access.redhat.com/ubi9/openjdk-25:1.24 — the same base already used by pm-model.

The app and its dependencies are compiled for Java 25 (maven.compiler.release=25,
built with temurin-25), but Dockerfile.jvm ran on ubi8/openjdk-17. Java 17 cannot
load class file version 69.0, so the container crashed at startup with
UnsupportedClassVersionError (e.g. StatVOAssembler). Bump the runtime base to
ubi9/openjdk-25:1.24 (same as pm-model).
@mjfelis mjfelis merged commit 8a4c5d6 into main Jun 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant