Created
August 20, 2013 15:04
-
-
Save SeanPONeil/6282603 to your computer and use it in GitHub Desktop.
Stacktrace when using Google's SecureRandom PRNG patch (http://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html) with Robolectric
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.RuntimeException: java.lang.SecurityException: Failed to seed OpenSSL PRNG | |
at org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:231) | |
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) | |
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) | |
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) | |
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) | |
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) | |
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) | |
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) | |
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) | |
at org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:177) | |
at org.junit.runners.ParentRunner.run(ParentRunner.java:300) | |
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:80) | |
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:47) | |
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69) | |
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:49) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) | |
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) | |
at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) | |
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) | |
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) | |
at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:103) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) | |
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) | |
at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:355) | |
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) | |
at java.lang.Thread.run(Thread.java:680) | |
Caused by: java.lang.SecurityException: Failed to seed OpenSSL PRNG | |
at com.duosecurity.duomobile.app.PRNGFixes.applyOpenSSLFix(PRNGFixes.java:84) | |
at com.duosecurity.duomobile.app.PRNGFixes.apply(PRNGFixes.java:53) | |
at com.duosecurity.duomobile.app.DMApplication.onCreate(DMApplication.java:45) | |
at org.robolectric.internal.ParallelUniverse.setUpApplicationState(ParallelUniverse.java:146) | |
at org.robolectric.RobolectricTestRunner.setUpApplicationState(RobolectricTestRunner.java:387) | |
at org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:227) | |
... 35 more | |
Caused by: java.lang.ClassNotFoundException: org.apache.harmony.xnet.provider.jsse.NativeCrypto | |
at org.robolectric.bytecode.AsmInstrumentingClassLoader.loadClass(AsmInstrumentingClassLoader.java:85) | |
at java.lang.Class.forName0(Native Method) | |
at java.lang.Class.forName(Class.java:171) | |
at com.duosecurity.duomobile.app.PRNGFixes.applyOpenSSLFix(PRNGFixes.java:72) | |
... 40 more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment