cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Problem: Unexpected error while parsing the multi-structure document

Former Member
0 Kudos

Hi experts,

I have a problem with an XSLT Mapping. I have multiple mapping steps, first two graphical mappings, then one XSLT mapping. Occurence of the Messages is 0..unbounded. The XSLT mapping fails with the following error:

Mapping "urn:namespace/operation_mapping" failed to execute: MappingException: Unexpected error while parsing the multi-structure document, NullPointerException: while trying to invoke the method javax.xml.stream.XMLEventWriter.add(javax.xml.stream.events.XMLEvent) of an object loaded from local variable 'writer'

I am aware of SAP notes 1809068 and 1723202 and I also read the other questions in SCN regarding this problem. The notes say that this is an error in XI Adapter Framework which is fixed by some patches. But: We have PI 7.31 SP15 with patch level 25 and this fixes should be included there:

And one more interesting thing: If I replace the code of my original XSLT with the following (very simple) one, the error does not occur:

This is the original XSLT (it basically reads an authToken from payload an places it in the SOAP:Header):

Any ideas how to fix this?

Thanks & regards,

Stefan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

do you have an input xml to test the transformation - maybe your xslt creates an invalid output (multiple root nodes for example)

br

former_member186851
Active Contributor
0 Kudos

Hello Stefan,

Try enabling "Enable SOAP XML toolkit" in operation mapping and check.

Former Member
0 Kudos

Hi,

"Enable SAP XML Toolkit" enabled, but still the same error.

former_member186851
Active Contributor
0 Kudos

Stefan,

If your passing the Soap Body as it is,why dont use the simple XSLT code which is working for the body.