johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JOHNZON-145) Improve FallbackConverter error reporting
Date Fri, 10 Nov 2017 08:45:00 GMT
Mark Struberg created JOHNZON-145:
-------------------------------------

             Summary: Improve FallbackConverter error reporting
                 Key: JOHNZON-145
                 URL: https://issues.apache.org/jira/browse/JOHNZON-145
             Project: Johnzon
          Issue Type: New Feature
          Components: Mapper
    Affects Versions: 1.1.4
            Reporter: Mark Struberg
            Assignee: Mark Struberg
             Fix For: 1.1.5


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:
{noformat}
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]
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message