[ 
https://issues.apache.org/jira/browse/JOHNZON-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Struberg resolved JOHNZON-145.
-----------------------------------
    Resolution: Fixed

> 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)

Reply via email to