Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier issue #581

Closed
martintjandra opened this issue Aug 7, 2019 · 1 comment
Closed

Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier issue #581

martintjandra opened this issue Aug 7, 2019 · 1 comment
Labels
status: duplicate duplicate issue

Comments

@martintjandra
Copy link

martintjandra commented Aug 7, 2019

Hi. I saw some thread discussing about this and closed, but I see no solution for this problem so far.

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!classes3.dex)
        at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:144)
        at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:966)
        at org.apache.http.impl.client.HttpClients.createDefault(HttpClients.java:58)
        at com.sendgrid.Client.<init>(Client.java:56)
        at com.sendgrid.SendGrid.<init>(SendGrid.java:52)
  1. How you installed the SDK

I installed the SDK using Gradle.

dependencies {
    ...
    implementation 'com.sendgrid:sendgrid-java:4.4.1'
}
repositories {
    mavenCentral()
}

I also tried to install using jar in libs, still producing similar error.

  1. What version of the SDK you are using

Sendgrid-java version 4.4.1. That was the latest I can find on the github.

  1. The relevant code snippet where this error was generated

It happens at Sendgrid initialization.

SendGrid sg = new SendGrid(SendGridAPIKey); // java
val sg = SendGrid(SendGridAPIKey) // kotlin
  1. Some details about the server that ran the code. e.g. operating system, cloud provider, etc...

It's compiled using Android Studio 3.4 for Mac, Kotlin version 1.3.41.
compileSdkVersion 28
minSdkVersion 23
targetSdkVersion 28

So far I have tried solution on:
#417 - Which refer to solution on #82
#82 - No, I don't have multiple instance of the same class
sendgrid/java-http-client#114 - Which refer to issue at sendgrid/java-http-client#2

From issue thread 2, which is said to be the primary place to follow about the resolve of this issue, I don't see any more update about this issue so far.

@thinkingserious
Copy link
Contributor

Hello @martintjandra,

I believe you are blocked on this issue. Please add your voice there to help improve that issue's spot in our backlog.

With best regards,

Elmer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate duplicate issue
Projects
None yet
Development

No branches or pull requests

2 participants