Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8239569

PublicMethodsTest.java failed due to NPE in java.base/java.nio.file.FileSystems.getFileSystem(FileSystems.java:230)

    Details

    • Subcomponent:
    • Introduced In Build:
      b10
    • Introduced In Version:
      15
    • Resolved In Build:
      b21
    • CPU:
      x86_64
    • OS:
      linux, os_x
    • Verification:
      Verified

      Description

      The following test failed in the JDK15 CI:

      java/lang/reflect/PublicMethods/PublicMethodsTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/148)----------
      command: main PublicMethodsTest
      reason: User specified action: run main PublicMethodsTest
      Mode: agentvm
      Agent id: 5
      elapsed time (seconds): 64.509
      ----------configuration:(9/1042)----------
      Boot Layer
        class path: /scratch/mesos/jib-master/install/java/re/jtreg/4.2/promoted/all/b16/bundles/jtreg_bin-4.2.zip/jtreg/lib/javatest.jar
                    /scratch/mesos/jib-master/install/java/re/jtreg/4.2/promoted/all/b16/bundles/jtreg_bin-4.2.zip/jtreg/lib/jtreg.jar
        patch: java.base /scratch/mesos/slaves/90726e33-be99-4e27-9d68-25dad266ef13-S2495/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94243d6a-8e95-452f-ae7f-231cdff5978b/runs/c267f60b-40a5-494f-a8de-85e724d6c5e4/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/patches/java.base

      Test Layer
        class path: /scratch/mesos/slaves/90726e33-be99-4e27-9d68-25dad266ef13-S2495/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94243d6a-8e95-452f-ae7f-231cdff5978b/runs/c267f60b-40a5-494f-a8de-85e724d6c5e4/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/4/java/lang/reflect/PublicMethods/PublicMethodsTest.d
                    /scratch/mesos/jib-master/install/jdk-15+11-354/src.full/open/test/jdk/java/lang/reflect/PublicMethods

      ----------rerun:(30/4014)*----------
      cd /scratch/mesos/slaves/90726e33-be99-4e27-9d68-25dad266ef13-S2495/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94243d6a-8e95-452f-ae7f-231cdff5978b/runs/c267f60b-40a5-494f-a8de-85e724d6c5e4/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/scratch/3 && \\
      HOME=/var/folders/_8/j_59_2fn3qsf6y6vm0j4v55m000_dc/T/sparky-temp-home-3598997731454241896/user_home \\
      JDK8_HOME=/scratch/mesos/jib-master/install/jdk/13/33/bundles/osx-x64/jdk-13_osx-x64_bin.tar.gz/jdk-13.jdk/Contents/Home \\
      JIB_DATA_DIR=/scratch/mesos/jib-master \\
      JIB_HOME=/scratch/mesos/jib-master/install/com/oracle/java/jib/jib/3.0-SNAPSHOT/jib-3.0-SNAPSHOT-distribution.zip-1581612312/jib-3.0-SNAPSHOT-distribution \\
      JTREG_KEYWORDS="!jfr" \\
      JTREG_TIMEOUT_FACTOR=10 \\
      JTREG_VERBOSE=fail,error,time \\
      LC_ALL=C \\
      PATH=/bin:/usr/bin:/usr/sbin \\
      TEST_IMAGE_DIR=/scratch/mesos/jib-master/install/jdk-15+11-354/macosx-x64-debug.test \\
      TEST_IMAGE_GRAAL_DIR=/scratch/mesos/jib-master/install/jdk-15+11-354/macosx-x64-debug.test/hotspot/jtreg/graal \\
          /scratch/mesos/jib-master/install/jdk-15+11-354/macosx-x64-debug.jdk/jdk-15/fastdebug/bin/java \\
              -Dtest.class.path.prefix=/scratch/mesos/slaves/90726e33-be99-4e27-9d68-25dad266ef13-S2495/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94243d6a-8e95-452f-ae7f-231cdff5978b/runs/c267f60b-40a5-494f-a8de-85e724d6c5e4/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/4/java/lang/reflect/PublicMethods/PublicMethodsTest.d:/scratch/mesos/jib-master/install/jdk-15+11-354/src.full/open/test/jdk/java/lang/reflect/PublicMethods \\
              -Dtest.src=/scratch/mesos/jib-master/install/jdk-15+11-354/src.full/open/test/jdk/java/lang/reflect/PublicMethods \\
              -Dtest.src.path=/scratch/mesos/jib-master/install/jdk-15+11-354/src.full/open/test/jdk/java/lang/reflect/PublicMethods \\
              -Dtest.classes=/scratch/mesos/slaves/90726e33-be99-4e27-9d68-25dad266ef13-S2495/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94243d6a-8e95-452f-ae7f-231cdff5978b/runs/c267f60b-40a5-494f-a8de-85e724d6c5e4/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/4/java/lang/reflect/PublicMethods/PublicMethodsTest.d \\
              -Dtest.class.path=/scratch/mesos/slaves/90726e33-be99-4e27-9d68-25dad266ef13-S2495/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94243d6a-8e95-452f-ae7f-231cdff5978b/runs/c267f60b-40a5-494f-a8de-85e724d6c5e4/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/4/java/lang/reflect/PublicMethods/PublicMethodsTest.d \\
              -Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=5 -ea -esa' \\
              -Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=5 -J-ea -J-esa' \\
              -Dtest.compiler.opts= \\
              -Dtest.java.opts=-XX:-UseCompressedOops \\
              -Dtest.jdk=/scratch/mesos/jib-master/install/jdk-15+11-354/macosx-x64-debug.jdk/jdk-15/fastdebug \\
              -Dcompile.jdk=/scratch/mesos/jib-master/install/jdk-15+11-354/macosx-x64-debug.jdk/jdk-15/fastdebug \\
              -Dtest.timeout.factor=10.0 \\
              -Dtest.root=/scratch/mesos/jib-master/install/jdk-15+11-354/src.full/open/test/jdk \\
              -Dtest.modules='jdk.compiler jdk.zipfs' \\
              -Dtest.nativepath=/scratch/mesos/jib-master/install/jdk-15+11-354/macosx-x64-debug.test/jdk/jtreg/native \\
              -classpath /scratch/mesos/slaves/90726e33-be99-4e27-9d68-25dad266ef13-S2495/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94243d6a-8e95-452f-ae7f-231cdff5978b/runs/c267f60b-40a5-494f-a8de-85e724d6c5e4/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/4/java/lang/reflect/PublicMethods/PublicMethodsTest.d:/scratch/mesos/jib-master/install/jdk-15+11-354/src.full/open/test/jdk/java/lang/reflect/PublicMethods:/scratch/mesos/jib-master/install/java/re/jtreg/4.2/promoted/all/b16/bundles/jtreg_bin-4.2.zip/jtreg/lib/javatest.jar:/scratch/mesos/jib-master/install/java/re/jtreg/4.2/promoted/all/b16/bundles/jtreg_bin-4.2.zip/jtreg/lib/jtreg.jar \\
              PublicMethodsTest
      ----------System.err:(48/3933)----------
      java.lang.RuntimeException: java.lang.NullPointerException
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:163)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94)
      at PublicMethodsTest.compile(PublicMethodsTest.java:250)
      at PublicMethodsTest.lambda$diffResults$19(PublicMethodsTest.java:521)
      at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
      at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
      at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
      at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
      at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
      at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
      at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
      at PublicMethodsTest.main(PublicMethodsTest.java:74)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.lang.NullPointerException
      at java.base/java.nio.file.FileSystems.getFileSystem(FileSystems.java:230)
      at jdk.compiler/com.sun.tools.javac.file.Locations$SystemModulesLocationHandler.initSystemModules(Locations.java:1964)
      at jdk.compiler/com.sun.tools.javac.file.Locations$SystemModulesLocationHandler.listLocationsForModules(Locations.java:1939)
      at jdk.compiler/com.sun.tools.javac.file.Locations.listLocationsForModules(Locations.java:2191)
      at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.listLocationsForModules(JavacFileManager.java:1188)
      at java.compiler@15-ea/javax.tools.ForwardingJavaFileManager.listLocationsForModules(ForwardingJavaFileManager.java:205)
      at jdk.compiler/com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager.listLocationsForModules(ClientCodeWrapper.java:398)
      at jdk.compiler/com.sun.tools.javac.code.ModuleFinder$ModuleLocationIterator.hasNext(ModuleFinder.java:138)
      at jdk.compiler/com.sun.tools.javac.code.ModuleFinder.scanModulePath(ModuleFinder.java:291)
      at jdk.compiler/com.sun.tools.javac.code.ModuleFinder.findAllModules(ModuleFinder.java:187)
      at jdk.compiler/com.sun.tools.javac.comp.Modules.getUnnamedModuleCompleter(Modules.java:1423)
      at jdk.compiler/com.sun.tools.javac.comp.Modules.setCompilationUnitModules(Modules.java:473)
      at jdk.compiler/com.sun.tools.javac.comp.Modules.enter(Modules.java:267)
      at jdk.compiler/com.sun.tools.javac.comp.Modules.initModules(Modules.java:233)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.initModules(JavaCompiler.java:1050)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:938)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:104)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:147)
      ... 22 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.lang.NullPointerException


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.lang.NullPointerException

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                roland Roland Westrelin
                Reporter:
                dcubed Daniel Daugherty
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: