--- title: "无效的时间分钟值,可能值应在0到59之间——如何解决此Elasticsearch异常" date: 2026-01-16 lastmod: 2026-01-16 description: "当在Elasticsearch中输入无效的分钟值时会出现此错误。分钟值应在0到59之间,但输入了超出此范围的值。" tags: ["Elasticsearch异常", "时间格式错误", "分钟值验证", "数据校验"] summary: " 版本: 6.8-7.15 简而言之,当在Elasticsearch中输入无效的分钟值时会发生此错误。分钟值应该在0到59之间,但输入了超出此范围的值。要解决此问题,您应该检查输入的时间值,确保分钟值在可接受的范围内。如果您使用脚本或应用程序来输入时间,确保其格式正确以防止此类错误。 日志上下文 日志"invalid time minute value [{}] (possible values may be between 0 and 59"的类名是 DayTimes.java。 我们从Elasticsearch源代码中提取以下内容,供那些寻求深入了解上下文的人参考: case VALUE_STRING: String value = parser.text(); try { minute = Integer.valueOf(value); if (DayTimes.validMinute(minute) == false) { throw new ElasticsearchParseException("invalid time minute value [{}] (possible values may be between 0 and 59 " + "incl.)"; minute); } return minute; } catch (NumberFormatException nfe) { throw new ElasticsearchParseException("invalid time minute value [{}]"; value); " --- > **版本:** 6.8-7.15 简而言之,当在Elasticsearch中输入无效的分钟值时会发生此错误。分钟值应该在0到59之间,但输入了超出此范围的值。要解决此问题,您应该检查输入的时间值,确保分钟值在可接受的范围内。如果您使用脚本或应用程序来输入时间,确保其格式正确以防止此类错误。 日志上下文 日志"invalid time minute value [{}] (possible values may be between 0 and 59"的类名是[DayTimes.java。](https://www.geeksforgeeks.org/java-lang-class-class-java-set-1/) 我们从Elasticsearch源代码中提取以下内容,供那些寻求深入了解上下文的人参考: ```java case VALUE_STRING: String value = parser.text(); try { minute = Integer.valueOf(value); if (DayTimes.validMinute(minute) == false) { throw new ElasticsearchParseException("invalid time minute value [{}] (possible values may be between 0 and 59 " + "incl.)"; minute); } return minute; } catch (NumberFormatException nfe) { throw new ElasticsearchParseException("invalid time minute value [{}]"; value); ```