Skip to Content
0
Former Member
May 21, 2008 at 08:50 AM

SAX-parser and mapping on the XI

2232 Views

Helllo everybody,

I'm trying to map an xml-document using the SAX-parser.

I'm reading the data using an impustream. the problem is, while testing on the XI, the following message comes :

Creating Java mapping xmlDataExchangeSAPSample/XMLValidation

Loaded class xmlDataExchangeSAPSample.XMLValidation

Loaded class xmlDataExchangeSAPSample.myErrorHandler

Call method execute of the application Java mapping xmlDataExchangeSAPSample.XMLValidation

  • START APPLICATION TRACE ***

xxx implementierende Klasse Parserscom.sap.engine.lib.jaxp.SAXParserFactoryImpl

erstelltes Dokument aus in EDIFACTINTERCHANGE

Beginn Parsenjava.io.ByteArrayInputStream@1aa342a3

SAXException when parsing Generic Exception:

com.sap.engine.lib.xml.util.NestedException -> com.sap.engine.lib.xml.parser.ParserException -> java.io.IOException: Parsing an empty source. Root element expected!

  • END APPLICATION TRACE ***

Java mapping xmlDataExchangeSAPSample/XMLValidation completed. (execute() of xmlDataExchangeSAPSample.XMLValidation

Ausführung war erfolgreich.

10:18:14 Testende

the the Document ist generated :

"...erstelltes Dokument aus in EDIFACTINTERCHANGE.."

but the parser find an empty source.

do you have an idea what could be happening here?

Kind regards