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

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Branch
    • Component/s: ALL PLUGINS
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: