JDK 9 Build 111 still has ManagementFactory problems, but only on Linux - not on Windows

Uwe Schindler uschindler at apache.org
Sat Mar 26 09:33:33 UTC 2016

Hi Alan,

I have installed build 111 of JDK 9 (which now includes Jigsaw - cool and thanks) on the Jenkins Server, but the (packaging) problems with ManagementFactory's SPIs seems to persist. Interestingly only on Linux (.tar.gz), but not on Windows builds (.exe). 


Is there a quick way via command line flag to disable the extra beans which are not found? I'd really like to test build 111.


Uwe Schindler
uschindler at apache.org 
ASF Member, Apache Lucene PMC / Committer
Bremen, Germany

> -----Original Message-----
> From: Alan Bateman [mailto:Alan.Bateman at oracle.com]
> Sent: Friday, March 18, 2016 10:43 AM
> To: Uwe Schindler <uschindler at apache.org>
> Cc: 'Rory O'Donnell' <rory.odonnell at oracle.com>; 'Core-Libs-Dev' <core-libs-
> dev at openjdk.java.net>
> Subject: Re: JDK 9 build 109 -> Lucene's Ant build works again; still missing
> Hotspot patches
> On 17/03/2016 18:39, Uwe Schindler wrote:
> > Hi,
> >
> > JDK-9 build 109 works, build 110 does not work. This is *not* about Jigsaw,
> just the standard JDK build.
> > I have the feeling this is just a packaging bug. The META-INF/services file in
> question contains a class that is missing in the jimage.
> >
> Just catching up on this thread.
> The EA builds on java.net don't include a number of Oracle "specials".
> These specials integrate as service providers and until now, have
> required a sprinkle of fairy dust in the build to create the service
> configuration file with the complete list of PlatformMBeanProvider
> implementations. The issue is that the build is incorrectly appending a
> class name of an implementation that is not in the build. A non-issue
> for OpenJDK builds, a non-issue for the builds in Oracle as these
> service providers are present. Just an issue for the EA builds, sorry
> about that.
> If the module system goes into JDK 9 next week for jdk-9+111 then it
> should address this issue. The reason is that the service configuration
> files go away, as has the make file recipes to combine things at build
> time. If something bad happens and we can't integrate next week then we
> can trivially fix the build that is causing the problem.
> Just to add Mandy's comment about com.sun.management being a
> supported
> API. Yes, it is JDK-specific supported (and documented [1]) API. It is
> exported by the jdk.management module when we move to modules (next
> week
> I hope).
> -Alan
> [1] http://docs.oracle.com/javase/8/docs/jre/api/management/extension/

More information about the core-libs-dev mailing list