JsonMappingException after latest snapshot build

makos8 years ago

Just recompiled the server using latest snapshot.

Log file is of these messages when creating report:

2016-12-21 00:32:35  WARN: No content to map due to end-of-input
 at [Source: ; line: 1, column: 1] - JsonMappingException (... < QueryBuilder:401 < *:451 < DataManager:285 < Trips:233 < ...)
2016-12-21 00:32:35  WARN: Can not deserialize instance of java.lang.Class out of START_OBJECT token
 at [Source: {"priority":0,"sat":8,"event":0,"io147":0,"power":0,"io21":5,"io22":1,"io145":0,"io148":0,"io67":10589,"io66":11980,"io69":1,"io146":0,"io149":0,"io150":0,"ip":""}; line: 1, column: 1] - JsonMappingException (... < QueryBuilder:401 < *:451 < DataManager:285 < Trips:233 < ...)

and these ones:

2016-12-21 00:43:37  WARN: Can not deserialize instance of java.lang.Class out of START_OBJECT token
 at [Source: {}; line: 1, column: 1] - JsonMappingException (... < QueryBuilder:401 < *:451 < *:302 < DataManager:154 < PermissionsManager:263 < ...)

Any clues?

Anton Tananaev8 years ago

It doesn't look like your are using official source code. Stack trace doesn't match.

Anton Tananaev8 years ago
makos8 years ago

Thanks. Deserialization is fixed.

However still some warnings for end-of-input.

Here is log from server built with updated official source:

2016-12-21 19:23:12  INFO: Version: 3.9-SNAPSHOT
2016-12-21 19:23:16  WARN: No content to map due to end-of-input
 at [Source: ; line: 1, column: 1] - JsonMappingException (... < QueryBuilder:401 < *:451 < DataManager:307 < DeviceManager:65 < ...)
2016-12-21 19:23:16  INFO: Starting server...
2016-12-21 19:23:49  WARN: No content to map due to end-of-input
 at [Source: ; line: 1, column: 1] - JsonMappingException (... < QueryBuilder:401 < *:451 < DataManager:282 < Trips:180 < ...)
2016-12-21 19:23:49  WARN: No content to map due to end-of-input
 at [Source: ; line: 1, column: 1] - JsonMappingException (... < QueryBuilder:401 < *:451 < DataManager:282 < Trips:180 < ...)

Should I just ignore the warnings as everything is just works as expected?

Anton Tananaev8 years ago

I have added check for empty string. Please see if you still have problems.

makos8 years ago

No warnings.
Thank you.