java.lang.BootstrapMethodError: call site initialization exception from Athena java class

Question:

I have one Athena database on AWS side. I want to access it and do some query. Here is my .java classes

Client builder

Called java class

Now the line StartQueryExecutionResponse startQueryExecutionResponse = athenaClient.startQueryExecution(startQueryExecutionRequest);

is throwing some exception

java.lang.BootstrapMethodError: call site initialization exception
at java.lang.invoke.CallSite.makeSite(CallSite.java:341)

I checked few resources, they are saying it is possibly because of some dependency issue. I have tried their suggestion and used following

pom.xml

Stack Trace

Answer:

httpcore/RELEASE_NOTES
HTTPCORE-499: Make interface Header extend NameValuePair.

Update httpcore to at least version 4.4.9:

Leave a Reply