So basically, while trying to compile graylog-server, I got these messages :
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project graylog2-server: Compilation failure:
Compilation failure:
[ERROR]
/home/duje/graylog2-server/graylog2-server/src/main/java/org/graylog2/rest/resources/search/SearchResource.java:[157,41]
method create in class
org.graylog2.rest.models.system.indexer.responses.IndexRangeSummary cannot
be applied to given types;
[ERROR] required:
java.lang.String,org.joda.time.DateTime,org.joda.time.DateTime,org.joda.time.DateTime,int
[ERROR] found:
java.lang.String,org.joda.time.DateTime,org.joda.time.DateTime,int
[ERROR] reason: actual and formal argument lists differ in length
[ERROR]
/home/duje/graylog2-server/graylog2-server/src/main/java/org/graylog2/bindings/ServerObjectMapperModule.java:[28,48]
cannot find symbol
[ERROR] symbol: method makeObjectMapper()
[ERROR]
/home/duje/graylog2-server/graylog2-server/src/main/java/org/graylog2/bindings/ServerObjectMapperModule.java:[26,5]
method does not override or implement a method from a supertype
I can not understand why is this happening, it is asking for 5 parameters,
when it can be clearly seen from the code below that there are only 4
parameters in the method:
public static IndexRangeSummary create(@JsonProperty("index") String
indexName,
@Nullable @JsonProperty(
"calculated_at") DateTime calculatedAt,
@JsonProperty("starts") DateTime
start,
@JsonProperty(
"calculation_took_ms") int calculationTookMs) {
return new AutoValue_IndexRangeSummary(indexName, calculatedAt,
start, calculationTookMs);
}
The line 157 is just a for each loop creating these IndexRangeSummaries:
156 for (IndexRange indexRange : indexRanges) {
157 result.add(IndexRangeSummary.create(indexRange.getIndexName
(), indexRange.getCalculatedAt(), indexRange.getStart(), indexRange.
getCalculationTookMs()));
158 }
I even tried putting one more getStart() method just to see if it would
work, but still get the same message.
--
You received this message because you are subscribed to the Google Groups
"graylog2" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.