gpt4 book ai didi

java - sonarqube 5.x 差分 View KO(JSON 解析异常)

转载 作者:行者123 更新时间:2023-12-02 04:03:46 25 4
gpt4 key购买 nike

在 SONARQUBE 控制台中,当我尝试对我的项目使用差异 View 时(组合框 ->“自上次分析以来”或“超过 30 天”),并且我要求仅查看差异(新添加),我收到弹出错误“执行ES搜索请求失败”。

问题是生成的 JSON 不符合 JSON : "pre_zone":"GMT+01:00"

查看下面的 java 日志:

Caused by: org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[Ke-Y5HFKSmS4todFkKRspg][issues][0]: SearchParseException[[issues][0]: query[ConstantScore(BooleanFilter(+cache(severity:CRITICAL) +CustomQueryWrappingFilter(parent_filter[authorization](filtered(ConstantScore(cache(BooleanFilter(+cache(users:admin) cache(groups:sonar-users) cache(groups:Anyone) cache(groups:sonar-administrators)))))->cache(_type:authorization))) +no_cache(issueCreatedAt:{1451826843000 TO *]) +cache(NotFilter(cache(BooleanFilter(_field_names:resolution)))) +cache(project:ea3bbe4c-0aa6-4668-84b0-f0929544d334)))],from[0],size[50],sort[,,,!,]: Parse Failure [Failed to parse source [{"from":0,"size":50,"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":[{"terms":{"severity":["CRITICAL"]}},{"has_parent":{"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":{"or":{"filters":[{"term":{"users":"admin"}},{"term":{"groups":"sonar-users"}},{"term":{"groups":"Anyone"}},{"term":{"groups":"sonar-administrators"}}]}},"_cache":true}}}},"parent_type":"authorization"}},{"range":{"issueCreatedAt":{"from":"2016-01-03T13:14:03.000Z","to":null,"include_lower":false,"include_upper":true},"_cache":false}},{"............................,"min_doc_count":0,"pre_zone":"GMT+01:00","post_zone":"GMT+01:00","format":"yyyy-MM-dd'T'HH:mm:ssZ","extended_bounds":{"min":1451826843000,"max":1451924812731}}}}}]]]; nested: NumberFormatException[For input string: "GMT+01"]; }

您知道如何解决这个问题吗? (我无法强制java时间。它是共享服务器)。

最佳答案

您的 Elasticsearch 索引似乎困惑了。尝试删除 data/es 目录并重新启动服务器。

关于java - sonarqube 5.x 差分 View KO(JSON 解析异常),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34596110/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com