FAQ  •  Register  •  Login

Java warnings when running Serviio with Java 25

<<

NickJP

Streaming enthusiast

Posts: 20

Joined: Sat Nov 01, 2014 12:49 am

Post Tue Feb 17, 2026 6:07 am

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:
  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)
<<

Ghati

Serviio newbie

Posts: 1

Joined: Wed Feb 18, 2026 2:48 pm

Post Wed Feb 18, 2026 3:27 pm

Re: Java warnings when running Serviio with Java 25

NickJP wrote: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.nulls brawl mods

your server is perfectly healthy, and you can safely ignore those warnings. It won't impact your media streaming or your Unifi Controller at all.
You're running a bleeding-edge version of Java, and starting in Java 25, Oracle got really strict about apps using an old, legacy memory management trick called sun.misc.Unsafe. Serviio relies on an older search library (Apache Lucene) that still uses this trick. Java 25 is basically just complaining out loud about it, but it still lets it run.

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 28 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.