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
@Before
public void setUp() {
HttpHost host = new HttpHost("127.0.0.1", 9200);
RestClientBuilder restClientBuilder = RestClient.builder(host);
hClient = new RestHighLevelClient(restClientBuilder);
lClient = hClient.getLowLevelClient();
}
Which is giving me below error in line new RestHighLevelClient(restClientBuilder);
java.lang.IllegalArgumentException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.github.smitajit.elasticsearch.rest.mock.util.Utils.getProxiedClient(Utils.java:77)
at org.elasticsearch.client.RestClientBuilder.build(RestClientBuilder.java)
at org.elasticsearch.client.RestHighLevelClient.<init>(RestHighLevelClient.java:301)
at org.elasticsearch.client.RestHighLevelClient.<init>(RestHighLevelClient.java:293)
at search.repository.SSMockRunnerTest.setUp(SSMockRunnerTest.java:30)
The text was updated successfully, but these errors were encountered:
Below is my setup method
Which is giving me below error in line
new RestHighLevelClient(restClientBuilder);
The text was updated successfully, but these errors were encountered: