Jmeter 使用打开的JDK9生成java.lang.NullPointerException失败
我试图在Ubuntu17.10平台上使用开放JDK9从源代码构建Jmeter 40。 生成失败,出现以下错误:Jmeter 使用打开的JDK9生成java.lang.NullPointerException失败,jmeter,openjdk,Jmeter,Openjdk,我试图在Ubuntu17.10平台上使用开放JDK9从源代码构建Jmeter 40。 生成失败,出现以下错误: init-version: [echo] jmeter.version = 4.0 [echo] display.version = 4.0.20180223 [echo] implementation.version = 4.0.20180223 compile-jorphan: [javac] Compiling 61 source file
init-version:
[echo] jmeter.version = 4.0
[echo] display.version = 4.0.20180223
[echo] implementation.version = 4.0.20180223
compile-jorphan:
[javac] Compiling 61 source files to /root/apache-jmeter-4.0/build/jorphan
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.8
[javac] 1 warning
[javac] An exception has occurred in the compiler (9-Ubuntu). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
[javac] java.lang.NullPointerException
[javac] at jdk.zipfs/jdk.nio.zipfs.JarFileSystem.getVersionMap(JarFileSystem.java:137)
[javac] at jdk.zipfs/jdk.nio.zipfs.JarFileSystem.createVersionedLinks(JarFileSystem.java:112)
[javac] at jdk.zipfs/jdk.nio.zipfs.JarFileSystem.<init>(JarFileSystem.java:85)
[javac] at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:134)
[javac] at jdk.compiler/com.sun.tools.javac.file.JavacFileManager$ArchiveContainer.<init>(JavacFileManager.java:517)
[javac] at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.getContainer(JavacFileManager.java:319)
[javac] at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.list(JavacFileManager.java:715)
试用
git clone http://git.apache.org/jmeter.git
git checkout v4_0
参考:
如果我在这里遗漏了什么,请告诉我。根据答案(谁应该回答而不是评论:-)获得奖励)
这是一个JDK错误:
已修复JDK11中要发布的问题。希望它能被后端口。我想就像exception所说的,这是JDK中的一个bug。这可能是:(1月31日解决,目标版本似乎是11,似乎还没有发布:)JDK-8193802的Backports部分列出了它已被后端口到的版本。
git clone http://git.apache.org/jmeter.git
git checkout v4_0