Using in Android causes a "No static field"
还没有人认领这个 Issue。
评估
调研方向
首先,在使用 artifactory-java-client-services:2.13.0 的 Android Gradle 项目中复现该故障,然后检查报告的堆栈跟踪位置处的 HttpBuilderBase.createConnectionMgr 和 SSLConnectionSocketFactory。将客户端的 Apache HTTP 依赖项与 Android framework 类进行比较。当 ArtifactoryClientBuilder 能够构建并发出请求且不出现 NoSuchFieldError 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
In an Android Gradle project using
implementation 'org.jfrog.artifactory.client:artifactory-java-client-services:2.13.0'
I run with
val artifactory: Artifactory = ArtifactoryClientBuilder.create()
.setUrl("https://artifactory.server.info")
.build()
into this
java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar!classes4.dex)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:151)
at org.jfrog.artifactory.client.httpClient.http.HttpBuilderBase.createConnectionMgr(HttpBuilderBase.java:359)
at org.jfrog.artifactory.client.httpClient.http.HttpBuilderBase.configConnectionManager(HttpBuilderBase.java:344)
at org.jfrog.artifactory.client.httpClient.http.HttpBuilderBase.build(HttpBuilderBase.java:78)
at org.jfrog.artifactory.client.ArtifactoryClientBuilder.createClientBuilder(ArtifactoryClientBuilder.java:174)
at org.jfrog.artifactory.client.ArtifactoryClientBuilder.build(ArtifactoryClientBuilder.java:196)
at info.hannes.appUpdate.AppUpdateHelper.requestArtifactoryVersions(AppUpdateHelper.kt:159)
Does someone has an idea how to get rid of it ?
- 主要语言
- Java
- 星标
- 331
- 派生
- 163
- 平均合并
- 20 小时 9 分钟
- 30 天内合并 PR
- 1
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jfrog/artifactory-client-java 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
jfrog/artifactory-client-java#450 · 2 条评论 ·
-
question
难度 2/5 1-3 小时 新手友好度 62/100
jfrog/artifactory-client-java#375 ·
-
难度 4/5 3-5 天 新手友好度 35/100
jfrog/artifactory-client-java#448 ·
-
难度 3/5 1-2 天 新手友好度 45/100
jfrog/artifactory-client-java#447 ·
-
难度 4/5 3-5 天 新手友好度 35/100
jfrog/artifactory-client-java#445 ·
查看 jfrog/artifactory-client-java 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 72/100
oracle/javavscode#652 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
OpenAPITools/openapi-generator#25014 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
AloisSeckar/demos-java#380 ·