cancel
Showing results for 
Search instead for 
Did you mean: 

Mail adapter and XMLAnonymizerBean

Former Member
0 Kudos

Hello everybody!

We are using Mail Adapter to send XML files to our clients. We are using XMLAnonymizerBean (localejbs/AF_Modules/XMLAnonymizerBean) to remove some namespaces and prefixes.

We have defined:

anonymizer.acceptNamespaces http://ns1.mycompany.com ns1

anonymizer.quote "

After module execution the " (quotes) are removed from the XML and ' (apostrophe) are used in their place

Are we doing something wrong?

Thanks in advance

Julio

Accepted Solutions (0)

Answers (2)

Answers (2)

Shabarish_Nair
Active Contributor
0 Kudos

>

> We have defined:

> anonymizer.acceptNamespaces http://ns1.mycompany.com ns1

> anonymizer.quote "

1. try to provide anonymizer.quote " before anonymizer.acceptNamespaces

2. make sure there are no whitespaces in the parameter listing. even a single whitespace can cause problem.

Former Member
0 Kudos

Guys, RWB is showing the following error:

Anonimizer: failed to anonymized due to java.io.IOException: com.sap.engine.lib.xml.parser.NestedSAXParserException: Generic Exception: -> java.lang.StringIndexOutOfBoundsException

Former Member
0 Kudos

This erro ONLY happens when I use the line:

anonymizer.quote " or

anonymizer.quote '

VijayKonam
Active Contributor
0 Kudos

Remove the below line.

> +anonymizer.quote "

VJ

Former Member
0 Kudos

Hi VJ! It did not work!