JCE cannot authenticate the provider NUIMCSCGIBE

i2bandari 发布于 2015/06/17 18:08
阅读 354
收藏 0

Running nuim.cs.crypto.ibe.test.IbeProviderTest

Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.562 sec <<< FAILURE!

testCipher(nuim.cs.crypto.ibe.test.IbeProviderTest)  Time elapsed: 0.062 sec  <<< ERROR!

java.lang.SecurityException: JCE cannot authenticate the provider NUIMCSCGIBE

at javax.crypto.Cipher.getInstance(Cipher.java:642)

at nuim.cs.crypto.ibe.test.IbeProviderTest.testCipher(IbeProviderTest.java:41)

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:606)

at junit.framework.TestCase.runTest(TestCase.java:176)

at junit.framework.TestCase.runBare(TestCase.java:141)

at junit.framework.TestResult$1.protect(TestResult.java:122)

at junit.framework.TestResult.runProtected(TestResult.java:142)

at junit.framework.TestResult.run(TestResult.java:125)

at junit.framework.TestCase.run(TestCase.java:129)

at junit.framework.TestSuite.runTest(TestSuite.java:255)

at junit.framework.TestSuite.run(TestSuite.java:250)

at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)

at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)

at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)

at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)

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:606)

at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)

at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)

at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)

at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)

at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

Caused by: java.lang.SecurityException: Cannot verify jar:file:/F:/Workspace/GitHub/IBE/framework/target/classes/!/

at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:406)

at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322)

at javax.crypto.JarVerifier.verify(JarVerifier.java:250)

at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:161)

at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:187)

at javax.crypto.Cipher.getInstance(Cipher.java:638)

... 26 more

Caused by: java.security.PrivilegedActionExceptionjava.io.FileNotFoundException: F:\Workspace\GitHub\IBE\framework\target\classes (拒绝访问。)

at java.security.AccessController.doPrivileged(Native Method)

at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:384)

... 31 more

Caused by: java.io.FileNotFoundException: F:\Workspace\GitHub\IBE\framework\target\classes (拒绝访问。)

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:215)

at java.util.zip.ZipFile.<init>(ZipFile.java:145)

at java.util.jar.JarFile.<init>(JarFile.java:154)

at java.util.jar.JarFile.<init>(JarFile.java:91)

at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93)

at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69)

at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:109)

at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)

at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)

at javax.crypto.JarVerifier$2.run(JarVerifier.java:399)

... 33 more

testCreateCipher(nuim.cs.crypto.ibe.test.IbeProviderTest)  Time elapsed: 0 sec  <<< ERROR!

java.lang.SecurityException: JCE cannot authenticate the provider NUIMCSCGIBE

at javax.crypto.Cipher.getInstance(Cipher.java:642)

at nuim.cs.crypto.ibe.test.IbeProviderTest.testCreateCipher(IbeProviderTest.java:147)

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:606)

at junit.framework.TestCase.runTest(TestCase.java:176)

at junit.framework.TestCase.runBare(TestCase.java:141)

at junit.framework.TestResult$1.protect(TestResult.java:122)

at junit.framework.TestResult.runProtected(TestResult.java:142)

at junit.framework.TestResult.run(TestResult.java:125)

at junit.framework.TestCase.run(TestCase.java:129)

at junit.framework.TestSuite.runTest(TestSuite.java:255)

at junit.framework.TestSuite.run(TestSuite.java:250)

at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)

at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)

at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)

at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)

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:606)

at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)

at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)

at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)

at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)

at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

Caused by: java.lang.SecurityException: Cannot verify jar:file:/F:/Workspace/GitHub/IBE/framework/target/classes/!/

at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:406)

at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322)

at javax.crypto.JarVerifier.verify(JarVerifier.java:250)

at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:161)

at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:187)

at javax.crypto.Cipher.getInstance(Cipher.java:638)

... 26 more

Caused by: java.security.PrivilegedActionExceptionjava.io.FileNotFoundException: F:\Workspace\GitHub\IBE\framework\target\classes (拒绝访问。)

at java.security.AccessController.doPrivileged(Native Method)

at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:384)

... 31 more

Caused by: java.io.FileNotFoundException: F:\Workspace\GitHub\IBE\framework\target\classes (拒绝访问。)

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:215)

at java.util.zip.ZipFile.<init>(ZipFile.java:145)

at java.util.jar.JarFile.<init>(JarFile.java:154)

at java.util.jar.JarFile.<init>(JarFile.java:91)

at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93)

at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69)

at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:109)

at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)

at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)

at javax.crypto.JarVerifier$2.run(JarVerifier.java:399)

... 33 more

Results :

Tests in error: 

  testCipher(nuim.cs.crypto.ibe.test.IbeProviderTest): JCE cannot authenticate the provider NUIMCSCGIBE

  testCreateCipher(nuim.cs.crypto.ibe.test.IbeProviderTest): JCE cannot authenticate the provider NUIMCSCGIBE

Tests run: 3, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] Identity Based Encryption JCA ...................... SUCCESS [  0.000 s]

[INFO] Identity Based Encryption JCA ...................... SUCCESS [02:56 min]

[INFO] JCE Provider Testing ............................... FAILURE [  2.247 s]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 02:59 min

[INFO] Finished at: 2015-06-17T11:39:35+08:00

[INFO] Final Memory: 11M/36M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project provider-testing: There are test failures.

[ERROR] 

[ERROR] Please refer to F:\Workspace\GitHub\IBE\provider-testing\target\surefire-reports for the individual test results.

[ERROR] -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :provider-testing

加载中
返回顶部
顶部