Skip to content

Parsing ZonedDateTime: "Unable to extract annotation for property chronology" #368

@askaribragimov

Description

@askaribragimov

I am trying to parse a field into ZonedDateTime using Boon Json library and receive the following error (abriged):

handleExceptionorg.boon.Exceptions$SoftenedException: fieldName order  of class 
  RowModel had issues for value MAP for field FieldInfo [name=order, 
  type=class OrderRowModel]
CAUSE org.boon.Exceptions$SoftenedException :: fieldName updatedAt of class class OrderRowModel
  had issues for value 2017-02-13T13:07:09.481Z for field FieldInfo 
  [name=updatedAt, type=class java.time.ZonedDateTime]
CAUSE org.boon.Exceptions$SoftenedException :: name chronology setter null 
  getter public default java.time.chrono.Chronology 
  java.time.chrono.ChronoZonedDateTime.getChronology()
CAUSE org.boon.Exceptions$SoftenedException :: Unable to extract annotation for property
  chronology  of class  interface java.time.chrono.ChronoZonedDateTime   useRead  false

I suppose I should somehow add support or configure Boon.Json to handle ZonedDateTime properly. How can I avoid the error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions