JDK 9 build 109 -> Lucene's Ant build works again; still missing Hotspot patches

Uwe Schindler uschindler at apache.org
Thu Mar 17 15:39:57 UTC 2016


Unfortunately we found a bug in build 110 - not as bad as the Ant one, but the Gradle build system does no longer start! :(

The following fails:

C:\Users\Uwe Schindler\workspace-lucene\tester\src>cat Test.java
import java.lang.management.ManagementFactory;
import com.sun.management.HotSpotDiagnosticMXBean;

public final class Test {

 public static void main(String... args) throws Throwable {


C:\Users\Uwe Schindler\workspace-lucene\tester\src>javac Test.java

C:\Users\Uwe Schindler\workspace-lucene\tester\src>java Test
Exception in thread "main" java.util.ServiceConfigurationError: sun.management.spi.PlatformMBeanProvider: Provider jdk.management.cmm.i
nternal.PlatformMBeanProviderImpl not found
       at java.util.ServiceLoader.fail(ServiceLoader.java:237)
       at java.util.ServiceLoader.access$300(ServiceLoader.java:183)
       at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:370)
       at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:402)
       at java.util.ServiceLoader$1.next(ServiceLoader.java:478)
       at java.lang.Iterable.forEach(Iterable.java:74)
       at java.lang.management.ManagementFactory$PlatformMBeanFinder.lambda$static$0(ManagementFactory.java:890)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.security.AccessController.doPrivileged(AccessController.java:428)
       at java.lang.management.ManagementFactory$PlatformMBeanFinder.<clinit>(ManagementFactory.java:886)
       at java.lang.management.ManagementFactory.getPlatformMXBean(ManagementFactory.java:649)
       at Test.main(Test.java:8)

Should I open an issue or can we do this through this mail?

This breaks several things:

- Grade fails to start
- One Lucene test, because it detects Oracle and 64 bits, but then finds out that we have no Hotspot bean
- The Lucene Test Runner cannot get the PID of a Process started
- Elasticsearch cannot find its own process ID because of this


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

> -----Original Message-----
> From: Robert Muir [mailto:rcmuir at gmail.com]
> Sent: Thursday, March 17, 2016 4:01 PM
> 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>; Steve Drach <steve.drach at oracle.com>; Alan
> Bateman <Alan.Bateman at oracle.com>; hotspot compiler <hotspot-
> compiler-dev at openjdk.java.net>
> Subject: Re: JDK 9 build 109 -> Lucene's Ant build works again; still missing
> Hotspot patches
> On Thu, Mar 17, 2016 at 10:25 AM, Uwe Schindler <uschindler at apache.org>
> wrote:
> >
> > My local tests showed that the MethodHandle-bug is solved, the other one
> is hopefully fixed, too. Robert may have a way to quickly reproduce.
> >
> JDK-8150280 is fixed too, I just tested it. Thanks!

More information about the core-libs-dev mailing list