Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11328 Add JAX-RS capabilities (Jersey)
  3. OFBIZ-11985

Add a new NumberConverter to convert Integer to BigInteger

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Trunk
    • None
    • ALL PLUGINS
    • None

    Description

      Create a new NumberConverter allowing conversion from java.lang.Integer to java.math.BigInteger. 

      JSON number value is parsed as Integer by default and in order to pass the value to a  service attribute defined as BigInteger, conversion is necessary in order to avoid type mismatch error.

      java.lang.ClassNotFoundException: No converter found for java.lang.Integer->java.math.BigInteger
      	at org.apache.ofbiz.base.conversion.Converters.getConverter(Converters.java:119) ~[main/:?]
      

       

      Attachments

        Activity

          People

            gvasmatkar Girish Vasmatkar
            gvasmatkar Girish Vasmatkar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: