开发者社区> 问答> 正文

SDK初始化报错

初始化报错:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
        The method loadTrustMaterial(KeyStore, TrustStrategy) in the type SSLContextBuilder is not applicable for the arguments (null, new TrustStrategy(){})

        at com.aliyun.oss.common.comm.DefaultServiceClient.create HttpClientConnectionManager(DefaultServiceClient.java:230)
        at com.aliyun.oss.common.comm.DefaultServiceClient.<init>(DefaultServiceClient.java:85)
        at com.aliyun.oss.OSSClient.<init>(OSSClient.java:209)
        at com.aliyun.oss.OSSClient.<init>(OSSClient.java:129)
        at com.driver.oss.OssClient.<init>(OssClient.java:44)
        at com.driver.oss.OssClient.main(OssClient.java:167)


        对应的代码如下:
        The method loadTrustMaterial(KeyStore, TrustStrategy) in the type SSLContextBuilder is not applicable for the arguments (null, new TrustStrategy(){})

        at com.aliyun.oss.common.comm.DefaultServiceClient.create HttpClientConnectionManager(DefaultServiceClient.java:230)
        at com.aliyun.oss.common.comm.DefaultServiceClient.<init>(DefaultServiceClient.java:85)
        at com.aliyun.oss.OSSClient.<init>(OSSClient.java:209)
        at com.aliyun.oss.OSSClient.<init>(OSSClient.java:129)
        at com.driver.oss.OssClient.<init>(OssClient.java:44)
        at com.driver.oss.OssClient.main(OssClient.java:167)

展开
收起
wpz 2018-01-07 19:43:29 2587 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
跨平台的云服务SDK需要什么 立即下载
一个跨平台的云服务SDK需要什么 立即下载
从 SDK 到编解码:视频直播架构解析 立即下载