• 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
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

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

 
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: 21003
128
Android Eclipse IDE Tomcat Server Redhat Java 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: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much. I will try the options out.
 
All of life is a contant education - Eleanor Roosevelt. Tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!