Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 May 2022 14:48:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 263881] java/openjdk17-jre Exception: Thread CPU time measurement is not supported
Message-ID:  <bug-263881-8522-hNCMABqG6t@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-263881-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-263881-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-java (Nobody)
<java@FreeBSD.org> for maintainer-feedback:
Bug 263881: java/openjdk17-jre Exception: Thread CPU time measurement is not
supported
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263881



--- Description ---
Using OpenJDK17-JRE with GoCD Server (Zip version) from here:
https://download.gocd.org/binaries/22.1.0-13913/generic/go-server-22.1.0-13=
913.
zip

GoCD is a CI/CD server.

GoCD Server fails to run correctly when running a job in a Pipeline.

Downgrading to OpenJDK11-JRE fixes the issue, the above error no longer
appears.

The following error seems to be the culprit.

java.lang.UnsupportedOperationException: Thread CPU time measurement is not
supported.
	at
java.management/sun.management.ThreadImpl.verifyThreadCpuTime(Unknown Sourc=
e)
	at java.management/sun.management.ThreadImpl.getThreadCpuTime(Unknown
Source)
	at
jdk.management/com.sun.management.internal.HotSpotThreadImpl.getThreadCpuTi=
me(U
nknown
Source)
	at java.management/sun.management.ThreadImpl.getThreadCpuTime(Unknown
Source)
	at
com.thoughtworks.go.server.service.support.DaemonThreadStatsCollector.captu=
reSt
ats(DaemonThreadStatsCollector.java:33)
	at
com.thoughtworks.go.server.messaging.activemq.JMSMessageListenerAdapter.run=
Impl
(JMSMessageListenerAdapter.java:82)
	at
com.thoughtworks.go.server.messaging.activemq.JMSMessageListenerAdapter.run=
(JMS
MessageListenerAdapter.java:63)
	at java.base/java.lang.Thread.run(Unknown Source)

Please drop me an email if you want me to setup an reproducable example.

Thank you



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263881-8522-hNCMABqG6t>