当前位置:网站首页>Gson converts the entity class to JSON times declare multiple JSON fields named
Gson converts the entity class to JSON times declare multiple JSON fields named
2022-07-07 08:41:00 【coder_ monarch】
A problem I encountered when testing the project on the user server today , Log printing is :
java.lang.IllegalArgumentException:…declares multiple JSON fields named …
Use the same version locally jdk and tomcat, There is no error in running the project , Background query sql Get it to the local database and execute , There was no error .
I found many solutions online , Most of them say that the subclasses and superclasses of entity classes have the same attributes , But there is no inheritance of subclasses and parent classes in the project , So overturn this conjecture .
First check the environment , Use the same version locally jdk and tomcat, There is no error in running the project ;
Secondly, the background query sql Get it to the database and execute , There was no error ;
Finally, it is suspected that the project version is inconsistent , So copy the complete project back to the user server , Use it again after configuration tomcat After running, I still report the same problem .
I tried to modify the program several times but failed
Observe carefully sql The results of the investigation , It turns out that there are clob Data of type , But in the local database varchar2 Data of type ; Therefore, it is speculated that the reason is the database version .
Carefully analyze the backstage sql, Used wn_concat Function to put the found multiple pieces of data together and display them on the front desk , Because the server is clob Data of type , Cause data type mismatch , So the front desk reported an error .
边栏推荐
- All about PDF crack, a complete solution to meet all your PDF needs
- The field value in Splunk subquery fuzzy matching CSV is*
- Greenplum6.x常用语句
- 2 - 3 arbre de recherche
- 基本数据类型和string类型互相转化
- What are the advantages of commas in conditional statements- What is the advantage of commas in a conditional statement?
- Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
- Iptables' state module (FTP service exercise)
- How to realize the high temperature alarm of the machine room in the moving ring monitoring system
- Redis summary
猜你喜欢
Other 7 features of TCP [sliding window mechanism ▲]
Ebpf cilium practice (1) - team based network isolation
指针进阶,字符串函数
2-3查找树
IP地址的类别
归并排序和非比较排序
oracle一次性说清楚,多种分隔符的一个字段拆分多行,再多行多列多种分隔符拆多行,最终处理超亿亿。。亿级别数据量
Tuowei information uses the cloud native landing practice of rainbow
opencv之图像分割
MySQL introduction - crud Foundation (establishment of the prototype of the idea of adding, deleting, changing and searching)
随机推荐
Componentspace2022, assertions, protocols, bindings, and configuration files
Low success rate of unit test report
[南京大学]-[软件分析]课程学习笔记(一)-introduction
redis故障处理 “Can‘t save in background: fork: Cannot allocate memory“
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
Appeler l'interface du moteur de création du service multimédia de jeu Huawei renvoie le Code d'erreur 1002, le message d'erreur: les paramètres sont l'erreur
数据分析方法论与前人经验总结2【笔记干货】
[Yugong series] February 2022 U3D full stack class 008 - build a galaxy scene
Greenplum6.x常用语句
如何在HarmonyOS应用中集成App Linking服务
idea里使用module项目的一个bug
Gson转换实体类为json时报declares multiple JSON fields named
leetcode135. Distribute candy
如何在图片的目标中添加目标的mask
2-3 lookup tree
Practice of combining rook CEPH and rainbow, a cloud native storage solution
Leetcode 1984. Minimum difference in student scores
Calling the creation engine interface of Huawei game multimedia service returns error code 1002, error message: the params is error
Deit learning notes
Are you holding back on the publicity of the salary system for it posts such as testing, development, operation and maintenance?