New posts are disabled while we improve the user experience.

You can browse the site, or for urgent issues, raise a query at MyAccount.

question

Upvotes
Accepted
1 3 1 5

Urgent help : Unable to update the config file using the config editor

We are trying to update the config file (prefs.xml) using the config editor. The file does not get updated, it still holds the previous configuration. The input file used is (rfa_configurations.xml)

Please advise urgently on how to update the prefs.xml with the new config details.

Thank you.

treprfarfa-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
9.6k 10 7 7

Hello @Pulaputra.Sudheer

I have compared the exported file and the given rfa-configurationxml.txt

I found that the exported file contains all nodes in rfa-configuration.xml but some parameters e.g. serverList are different as shown below:

Hence, it seems that RFA configuration on the machine is not updated according to

rfa-configuration.xml properly(some parameters are different).

Based on my team experience, if RFA configuration is not updated properly. The possible solution is to remove the namespace node which you want to update before import the configuration file. In your case, it is Murex namespace. Hence, please run the following 3 commands:

java -jar config_remover.jar -user -path /com/reuters/rfa/Murex
java -jar config_loader.jar -file rfa-configuration.xml
java -jar config_exporter.jar -user -path com -file config_after.xml

Then, attach rfa-configuration.xml and config_after.xml. Hence, I can help you to check if the RFA configuration after importing the file is updated properly or not.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
9.6k 10 7 7

Hello @Pulaputra.Sudheer

Please try the following steps below:

1. At config editor, select File -> import -> File. Then, select the xml file you want to import. You should see the following message at the bottom block of the config editor:

Info: <the file name> imported

2. Modify RFA configuration parameters using config editor as you require

3. Select User:/ node to export since User node and its children nodes. Click File-> export -> Save dialog is shown. Fill the file name. Then, You should see the following message at the bottom block of config editor:

Info: User:/ exported to <the file name>

Note:

When you import a RFA configuration file to the machine using the config editor, this is to merge the configuration in the file into the current configuration on the machine. For example, if the configuration shown in the config editor contains the following info:

Then, import a file which contains:

<entry key="connectionType" value="RSSL"/>
<entry key="serverList" value="192.168.27.49"/>
<entry key="portNumber" value="14002"/>

So the result after importing the file is:

You will see that the new configuration still contains the logFielName even the imported file does not have this parameter.

If you still face the problem, please send

  • The messages you see in the bottom block of config editor
  • The step by step to reproduce the problem
  • The imported file
  • The exported file after modification

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 3 1 5

hi, Thanks for the inputs. actually it's updated pro-grammatically not manual interaction. we are checking our end. please don't close the ticket until our confirmation.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @Pulaputra.Sudheer

If the problem still occurs, please send the following:

  1. the input configuration before modification
  2. source code/script/command line which modifies the configuration and can reproduce the problem
  3. the output configuration after modification that the problem occurs
  4. the expected output configuration after modification that you wish
Upvotes
1 3 1 5

Hi,

Apologies, we were actually using config loader and not config editor to update the prefs.xml.

We are trying to update the config file (prefs.xml) using the config loader. The file does not get updated, it still holds the previous configuration. The input file used is (rfa_configurations.xml)

Please advise urgently on how to update the prefs.xml with the new config details.

Thank you.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
9.6k 10 7 7

Hello @Pulaputra.Sudheer

The config loader(config_loader.jar) shipped with RFA Java package is used to import an xml file into the machine. It is not used to merge two xml files. If you want to do this, you can use one of the following possible ways:

1.Copy manually the nodes in rfa_configurations.xml into prefs.xml

or

2.Use Config Editor(GUI tool) to import the configuration nodes in prefs.xml then import the configuration nodes in rfa_configurations.xml. Next, export User node which containing the configuration nodes from both files into a new file e.g. newperf.xml. Then, you can rename the file later to be perf.xml. If you see any existing namespace (except _System) under rfa node after you start Config Editor(you have not imported any file yet), this is rfa configuration on the machine. I suggest you back up this configuration first before you import prefs.xml and rfa_configurations.xml by exporting the User node into an xml file as I explained in my answer above. This also help to avoid merging the existing configuration on the machine with the configuration in prefs.xml and rfa_configurations.xml. Then, delete rfa node by selecting rfa->right click->Remove Node. The rfa node will be created again when you start Config Editor. Next, close and start Config Editor again then there should not be any node under rfa(except _System). Next, you can import prefs.xml and rfa_configurations.xml and export the result of merging two files as a new xml file. Finally, delete rfa node, close and start Config Editor again then import the backup file to restore the configuration on the machine.Please refer to my answer above for how to import and export file using Config Editor(GUI tool).

If your machine cannot run GUI tool/does not support GUI mode, you have to copy the configuration in rfa_configurations.xml into prefs.xml manually because rfa does not have any command line tool to do this.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 3 1 5

hi

is there anyway we can reach you by phone. we have an urgent production deployment and it is hampering because of this issue.

thanks & regards

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @Pulaputra.Sudheer

Can you attach prefs.xml and rfa_configurations.xml? Then, I will merge configurations in both files and send you back the merged xml file.

Upvotes
1 3 1 5

Hi,

We tried by updating prefs.xml manually but it did not work. As requested attached both prefs.xml and rfa_configurations.xml files. prefsxml.txt rfa-configurationxml.txt renamed files with .txt extension as I am unable to upload .xml files.

Please kindly check and advise.

thanks & regards,


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
9.6k 10 7 7

Hello @Pulaputra.Sudheer

The given prefs.xml is not complete a RFA configuration file while rfa-configuration.xml is a complete RFA configuration file. prefs.xml contains only a connection node without name and session points to the connection node. Hence, I could not use Config Editor tool to merge two files. Hence,

  1. I copied the node in pref.xml file into rfa-configuration.xml file under Connections with the name "newNode" node.
  2. I created a session node named "NewNodeSession" under Sessions node of Murex namespace. The session node points to the newNode(the configuration from prefs.xml).

All changes are:

I run RFA application to read Murex::NewNodeSession and it worked properly. Hence, the merge file is a valid RFA configuration:

mergeprefsxml.txt

When you run the application, please specify the session to be Murex::NewNodeSession when you want to use configuration from prefs.xml.


allchanges.png (96.3 KiB)
mergeprefsxml.txt (15.6 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 3 1 5

Hi

thanks for the details. Actually we can also update prefs.xml in our UAT env but unable to update the same in PROD env.

Regarding node, we wanted to replicate the details from the node name 'SSL' in rfa_configuration.xml file to prefs.xml ( attached file to get the node setting details :

rtbs-properties.mxres.txt rtbs-propertiesmxres.txt

we are using Config Loader to update prefs.xml file.

Please check and advise how to get updated the details from 'SSL' node of rfa_configuration.xml to prefs.xml

could you provide your contact details so that we can call you to discuss.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
9.6k 10 7 7

Hello @Pulaputra.Sudheer

The attached file I gave to you, mergeprefsxml.txt above is to merge all nodes in prefs.xml and rfa_configuration.xml into a RFA configuration file already I already tested it and RFA example application worked properly. So it is a valid RFA configuration file. If the problem still exists with my given file, please contact the support/development of your application how to add new configuration read by the application.

For rtbs-propertiesmxres.txt this is not the format of RFA and I do not understand it. Please contact the support/development of your application who can help you on this.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 3 1 5

hi,

apologies, merging prefs.xml and rfa_configuration.xml file is not the objective. we can't use

merging prefs.xml. what we wanted is ==> update prefs.xml file using the contents of 'SSL' node of rfa_configuration.xml. so that our application takes server details from prefs.xml to connect to our TREP-RT.

here I am listing the purpose all three files:

rtbs-properties.mxres.txt : the type of node that should be used. our case it's SSL

rfa_configuration.xml : contains configuration details of SSL node. source file.

prefs.xml : target file.

we are using RFA config loader to update prefs.xml using rfa_configuration.xml.

our Reuters Accounts manager has advised to post the question in development community for assistance hence we have posted the question here.

we need some urgent help here on this how to get prefs.xml updated from rfa_configuration.xml.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 3 1 5

Hi, FYI, here is the command we are running to update ==>

java -jar config_loader.jar -file rfa_configuration.xml

since it's working fine in UAT but not in production. can you advice is there is any file/directory permission or config setup or environment variable we need to check, which might be the cause.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
9.6k 10 7 7

Hello @Pulaputra.Sudheer

The config loader command line that you have done in UAT

java -jar config_loader.jar -file rfa_configuration.xml

is to import the configuration in rfa_configuration.xml into the file preference(Unix)/Registry(Windows) of the UAT machine. This is to update RFA configuration in UAT machine.config loader cannot be used to update prefs.xml using rfa_configuration.xml; it is used to update configuration on the machine with the file.

I have merged all SSL nodes in rfa_configuration.xml in to prefs.xml

prefsxml.txt

Then, you should be able to use the config loader command line below to import configuration in prefs.xml into the PROD machine:

java -jar config_loader.jar -file prefs.xml

I have tested the command line above and RFA configuration on my machine was updated properly.


prefsxml.txt (11.0 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
9.6k 10 7 7

Hello @Pulaputra.Sudheer

Can you run the following command line successfully on PROD machine?

java -jar config_loader.jar -file <file name>

If not, to allow me help you, please provide the following info

  1. The message shown after you run the command line above
  2. Please attach the file that you run with the command line
  3. What is the OS of the machine running the command line? Is it Linux, Sun or Windows?
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 3 1 5

Hi, Please refer responses below:

1. There is no output after running the command and we can't find any logs.

2. rfa-configurationxml.txt

3. Linux

The issue we are experiencing is it works in UAT but not in Prod.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @Pulaputra.Sudheer

If there is no any output, how do you know it does not work?

Upvotes
28k 68 18 14

Does the config_loader.jar tool returns "imported prefs OK from file <your file name>" as shown below?

As Pimchaya asked, how do you know the tool does not work? The updated configurations does not populate to the application?


tools.png (38.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 3 1 5

Hi,

The config_loader.jar tool does return the

"imported prefs OK from file rfa_configuration.xml".

Attached screen shot from my production environment shows the correct detail returned.

Even though the loader is returning the correct details as shown above but somehow it is failing to update the details in the file "prefs.xml".

Can you please suggest now.

Thanks,config-loader-log.png


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
9.6k 10 7 7

Hello @Pulaputra.Sudheer,

I have run:

java -jar config_loader.jar -file rfa-configuration.xml

The file could be loaded to the Linux machine properly so your given xml file is proper.

To check the current rfa configuration on the machine, please run:
java -jar config_exporter.jar -user -path com -file config_after.xml

This command will export the user node since the com path on the machine to a file named config_after.xml. Please attach the file. Hence, I can check the current rfa configuration after you run config loader if it is correct or not.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 3 1 5

Hi,

We have executed the below command as suggested by you in our UAT environment which is a production copy and I am attaching the same.

Command executed :

java -jar config_exporter.jar -user -path com -file today_22.xml [today-22xml.txt]

Can you please let us know your findings on this.

Thanks,


today-22xml.txt (14.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.