【已解决】koca-elasticsearch报查询语句json解析失败,请检查入参中是否包含特殊字符

项目名称:KOCA
KOCA版本 :5.2.0
KOCA模块 :koca-elasticsearch
模块版本 :5.2.0
场景 :
问题 :
报错细节 :
[2024-07-11 15:36:41.495] ERROR [admin,ce6b73611a578f0b,1a23b681f3af0657,] 11204 — [http-nio-8082-exec-8] c.s.k.e.binding.EsMapperProxy 138: 查询语句json解析失败,query string:

            {
            "mappings": {
            "properties": {
            
                "gender": { "type": "text" }
            ,
                "age": { "type": "long" }
            ,
                "username": { "type": "keyword" }
            
            }
            }
            }

[2024-07-11 15:36:41.497] ERROR [admin,ce6b73611a578f0b,1a23b681f3af0657,] 11204 — [http-nio-8082-exec-8] c.s.k.s.e.GlobalExceptionHandler 159: 查询语句json解析失败,请检查入参中是否包含特殊字符

com.szkingdom.koca.elasticsearch.exceptions.KocaEsExecuteException: 查询语句json解析失败,请检查入参中是否包含特殊字符
at com.szkingdom.koca.elasticsearch.binding.EsMapperProxy.ensureJsonValid(EsMapperProxy.java:139) ~[koca-elasticsearch-5.2.0.jar:na]
at com.szkingdom.koca.elasticsearch.binding.EsMapperProxy.invoke(EsMapperProxy.java:101) ~[koca-elasticsearch-5.2.0.jar:na]
at com.sun.proxy.$Proxy174.createIndex(Unknown Source) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_171]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.3.27.jar:5.3.27]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.3.27.jar:5.3.27]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.27.jar:5.3.27]
at com.szkingdom.koca.support.mybatis.aop.PageAdvice.invoke(PageAdvice.j
com.szkingdom.koca.elasticsearch.exceptions.KocaEsExecuteException: 查询语句json解析失败,请检查入参中是否包含特殊字符

解决方案:

修改fastjson版本为1.2.83

        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
            <version>1.2.83</version>
        </dependency>