Using in Android causes a "No static field"
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing the failure in an Android Gradle project using artifactory-java-client-services:2.13.0, then inspect HttpBuilderBase.createConnectionMgr and SSLConnectionSocketFactory at the reported stack-trace locations. Compare the client’s Apache HTTP dependencies with the Android framework classes. Done means the ArtifactoryClientBuilder can build and make its request without the NoSuchFieldError.
Written by the indexing model from the issue text.
Description
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 ?
- Dominant language
- Java
- Stars
- 331
- Forks
- 163
- Avg merge
- 20h 9m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jfrog/artifactory-client-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
jfrog/artifactory-client-java#450 · 2 comments ·
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jfrog/artifactory-client-java#375 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
jfrog/artifactory-client-java#448 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
jfrog/artifactory-client-java#447 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
jfrog/artifactory-client-java#445 ·
All issues in jfrog/artifactory-client-java
Similar issues
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/flink-agents#1156 ·
-
[source-shopify] FAILED bulk operation without partialDataUrl is silently treated as successful Openarea/connectors autoteam community connectors/source/shopify needs-triage team/use type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100