Java warnings when running Serviio with Java 25
I've installed Serviio 2.4 on a Raspberry Pi 5 running the latest Debian 13 version of Raspberry Pi OS. I also have the Unifi Controller, another Java-based application, running on the same server, and the latest version of that requires Java 25. If I run Serviio using Java 25, it seems to run fine, and I can load and play back Videos and audio files without problem using either the DLNA client built into my TV or VLC running on various PCs, but I get warnings on the server console about Serviio calling deprecated methods which will be removed in a future Java release.
Console outout:
Console outout:
- Code:
pi@serviio:~ $ java --version
openjdk 25.0.2 2026-01-20
OpenJDK Runtime Environment (build 25.0.2+10-Debian-1deb13u2)
OpenJDK 64-Bit Server VM (build 25.0.2+10-Debian-1deb13u2, mixed mode, sharing)
pi@serviio:~ $ sudo systemctl status serviio.service
● serviio.service - Serviio media Server
Loaded: loaded (/etc/systemd/system/serviio.service; enabled; preset: enabled)
Active: active (running) since Tue 2026-02-17 16:52:32 AEDT; 1min 30s ago
Invocation: 7d14a65412b44148b53d7a81ff6035c0
Main PID: 3416 (java)
Tasks: 101 (limit: 9578)
CPU: 2min 17ms
CGroup: /system.slice/serviio.service
├─3416 java --add-modules jdk.unsupported -Xmx512M -Xms20M -XX:+UseG1GC -XX:GCTimeRatio=1 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dorg.restlet.engine.loggerFacadeClass=org.restlet.ext.sl>
└─4453 ffmpeg -threads 0 -ss 120 -i "/mnt/library/Video/iplayer/U-Z/Yes_Minister (1980)/s03e08-Party_Games.mkv" -an -frames:v 1 -f image2 pipe:
Feb 17 16:52:32 serviio systemd[1]: Started serviio.service - Serviio media Server.
Feb 17 16:53:10 serviio serviio.sh[3416]: WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
Feb 17 16:53:10 serviio serviio.sh[3416]: WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.apache.lucene.util.RamUsageEstimator (file:/opt/serviio-2.4/lib/lucene-core.jar)
Feb 17 16:53:10 serviio serviio.sh[3416]: WARNING: Please consider reporting this to the maintainers of class org.apache.lucene.util.RamUsageEstimator
Feb 17 16:53:10 serviio serviio.sh[3416]: WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
lines 1-16/16 (END)
