验证者拒绝类javax.naming.ldap.LdapName

时间:2018-12-28 10:22:18

标签: android android-studio

我正在使用AWS athena,并尝试在android studio上的athena上运行查询,并希望将结果返回到android studio上。但是得到我无法跟踪的上述错误。我已经尝试了所有有关相关问题的建议解决方案。我正在使用CognitoCachingCredentialsProvider访问雅典娜。我正在提供堆栈跟踪...

12/28 15:44:03: Launching app
$ adb install-multiple -r -t C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\split-apk\debug\slices\slice_0.apk C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\split-apk\debug\slices\slice_3.apk C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\split-apk\debug\slices\slice_4.apk C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\split-apk\debug\slices\slice_5.apk C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\split-apk\debug\slices\slice_8.apk C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\split-apk\debug\slices\slice_7.apk C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\split-apk\debug\slices\slice_9.apk C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\split-apk\debug\dep\dependencies.apk C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\split-apk\debug\slices\slice_1.apk C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\split-apk\debug\slices\slice_6.apk C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\split-apk\debug\slices\slice_2.apk C:\Users\ADMIN\AndroidStudioProjects\MyApplicationNoiseCollection\app\build\intermediates\instant-run-apk\debug\app-debug.apk 
Split APKs installed in 6 s 701 ms
$ adb shell am start -n "com.example.admin.myapplicationnoisecollection/com.example.admin.myapplicationnoisecollection.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Waiting for process to come online
Connected to process 21483 on device motorola-moto_g__4_-ZY223B8K75
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/System: ClassLoader referenced unknown path: /data/app/com.example.admin.myapplicationnoisecollection-2/lib/arm
I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
I/InstantRun: starting instant run server: is main process
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
I/art: Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
        at void android.support.v4.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, android.support.v4.view.OnApplyWindowInsetsListener) (ViewCompat.java:2203)
        at android.view.ViewGroup android.support.v7.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:637)
        at void android.support.v7.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518)
        at void android.support.v7.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466)
        at void android.support.v7.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140)
        at void com.example.admin.myapplicationnoisecollection.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:27)
        at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6672)
        at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1140)
        at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2612)
        at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2724)
        at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1473)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6123)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:867)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:757)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.example.admin.myapplicationnoisecollection-2/base.apk", zip file "/data/app/com.example.admin.myapplicationnoisecollection-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.example.admin.myapplicationnoisecollection-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.admin.myapplicationnoisecollection-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.admin.myapplicationnoisecollection-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.admin.myapplicationnoisecollection-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.admin.myapplicationnoisecollection-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.admin.myapplicationnoisecollection-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.admin.myapplicationnoisecollection-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.examp
        at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
        at void android.support.v4.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, android.support.v4.view.OnApplyWindowInsetsListener) (ViewCompat.java:2203)
        at android.view.ViewGroup android.support.v7.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:637)
        at void android.support.v7.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518)
        at void android.support.v7.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466)
        at void android.support.v7.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140)
        at void com.example.admin.myapplicationnoisecollection.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:27)
        at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6672)
        at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1140)
        at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2612)
        at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2724)
        at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1473)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6123)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:867)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:757)
I/Adreno: QUALCOMM build                   : 7d18700, I8ee426a9a2
    Build Date                       : 10/07/16
    OpenGL ES Shader Compiler Version: XE031.09.00.03
    Local Branch                     : mybranch22308589
    Remote Branch                    : quic/LA.BR.1.3.6_rb1.6
    Remote Branch                    : NONE
    Reconstruct Branch               : NOTHING
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/AWSMobileClient: Fetching the Cognito Identity.
D/IdentityManager: Creating the Cognito Caching Credentials Provider with a refreshing Cognito Identity Provider.
D/CognitoCachingCredentialsProvider: Loading credentials from SharedPreferences
D/AWSMobileClient: Using the SignInProviderConfig from `awsconfiguration.json`.
D/IdentityManager: Resume Session called.
D/LocationActivity: UI update initiated .............
    location is null ...............
D/IdentityManager: Looking for a previously signed-in session.
D/SignInManager: Providers: [{}]
I/Choreographer: Skipped 37 frames!  The application may be doing too much work on its main thread.
I/AWSMobileClient: Welcome to AWS! You are connected successfully.
    Identity ID retrieved.
W/art: Before Android 4.1, method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
D/LocationActivity: onConnected - isConnected ...............: true
D/LocationActivity: Location update started ..............: 
D/LocationActivity: Location update stopped .......................
D/OpenGLRenderer: endAllActiveAnimators on 0x8f1c4d00 (RippleDrawable) with handle 0x8f2253f0
D/LocationActivity: onStop fired ..............
D/LocationActivity: isConnected ...............: false
W/MediaRecorder: mediarecorder went away with unhandled events
W/Java7Support: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added
D/CognitoCachingCredentialsProvider: Loading credentials from SharedPreferences
W/System.err: log4j:WARN No appenders could be found for logger (com.simba.athena.amazonaws.AmazonWebServiceClient).
W/System.err: log4j:WARN Please initialize the log4j system properly.
W/System.err: log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/CognitoCachingCredentialsProvider: Saving credentials to SharedPreferences
E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
    Process: com.example.admin.myapplicationnoisecollection, PID: 21483
    java.lang.RuntimeException: An error occurred while executing doInBackground()
        at android.os.AsyncTask$3.done(AsyncTask.java:318)
        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
        at java.util.concurrent.FutureTask.run(FutureTask.java:242)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
        at java.lang.Thread.run(Thread.java:761)
     Caused by: java.lang.VerifyError: Verifier rejected class javax.naming.ldap.LdapName: void javax.naming.ldap.LdapName.<init>(java.lang.String) failed to verify: void javax.naming.ldap.LdapName.<init>(java.lang.String): [0x0] Constructor returning without calling superclass constructor
     void javax.naming.ldap.LdapName.<init>(java.util.List) failed to verify: void javax.naming.ldap.LdapName.<init>(java.util.List): [0x0] Constructor returning without calling superclass constructor (declaration of 'javax.naming.ldap.LdapName' appears in /data/app/com.example.admin.myapplicationnoisecollection-2/split_lib_dependencies_apk.apk:classes3.dex)
        at com.simba.athena.shaded.apache.http.conn.ssl.DefaultHostnameVerifier.extractCN(DefaultHostnameVerifier.java:259)
        at com.simba.athena.shaded.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:152)
        at com.simba.athena.shaded.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:123)
        at com.simba.athena.shaded.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:463)
        at com.simba.athena.shaded.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:397)
        at com.simba.athena.shaded.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)
        at com.simba.athena.amazonaws.http.conn.ssl.SdkTLSSocketFactory.connectSocket(SdkTLSSocketFactory.java:142)
        at com.simba.athena.shaded.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
        at com.simba.athena.shaded.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.simba.athena.amazonaws.http.conn.ClientConnectionManagerFactory$Handler.invoke(ClientConnectionManagerFactory.java:76)
        at java.lang.reflect.Proxy.invoke(Proxy.java:813)
        at com.simba.athena.amazonaws.http.conn.$Proxy3.connect(Unknown Source)
        at com.simba.athena.shaded.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
        at com.simba.athena.shaded.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
        at com.simba.athena.shaded.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
        at com.simba.athena.shaded.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
        at com.simba.athena.shaded.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
        at com.simba.athena.shaded.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
        at com.simba.athena.amazonaws.http.apache.client.impl.SdkHttpClient.execute(SdkHttpClient.java:72)
        at com.simba.athena.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1238)
        at com.simba.athena.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1058)
        at com.simba.athena.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:743)
        at com.simba.athena.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:717)
        at com.simba.athena.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:699)
        at com.simba.athena.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:667)
        at com.simba.athena.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:649)
        at com.simba.athena.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:513)
        at com.simba.athena.amazonaws.services.athena.AmazonAthenaClient.doInvoke(AmazonAthenaClient.java:813)
        at com.simba.athena.amazonaws.services.athena.AmazonAthenaClient.invoke(AmazonAthenaClient.java:789)
        at com.simba.athena.amazonaws.services.athena.AmazonAthenaClient.executeStartQueryExecution(AmazonAthenaClient.java:694)
        at com.simba.athena.amazonaws.services.athena.AmazonAthenaClient.startQueryExecution(AmazonAthenaClient.java:669)
        at com.example.admin.myapplicationnoisecollection.AthenaQuery$AsyncCaller.submitAthenaQuery(AthenaQuery.java:216)
        at com.example.admin.myapplicationnoisecollection.AthenaQuery$AsyncCaller.getQueryResult(AthenaQuery.java:184)
        at com.example.admin.myapplicationnoisecollection.AthenaQuery$AsyncCaller.doInBackground(AthenaQuery.java:156)
        at com.example.admin.myapplicationnoisecollection.AthenaQuery$AsyncCaller.doInBackground(AthenaQuery.java:114)
        at android.os.AsyncTask$2.call(AsyncTask.java:304)
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            ... 4 more
Application terminated.

0 个答案:

没有答案