The Java API XMLToFlist Converts the String "Dummy" to an Empty String
(Doc ID 2828221.1)
Last updated on AUGUST 10, 2023
Applies to:
Oracle Communications Billing and Revenue Management - Version 7.5.0.17.0 and laterInformation in this document applies to any platform.
Symptoms
When trying to convert an XML file to a FLIST (Using the java API XMLToFlist) and one of the elements in the input XML contains the string "dummy", the java API XMLToFlist converts the string "dummy" to an empty string.
Example:
$> cat sample3.xml
<?xml version="1.0" encoding="UTF-8"?>
<flist>
<POID>0.0.0.1 / -1 0</POID>
<IN_FLIST>
<DATA_ARRAY elem="0">
<ACCOUNT_NO>01000102</ACCOUNT_NO>
<COMPANY>dummy ACME 45</COMPANY>
<CONTACT_INFO elem="0">
<NAME>dummy</NAME> <<<<<<<<<<<<<<<<<
<ADDRESS>ACME45 N/A</ADDRESS>
<CITY>Stockholm</CITY>
<COUNTRY>SE</COUNTRY>
</CONTACT_INFO>
<INV_INFO elem="0">
<DELIVERY_PREFER>1</DELIVERY_PREFER>
</INV_INFO>
</DATA_ARRAY>
</IN_FLIST>
</flist>
$>
$> java -classpath
.:/opt/data/brm/7.5/brm_base_1/jars/pcm.jar:/opt/data/brm/7.5/brm_base_1/jars/
pcmext.jar:/opt/data/brm/users/dev26/main/brm/jars/cxn_ops_fields.jar
com.portal.pcm.XMLToFlist ./sample3.xml
filename: ./sample3.xml
Writing to file: ./sample3.xml.flist.txt
0 PIN_FLD_IN_FLIST SUBSTRUCT [0] allocated 1, used 1
1 PIN_FLD_DATA_ARRAY ARRAY [0] allocated 4, used 4
2 PIN_FLD_CONTACT_INFO SUBSTRUCT [0] allocated 4, used 4
3 PIN_FLD_NAME STR [0] ""<<<<<<<<<<<<<<<<<<< The string "dummy" was converted to an empty string
3 PIN_FLD_COUNTRY STR [0] "SE"
3 PIN_FLD_CITY STR [0] "Stockholm"
3 PIN_FLD_ADDRESS STR [0] "ACME45\rN/A"
2 PIN_FLD_ACCOUNT_NO STR [0] "01000102"
2 PIN_FLD_INV_INFO ARRAY [0] allocated 1, used 1
3 PIN_FLD_DELIVERY_PREFER ENUM [0] 1
2 PIN_FLD_COMPANY STR [0] "dummy ACME 45"
0 PIN_FLD_POID POID [0] 0.0.0.1 / -1 0
$>
It looks like the code of XMLToFlist is replacing the string "dummy" with an empty string.
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |