# ElasticsearchException\[Failed to load plugin class \[org.elasticsearch.xpack.XPackPlugin\]\]; nested: InvocationTargetException; nested: NoSuchFieldError\[V\_5\_6\_0\]

**URL:** <https://discuss.elastic.co/t/elasticsearchexception-failed-to-load-plugin-class-org-elasticsearch-xpack-xpackplugin-nested-invocationtargetexception-nested-nosuchfielderror-v-5-6-0/198570>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 8, 2019, 5:23pm UTC](https://discuss.elastic.co/t/elasticsearchexception-failed-to-load-plugin-class-org-elasticsearch-xpack-xpackplugin-nested-invocationtargetexception-nested-nosuchfielderror-v-5-6-0/198570 "2019-09-08T17:23:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![praffuln](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/praffuln/32/49232_2.png) [@praffuln](https://discuss.elastic.co/u/praffuln)\
**Post date:** [September 8, 2019, 5:23pm UTC](https://discuss.elastic.co/t/elasticsearchexception-failed-to-load-plugin-class-org-elasticsearch-xpack-xpackplugin-nested-invocationtargetexception-nested-nosuchfielderror-v-5-6-0/198570/1 "2019-09-08T17:23:41Z")

</div>

Hi,

We are getting below exception while working with elastic search x-pack. stack trace is as below.

* * *

ElasticsearchException[Failed to load plugin class [org.elasticsearch.xpack.XPackPlugin]]; nested: InvocationTargetException; nested: NoSuchFieldError[V\_5\_6\_0];  
at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:430)  
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:102)  
at org.elasticsearch.client.transport.TransportClient.newPluginService(TransportClient.java:101)  
at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:126)  
at org.elasticsearch.client.transport.TransportClient.(TransportClient.java:268)  
at org.elasticsearch.transport.client.PreBuiltTransportClient.(PreBuiltTransportClient.java:128)  
at org.elasticsearch.xpack.client.PreBuiltXPackTransportClient.(PreBuiltXPackTransportClient.java:55)  
at org.elasticsearch.xpack.client.PreBuiltXPackTransportClient.(PreBuiltXPackTransportClient.java:50)  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

along with our pom.xml as below.

* * *

```
<modelVersion>4.0.0</modelVersion>

 

<properties>
 	<maven.compiler.source>1.8</maven.compiler.source>
	<maven.compiler.target>1.8</maven.compiler.target>
	<maven.release.plugin>2.5.3</maven.release.plugin>
	<!-- <spring.boot.version>2.1.4.RELEASE</spring.boot.version> -->
	<spring.boot.version>2.1.8.RELEASE</spring.boot.version>
 </properties>

<dependencies>

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
		<exclusions>
			<exclusion>
				<groupId>com.fasterxml.jackson.core</groupId>
				<artifactId>jackson-databind</artifactId>
			</exclusion>
		</exclusions>
	</dependency>

    
<!-- Start x-pack -->
	<dependency>
		<groupId>org.elasticsearch.client</groupId>
		<artifactId>transport</artifactId>
		<version>6.2.4</version>
	</dependency>
	
	<dependency>
     <groupId>org.elasticsearch.client</groupId>
     <artifactId>x-pack-transport</artifactId>
    <!-- <version>5.6.1</version> -->
    <version>5.6.1</version>
    <exclusions>
        <exclusion>
        	<groupId>org.bouncycastle</groupId>
			<artifactId>bcprov-jdk15on</artifactId>
        </exclusion>
    </exclusions>
  </dependency>
 
<dependency>
        <groupId>org.elasticsearch</groupId>
        <artifactId>elasticsearch</artifactId>
       <!-- <version>5.4.3</version> -->
      <version>5.4.3</version> 
    </dependency>

<dependency>
        <groupId>com.unboundid</groupId>
        <artifactId>unboundid-ldapsdk</artifactId>
        <version>3.2.0</version>
    </dependency>
    <!-- <dependency>
        <groupId>org.bouncycastle</groupId>
        <artifactId>bcprov-jdk15on</artifactId>
        <version>1.58</version>
    </dependency>
    <dependency>
        <groupId>org.bouncycastle</groupId>
        <artifactId>bcpkix-jdk15on</artifactId>
        <version>1.58</version>
    </dependency> -->

```

```
</dependencies>

 <build>
	<plugins>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
		</plugin>
		<plugin>
			<artifactId>maven-release-plugin</artifactId>
			<version>${maven.release.plugin}</version>
		</plugin>
		
		<!-- Junit5 plugin-->
		<plugin>
			<artifactId>maven-surefire-plugin</artifactId>
			<version>2.19.1</version>
			<dependencies>
				<dependency>
					<groupId>org.junit.platform</groupId>
					<artifactId>junit-platform-surefire-provider</artifactId>
					<version>1.0.1</version>
				</dependency>
			</dependencies>
		</plugin>
	</plugins>
</build>

```

* * *

Thankful for your help.

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [September 9, 2019, 7:57am UTC](https://discuss.elastic.co/t/elasticsearchexception-failed-to-load-plugin-class-org-elasticsearch-xpack-xpackplugin-nested-invocationtargetexception-nested-nosuchfielderror-v-5-6-0/198570/2 "2019-09-09T07:57:14Z")

</div>

It might be more helpful to post your question in [https://github.com/spring-projects/spring-data-elasticsearch](https://github.com/spring-projects/spring-data-elasticsearch), as more people who are familiar with this project will hang out there

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 7, 2019, 7:57am UTC](https://discuss.elastic.co/t/elasticsearchexception-failed-to-load-plugin-class-org-elasticsearch-xpack-xpackplugin-nested-invocationtargetexception-nested-nosuchfielderror-v-5-6-0/198570/3 "2019-10-07T07:57:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
