Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-145

Improve FallbackConverter error reporting

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.4
    • 1.1.5
    • Mapper
    • None

    Description

      Currently the MappingParserImpl FallbackConverter does not have much knowledge about the type.
      This leads to funny exceptions without much info about the JSON and the Type:

      Caused by: org.apache.johnzon.mapper.MapperException: Using fallback converter, this only works in write mode but not in read. Please register a custom converter to do so.
      	at org.apache.johnzon.mapper.MappingParserImpl$FallbackConverter.fromString(MappingParserImpl.java:776) ~[johnzon-mapper-1.1.5-SNAPSHOT.jar:1.1.5-SNAPSHOT]
      	at org.apache.johnzon.mapper.internal.ConverterAdapter.to(ConverterAdapter.java:37) ~[johnzon-mapper-1.1.5-SNAPSHOT.jar:1.1.5-SNAPSHOT]
      	at org.apache.johnzon.mapper.internal.ConverterAdapter.to(ConverterAdapter.java:24) ~[johnzon-mapper-1.1.5-SNAPSHOT.jar:1.1.5-SNAPSHOT]
      

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: