# Build error

**URL:** <https://discuss.elastic.co/t/build-error/235646>\
**Category:** Elasticsearch\
**Created:** [June 3, 2020, 10:50pm UTC](https://discuss.elastic.co/t/build-error/235646 "2020-06-03T22:50:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elena\_Z](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elena_z/32/54472_2.png) [@Elena\_Z](https://discuss.elastic.co/u/Elena_Z)\
**Post date:** [June 3, 2020, 10:50pm UTC](https://discuss.elastic.co/t/build-error/235646/1 "2020-06-03T22:50:08Z")

</div>

Hey all,

I am trying to build from current github source on CentOS 7.7 / openjdk 11.0.7 / docker 19.03.11 and getting the following error during "./gradlew assembly":

```
   Task :x-pack:plugin:monitoring:compileJava FAILED
    /home/elena/ElasticSearch/elasticsearch/x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporter.java:114: error: unexpected type
                            public void validate(final List<String> value) {
                                                       ^
      required: class
      found: <any?>
    /home/elena/ElasticSearch/elasticsearch/x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporter.java:114: error: unexpected type
                            public void validate(final List<String> value) {
                                                            ^
      required: reference
      found: <any?>
    /home/elena/ElasticSearch/elasticsearch/x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporter.java:119: error: unexpected type
                            public void validate(final List<String> hosts, final Map<Setting<?>, Object> settings) {
                                                       ^
      required: class
      found: <any?>
    /home/elena/ElasticSearch/elasticsearch/x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporter.java:119: error: unexpected type
                            public void validate(final List<String> hosts, final Map<Setting<?>, Object> settings) {
                                                            ^
      required: reference
      found: <any?>
    /home/elena/ElasticSearch/elasticsearch/x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporter.java:119: error: unexpected type
                            public void validate(final List<String> hosts, final Map<Setting<?>, Object> settings) {
                                                                                 ^
      required: class
      found: <any?>
    /home/elena/ElasticSearch/elasticsearch/x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporter.java:119: error: unexpected type
                            public void validate(final List<String> hosts, final Map<Setting<?>, Object> settings) {
                                                                                     ^
      required: class
      found: <any?>
    /home/elena/ElasticSearch/elasticsearch/x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporter.java:119: error: unexpected type
                            public void validate(final List<String> hosts, final Map<Setting<?>, Object> settings) {
                                                                                                 ^
      required: reference
      found: <any?>
    /home/elena/ElasticSearch/elasticsearch/x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporter.java:162: error: unexpected type
                            public Iterator<Setting<?>> settings() {
                                   ^
      required: class
      found: <any?>
    /home/elena/ElasticSearch/elasticsearch/x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporter.java:162: error: unexpected type
                            public Iterator<Setting<?>> settings() {
                                            ^
      required: class
      found: <any?>
    9 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':x-pack:plugin:monitoring:compileJava'.
java.lang.AssertionError: isSubtype UNKNOWN

```

Any help would be greatly appreciated. Thanks.

Elena

---

<div class="post-metadata">

**Author:** ![Elena\_Z](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elena_z/32/54472_2.png) [@Elena\_Z](https://discuss.elastic.co/u/Elena_Z)\
**Post date:** [June 4, 2020, 6:23pm UTC](https://discuss.elastic.co/t/build-error/235646/2 "2020-06-04T18:23:27Z")

</div>

JFYI, got this resolved myself. After update to OpenJDK 14, I am able to build successfully.

Elena.

---

<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:** [July 2, 2020, 6:23pm UTC](https://discuss.elastic.co/t/build-error/235646/3 "2020-07-02T18:23:36Z")

</div>

Closed on July 2, 2020, 6:23pm UTC

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