Online Tomcat deployment of the project, running process, a table to modify data has been reported error, nothing in the local! Check the console log and report the following error
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse e
rror: Invalid UTF-8 middle byte 0x3f; nested exception is com.fasterxml.jackson.
databind.JsonMappingException: Invalid UTF-8 middle byte 0x3f
at [Source: (PushbackInputStream); line: 1, column: 73] (through reference chai
n: com.bj.bjmodularsys.entity.SysRoleEntity["name"])
The key part of the error is: JSON parse error: invalid UTF-8 middle byte 0x3f
Reason: the encoding is inconsistent. The encoding format of Tomcat service transmission should be specified as UTF-8
Solution:
In the bin directory of Tomcat catalina.bat Add the following sentence to the list
set JAVA_ OPTS=%JAVA_ OPTS% – Dfile.encoding=UTF -8
Read More:
- Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0x80 in position 3131: invalid start byte solution
- JSON parse error: invalid UTF-8 solution series
- 1067 – Invalid default value for ‘sex‘1366 – Incorrect string value: ‘\xE6\x8A\x80\xE6\x9C\xAF…‘ f
- ERROR: invalid byte sequence for encoding “UTF8”: 0x00
- 【ipfs-api】npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
- Solution of Unicode decodeerror -‘utf-8 ‘codec can’t decode byte 0xc4 in position 0 – invalid continuation byte
- Cause: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 26; Byte 1 of 1-byte UTF-8 sequence is invalid.
- UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd6 in position 3089: invalid continuation byte
- Solve the ‘UTF-8’ codec can’t decode byte 0xe9 in position 3114: invalid continuation byte error
- UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xc3 in position 54: invalid continuation byte
- Docker command error during connect: get http://2F2F.2Fpipe2Fdocker_ engine/v1.36/containers/json: open//.
- JSON data format net.sf.json .JSONException: A JSONObject text must begin with ‘{‘ at character 1 of Error:(f…
- Event resolution of component {b3118b2-1f49-48e5-b6f5-bc21caec56fb}
- When websocket transmits JSON text, the parse method reports an error
- Could not write JSON: write javaBean error, fastjson version x.x.x, class
- Type error: the JSON object must be STR, bytes or byte array, not ‘textiowrapper’
- Unable to read workspace file ‘D:\angular.json‘: Invalid JSON character: “ “ at
- Stm32f107 kernel file — stm32f10x. H
- Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation B
- When reading the CSV file with Python 3, the Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd0 in position 0: invalid con appears