开发者社区> 问答> 正文

getAcsResponse(request) 出错 Failed resolution of: Ljavax/xml/bind/DatatypeConverter;

Process: com.live.live, PID: 30455

              java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/bind/DatatypeConverter;
                  at com.aliyuncs.auth.HmacSHA1Signer.signString(HmacSHA1Signer.java:22)
                  at com.aliyuncs.RpcAcsRequest.signRequest(RpcAcsRequest.java:158)
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:247)
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:180)
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:77)
                  at com.aliyuncs.DefaultAcsClient.getAcsResponse(DefaultAcsClient.java:106)
                  at com.player.player.StsServiceSample.main(StsServiceSample.java:49)
                  at com.player.player.AliyunPlayerSkinActivity.requestMpsSts(AliyunPlayerSkinActivity.java:191)
                  at com.player.player.AliyunPlayerSkinActivity.onCreate(AliyunPlayerSkinActivity.java:166)
                  at android.app.Activity.performCreate(Activity.java:6845)
                  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2700)
                  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2808)
                  at android.app.ActivityThread.-wrap12(ActivityThread.java)
                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541)
                  at android.os.Handler.dispatchMessage(Handler.java:102)
                  at android.os.Looper.loop(Looper.java:165)
                  at android.app.ActivityThread.main(ActivityThread.java:6375)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
               Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.xml.bind.DatatypeConverter" on path: DexPathList[[zip file "/data/app/com.live.live-1/base.apk"],nativeLibraryDirectories=[/data/app/com.live.live-1/lib/arm64, /data/app/com.live.live-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
                  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:74)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                  at com.aliyuncs.auth.HmacSHA1Signer.signString(HmacSHA1Signer.java:22) 
                  at com.aliyuncs.RpcAcsRequest.signRequest(RpcAcsRequest.java:158) 
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:247) 
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:180) 
                  at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:77) 
                  at com.aliyuncs.DefaultAcsClient.getAcsResponse(DefaultAcsClient.java:106) 
                  at com.player.player.StsServiceSample.main(StsServiceSample.java:49) 
                  at com.player.player.AliyunPlayerSkinActivity.requestMpsSts(AliyunPlayerSkinActivity.java:191) 
                  at com.player.player.AliyunPlayerSkinActivity.onCreate(AliyunPlayerSkinActivity.java:166) 
                  at android.app.Activity.performCreate(Activity.java:6845) 
                  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) 
                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2700) 
                  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2808) 
                  at android.app.ActivityThread.-wrap12(ActivityThread.java) 
                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541) 
                  at android.os.Handler.dispatchMessage(Handler.java:102) 
                  at android.os.Looper.loop(Looper.java:165) 
                  at android.app.ActivityThread.main(ActivityThread.java:6375) 
                  at java.lang.reflect.Method.invoke(Native Method) 
                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) 
                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802) 

我请求的参数应该没问题 不知道为什么就是发不通

展开
收起
游客jvqfylvxkbvrg 2019-04-15 17:54:52 7655 0
3 条回答
写回答
取消 提交回答
  • 同1楼

    2019-09-16 20:21:35
    赞同 展开评论 打赏
  • android 平台上需要额外引入javax.xml.bind 以及xerces!

    2019-07-30 10:27:25
    赞同 展开评论 打赏
  • 我也是这样,请问你解决了吗

    2019-07-17 23:33:32
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关课程

更多

相关电子书

更多
OPEN SOURCE IN A DATA-DRIVEN WORLD 立即下载
Well-That-Escalated-Quickly-How-Abusing-The-Docker-API-Led-To-Remote-Code-Execution-Same-Origin-Bypass-And-Persistence 立即下载
In-Flux Limiting for a Multi-Tenant Logging Service 立即下载