1 problem
When a new HTTP interface is called and the data is parsed, an exception is raised:
Under Caused by: com. Fasterxml. Jackson. Databind. JsonMappingException: Can not deserialize the instance of the com. Out of XXX START_ARRAY token
The second analysis
If you look at the JSON data for the data, it’s an array. The original one is encapsulated as response.
So, you can encapsulate. Modify parsing without encapsulation:
When a new HTTP interface is called and the data is parsed, an exception is raised:
Under Caused by: com. Fasterxml. Jackson. Databind. JsonMappingException: Can not deserialize the instance of the com. Out of XXX START_ARRAY token
The second analysis
If you look at the JSON data for the data, it’s an array. The original one is encapsulated as response.
So, you can encapsulate. Modify parsing without encapsulation:
objectMapper.readValue(json,XXOjject[].class);
This is an array object that can be converted to a list and returned normally.
Read More:
- [Jackson exception] com.fasterxml.jackson . databind.JsonMappingException Exception handling method
- Array of PHP_ diff,array_ intersect,array_ merge, in_ Is there a limit on the number of arrays in array?
- Strange exception 001: invalid or unexpected token
- [solved] error: valueerror: expected 2D array, got scalar array instead
- [resolved] exception java.net.ConnectException : Error opening socket to server Connection timed out.
- java.sql.SQLException : IO exception: socket read timed out
- Token bucket implementation with adaptive token generation rate
- About writing [if] and [else] statements in JSP, Syntax error on token “else”, delete this token
- Use of HQL query.list () is a null pointer exception, but the database can find out the result
- Idea pop-up window out of memory, modify the parameters and start the no response solution
- Syntax error on token “}“, delete this token
- Variable type error: error of array occurs when TP5 controller receives the array of post
- ** exception error: undefined function appmon:start/0
- Syntax error on token “eat”, identifier expected after this token
- Two dimensional array and pointer to one dimensional array
- Exception on start hive: caused by: java.net.noroutetohostexception: no route to host
- Could not start Quartz Scheduler after delay; nested exception is org.quartz.SchedulerException:
- The mongoDB service failed to start (exception: connect failed)
- Conversion between list and string array