Build error

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

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

Elena.

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