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

[TEST_BUG] :jdk/test/sun/misc/URLClassPath/ClassnameCharTest.java test fails with NullPointerException

    Details

    • Subcomponent:
    • Resolved In Build:
      b133

      Backports

        Description

        sun/misc/URLClassPath/ClassnameCharTest.java

        [Windows-amd64]
        execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.NullPointerException

        Options: -server -Xcomp -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -ea -esa -XX:-TieredCompilation -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:+IgnoreUnrecognizedVMOptions -XX:+AggressiveOpts -XX:-UseBiasedLocking


        #section:main
        ----------messages:(3/125)----------
        command: main ClassnameCharTest
        reason: User specified action: run main ClassnameCharTest
        elapsed time (seconds): 11.923
        ----------System.out:(0/0)----------
        ----------System.err:(14/754)----------
        java.lang.NullPointerException
        at ClassnameCharTest.unexpected(ClassnameCharTest.java:109)
        at ClassnameCharTest.main(ClassnameCharTest.java:115)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:520)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:806)

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

        STATUS:Failed.`main' threw exception: java.lang.NullPointerException

          Activity

          Hide
          thartmann Tobias Hartmann added a comment -
          The test fails because ClassnameCharTest::realMain() throws an exception and while handling the exception in ClassnameCharTest::unexpected() we throw a NullPointerException because we call 'server.stop(0)' with server == NULL. I assume, creation of the HttpServer failed and the test does not expect this.

          This is not a compiler issue. Reassigned to core-libs/java.net.
          Show
          thartmann Tobias Hartmann added a comment - The test fails because ClassnameCharTest::realMain() throws an exception and while handling the exception in ClassnameCharTest::unexpected() we throw a NullPointerException because we call 'server.stop(0)' with server == NULL. I assume, creation of the HttpServer failed and the test does not expect this. This is not a compiler issue. Reassigned to core-libs/java.net.
          Hide
          snikandrova Svetlana Nikandrova (Inactive) added a comment -
          I couldn't reproduce this failure with provided configuration. So the best we can do is to update tests with null check to prevent original exception loss.
          Show
          snikandrova Svetlana Nikandrova (Inactive) added a comment - I couldn't reproduce this failure with provided configuration. So the best we can do is to update tests with null check to prevent original exception loss.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/6f5da13861db
          User: asmotrak
          Date: 2016-08-18 16:49:12 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/6f5da13861db User: asmotrak Date: 2016-08-18 16:49:12 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/6f5da13861db
          User: lana
          Date: 2016-08-24 21:12:56 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/6f5da13861db User: lana Date: 2016-08-24 21:12:56 +0000

            People

            • Assignee:
              snikandrova Svetlana Nikandrova (Inactive)
              Reporter:
              rraghavan Rahul Raghavan
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: