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

Exception using S3 as deep storage #5616

Closed
pradeepgv42 opened this issue Jun 24, 2020 · 4 comments
Closed

Exception using S3 as deep storage #5616

pradeepgv42 opened this issue Jun 24, 2020 · 4 comments
Assignees

Comments

@pradeepgv42
Copy link
Contributor

I am seeing below exception trying to use S3 as deep storage.
Seems like an issue with aws-sdk and httpclient version used.

NoSuchMethodException was thrown when disabling normalizeUri. This indicates you are using an old version (< 4.5.8) of Apache http client. It is recommended to use http client version >= 4.5.9 to avoid the breaking change introduced in apache client 4.5.7 and the latency in exception handling. See aws/aws-sdk-java#1919 for more information
Exception in thread "main" java.lang.BootstrapMethodError: call site initialization exception
at java.lang.invoke.CallSite.makeSite(CallSite.java:341)
at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:307)
at java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:297)
at software.amazon.awssdk.http.apache.ApacheHttpClient.transformHeaders(ApacheHttpClient.java:268)
at software.amazon.awssdk.http.apache.ApacheHttpClient.createResponse(ApacheHttpClient.java:253)
at software.amazon.awssdk.http.apache.ApacheHttpClient.execute(ApacheHttpClient.java:233)
at software.amazon.awssdk.http.apache.ApacheHttpClient.access$500(ApacheHttpClient.java:98)
at software.amazon.awssdk.http.apache.ApacheHttpClient$1.call(ApacheHttpClient.java:213)

Changing the top-level pom.xml seems to work

   <dependency>
     <groupId>org.apache.httpcomponents</groupId>
     <artifactId>httpclient</artifactId>
  •    <version>4.5.3</version>
    
  •    <version>4.5.9</version>
     </dependency>
     <dependency>
       <groupId>org.apache.httpcomponents</groupId>
       <artifactId>httpcore</artifactId>
    
  •    <version>4.4.6</version>
    
  •    <version>4.4.9</version>
     </dependency>
    
@kishoreg
Copy link
Member

@KKcorps can you please take this up.

@KKcorps
Copy link
Contributor

KKcorps commented Jun 25, 2020

Sure. Should I remove parent from this module and then shade the dependency as per our discussion?

@kishoreg
Copy link
Member

or shade this jar explicitly and use the version we need.

@pradeepgv42
Copy link
Contributor Author

this was fixed in #5670

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

No branches or pull requests

4 participants