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

Tests sun/tools/native2ascii/NativeErrors fails with java.security.ProviderException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 7u13, 7u40, 8
    • security-libs

      Tests sun/tools/native2ascii/NativeErrors.java and sun/tools/native2ascii/Permission.java failed with ProviderException:

      Stack trace for test NativeErrors.java:

      command: main NativeErrors
      reason: Assumed action based on file name: run main NativeErrors
      elapsed time (seconds): 111.069
      ----------System.out:(4/390)----------
      Cannot find native2ascii at /export/local/common/jdk/baseline/solaris-sparcv9/jre/bin/native2ascii
      Using native2ascii at /export/local/common/jdk/baseline/solaris-sparcv9/jre/../bin/native2ascii
      Cannot find native2ascii at /export/local/common/jdk/baseline/solaris-sparcv9/jre/bin/native2ascii
      Using native2ascii at /export/local/common/jdk/baseline/solaris-sparcv9/jre/../bin/native2ascii
      ----------System.err:(25/1489)----------
      java.security.ProviderException: Token has been removed
      at sun.security.pkcs11.Session.id(Session.java:91)
      at sun.security.pkcs11.SessionManager.ensureValid(SessionManager.java:154)
      at sun.security.pkcs11.SessionManager.getOpSession(SessionManager.java:137)
      at sun.security.pkcs11.Token.getOpSession(Token.java:268)
      at sun.security.pkcs11.P11SecureRandom.implNextBytes(P11SecureRandom.java:182)
      at sun.security.pkcs11.P11SecureRandom.engineNextBytes(P11SecureRandom.java:135)
      at java.security.SecureRandom.nextBytes(SecureRandom.java:455)
      at java.security.SecureRandom.next(SecureRandom.java:477)
      at java.util.Random.nextLong(Random.java:334)
      at java.io.File$TempDirectory.generateFile(File.java:1799)
      at java.io.File.createTempFile(File.java:1891)
      at java.io.File.createTempFile(File.java:1946)
      at NativeErrors.main(NativeErrors.java:74)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:474)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:722)

      JavaTest Message: Test threw exception: java.security.ProviderException: Token has been removed
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.security.ProviderException: Token has been removed
      result: Failed. Execution failed: `main' threw exception: java.security.ProviderException: Token has been removed


      Stack trace for sun/tools/native2ascii/Permission.java:

      #section:main
      ----------messages:(3/119)----------
      command: main Permission
      reason: Assumed action based on file name: run main Permission
      elapsed time (seconds): 113.2
      ----------System.out:(4/91)----------
      java.security.ProviderException: Token has been removed
      n2a failed.

      Passed = 0 failed = 2
      ----------System.err:(42/2518)----------
      java.lang.Exception: Stack trace
      at java.lang.Thread.dumpStack(Thread.java:1345)
      at Permission.fail(Permission.java:74)
      at Permission.fail(Permission.java:75)
      at Permission.realMain(Permission.java:55)
      at Permission.main(Permission.java:82)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:474)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:722)
      java.nio.file.NoSuchFileException: native2ascii_permtest_dst
      at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
      at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      at sun.nio.fs.UnixFileAttributeViews$Posix.readAttributes(UnixFileAttributeViews.java:208)
      at sun.nio.fs.UnixFileAttributeViews$Posix.readAttributes(UnixFileAttributeViews.java:121)
      at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
      at java.nio.file.Files.readAttributes(Files.java:1675)
      at java.nio.file.Files.getPosixFilePermissions(Files.java:1942)
      at Permission.realMain(Permission.java:58)
      at Permission.main(Permission.java:82)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:474)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:722)
      java.lang.AssertionError: Some tests failed
      at Permission.main(Permission.java:84)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:474)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:722)

      JavaTest Message: Test threw exception: java.lang.AssertionError: Some tests failed
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.AssertionError: Some tests failed
      result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed

            ascarpino Anthony Scarpino
            hseigel Harold Seigel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: