You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.BootstrapMethodError: bootstrap method initialization exception at java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:194) at java.base/java.lang.invoke.CallSite.makeSite(CallSite.java:307) at java.base/java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:258) at java.base/java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:248) at org.opensearch.client.RestClient.convertResponse(RestClient.java:361) at org.opensearch.client.RestClient.performRequest(RestClient.java:345) at org.opensearch.client.RestClient.performRequest(RestClient.java:320) at org.opensearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1918) at org.opensearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1901) at org.opensearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1865) at org.opensearch.client.IndicesClient.get(IndicesClient.java:768) at com.QueriesTest.main(QueriesTest.java:99) Caused by: java.lang.invoke.LambdaConversionException: Invalid receiver type interface org.apache.http.Header; not a subtype of implementation type interface org.apache.http.NameValuePair at java.base/java.lang.invoke.AbstractValidatingLambdaMetafactory.validateMetafactoryArgs(AbstractValidatingLambdaMetafactory.java:254) at java.base/java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:328) at java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:127) ... 11 more
Related component
Other
To Reproduce
static RestHighLevelClient client = new RestHighLevelClient(RestClient.builder(new HttpHost(domainUrl, port, protocol)));
@lijie123bes Can you check what versions of org.apache.httpcomponents.httpclient and org.apache.httpcomponents.httpcore are you using? The rest high level client uses 4.5.14 and 4.4.16 respectively but if there are any conflicts in your classpath for their versions?
Describe the bug
Exception in thread "main" java.lang.BootstrapMethodError: bootstrap method initialization exception at java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:194) at java.base/java.lang.invoke.CallSite.makeSite(CallSite.java:307) at java.base/java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:258) at java.base/java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:248) at org.opensearch.client.RestClient.convertResponse(RestClient.java:361) at org.opensearch.client.RestClient.performRequest(RestClient.java:345) at org.opensearch.client.RestClient.performRequest(RestClient.java:320) at org.opensearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1918) at org.opensearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1901) at org.opensearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1865) at org.opensearch.client.IndicesClient.get(IndicesClient.java:768) at com.QueriesTest.main(QueriesTest.java:99) Caused by: java.lang.invoke.LambdaConversionException: Invalid receiver type interface org.apache.http.Header; not a subtype of implementation type interface org.apache.http.NameValuePair at java.base/java.lang.invoke.AbstractValidatingLambdaMetafactory.validateMetafactoryArgs(AbstractValidatingLambdaMetafactory.java:254) at java.base/java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:328) at java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:127) ... 11 more
Related component
Other
To Reproduce
static RestHighLevelClient client = new RestHighLevelClient(RestClient.builder(new HttpHost(domainUrl, port, protocol)));
//QueriesTest.java:99
GetIndexRequest request = new GetIndexRequest(indexName);
GetIndexResponse response = client.indices().get(request, RequestOptions.DEFAULT);
Expected behavior
no error
Additional Details
Versions: jdk 11
plugins { id:'org.springframework.boot' version '1.5.6.RELEASE' }
opensearch-java:2.6.0 opensearch-rest-high-level-client:2.9.0
The text was updated successfully, but these errors were encountered: