Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

when switching from jackson databind 2.8 to 2.9.8 , object is null when deserializing  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a huge json payload. When deserializing it with 2.8.11, it works just fine. When using 2.9.8, one of the embedded objects is null. What is the best way to debug the deserializer? I dont see any exceptions in the log. If I go through the debugger, it takes forever and I never reach the end. Please help. Thanks.
 
Bartender
Posts: 20580
121
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the logging options for the deserializer and see if you can raise them to a detailed debug level. It's likely that with fine enough logging you may actually be able to see the elements by name as they are processed and that will help you spot any irregularities in processing.

Another option, assuming you're using an open-source deserializer is to download the source (make sure it's the EXACT same version!) of the deserializer and set a breakpoint on the place where the faulty element should be processed. Then set up a conditional breakpoint. That will slow processing down, but you won't have to manually step through every intermediate item.

Conditional breakpoints in a Java IDE are java expressions, so the logic will be something like "tag.text.equals("november")".
 
Nancy Joe
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much. I will try the options out.
 
Whose rules are you playing by? This tiny ad doesn't respect those rules:
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!