IBM Support

PI08692: JSON exception when webservice returns a float value with German locale

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment: Windows
    Product name: IBM Rational Business Developer
    
    Program Version    :  9.0
    Description.
    A JSON error is observed when a webservice returns a float value
    within a RUI application where the German locale has been
    applied.
    In German the decimal numbers are separated by a comma so the
    EGL runtime then adopts this representation within the JSON
    answer to a webservice call resulting in an incorrect format
    with float data types which throws an exception eg:
    An exception has occurred while calling
    http://localhost:9087/MyWebservices/restservices/myservices on
    method: testSmallFloat
    The body of the request was:
    {'bindingName':'Imyservices','method':'testSmallFloat','params':
    []}
    message:[CRRUI3655E] Fehler bei Verarbeitung des Antwortobjekts:
    '[CRRUI2089E] Die Konvertierung aus dem JSON-Format '{'result' :
    1,23}' war aufgrund von invalid object initializer nicht
    m?glich.'
    ServiceKind:REST
    detail1:200
    detail2:OK
    detail3:{'result' : 1,23}
    
    With English locale setting the same call will work correctly.
    
    NB: Reported in RBD v90 but its also reproducible with v901.
    Other languages are also effected where associated with the
    comma separator for example I see the same error with the French
    locale.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The smallfloat/float value is formatted in the Java service
    runtime within German locale and then return back to the
    service caller, which causes an invalid JSON string.
    

Problem conclusion

  • Changed the Java service runtime to not automatically format
    the smallfloat/float value.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI08692

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-12-24

  • Closed date

    2015-03-23

  • Last modified date

    2015-03-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL BUS DEV

  • Fixed component ID

    5724S5000

Applicable component levels

  • R900 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
17 October 2021