Skip to Content
avatar image
Former Member

java mapping to handle & not working

i have used java mapping to replace & with & in XML file.

the whole scenario is working when tested in operation mapping,

But while testing end to end i am getting the same error i.e interface determination error which i used to get before implementing the java mapping (reason for this was & in XML file ).

The interface determination error as resolved when i manually changed and processed the XML through test .

So please let me know if i need to configure something after doing java mapping.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 03, 2017 at 03:34 AM


    Have you reactivated the interface determination? Sometimes it keeps the old mapping.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      public class DDN_java_mapping extends AbstractTransformation {


      public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException {

      try {

      InputStream inputstream = transformationInput.getInputPayload().getInputStream();

      OutputStream outputstream = transformationOutput.getOutputPayload().getOutputStream();

      byte[] b = new byte[inputstream.available()];;

      String inputContent = new String(b);

      inputContent = inputContent.replaceAll("&", "&");


      } catch (Exception exception) { getTrace().addDebugMessage(exception.getMessage()); throw new StreamTransformationException(exception.toString());




  • Nov 07, 2017 at 08:06 AM

    Hi Abhishek!

    I can't catch the aim of replacing the symbol with exactly the same symbol. What do you want to do? Or if it's the editor issue which doesn't show correct representation?

    If you have any issues with your xml file contents caused by using '&' symbol within it (which means that your source xml file is not well-formed), you should replace such symbols using escape sequence.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 13, 2017 at 03:39 AM

    Check the status of cache and refresh if required.

    Add comment
    10|10000 characters needed characters exceeded