• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
Greenhorn
Posts: 10
  • 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: 20739
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • 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: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much. I will try the options out.
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!