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
Hi,
There is a logical error in the code that cause ArrayIndexOutOfBoundsException error.
In the Line 100 of "CsvToSenMLParse" you are trying to set the basetime by doing: finalSenML.put("bt", val[timestampField]);
where the val is a string array which only has a single element.
Because you do m = (String) map.get("D"); String[] val = m.split(",");
The map that you pass to the "doTaskLogic" method from "CsvToSenMLParseBolt" only contains one pair of key and value!! map.put(AbstractTask.DEFAULT_KEY, (String)input.getValueByField("OBSVAL"));
Could you please advice ?
The text was updated successfully, but these errors were encountered:
I think the issue is with the schema file being passed in the properties file. Please make sure the property PARSE.CSV_SCHEMA_WITH_ANNOTATEDFIELDS_FILEPATH is pointing to file taxi-schema_with_annotation.csv present under resources and value of property PARSE.CSV_SENML_USE_MSG_FIELD is set to -1.
Also take the latest once of this schema file in case your version is not having latest changes. The map has a single key but the value is a comma separated string and we are fetching the timestamp after doing a split by comma on that string.
Hi,
There is a logical error in the code that cause ArrayIndexOutOfBoundsException error.
In the Line 100 of "CsvToSenMLParse" you are trying to set the basetime by doing:
finalSenML.put("bt", val[timestampField]);
where the val is a string array which only has a single element.
Because you do
m = (String) map.get("D");
String[] val = m.split(",");
The map that you pass to the "doTaskLogic" method from "CsvToSenMLParseBolt" only contains one pair of key and value!!
map.put(AbstractTask.DEFAULT_KEY, (String)input.getValueByField("OBSVAL"));
Could you please advice ?
The text was updated successfully, but these errors were encountered: