[Bug 263881] java/openjdk17-jre Exception: Thread CPU time measurement is not supported

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 06 Sep 2023 11:01:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263881

Borja Marcos <borjam@sarenet.es> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |borjam@sarenet.es

--- Comment #4 from Borja Marcos <borjam@sarenet.es> ---
FYI: 

Confirmed for example with the 7.5 versions of UniFi Controller
(net-mgmt/unifi7).

They have switched to Java 17 as a minimum requirement and it doesn´t work with
the current OpenJDK 17 for FreeBSD.

----
[2023-07-18 11:17:42,903] <webapi-8> ERROR [dispatcher] - Servlet.service() for
servlet [dispatcher] in context with path [] threw exception [Request
processing failed; nested exception is
com.google.common.util.concurrent.UncheckedExecutionException:
java.lang.UnsupportedOperationException: Current thread CPU time measurement is
not supported.] with root cause
java.lang.UnsupportedOperationException: Current thread CPU time measurement is
not supported.
----

I reported it to Ubiquiti as those functions are optional and they should check
for availability before trying to use them, but I guess many other programs can
fail in a similar way.

-- 
You are receiving this mail because:
You are the assignee for the bug.