One Star

[resolved] Problem with MDM Receive

Hello
I have a problem with my MDM Receive.
In the first and second image, this is a part of my job.
I have created a Trigger like in the third image
Now, this is my error that i don't understand :
Démarrage du job premierJob a 11:28 03/02/2014.
connecting to socket on port 3486
connected
Exception in component tMDMReceive_1_Out
org.dom4j.DocumentException: Error on line 1 of document : Contenu non autorisé dans le prologue. Nested exception: Contenu non autorisé dans le prologue.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at leprojetm2.premierjob_0_1.premierJob.tMDMReceive_1_InProcess(premierJob.java:1190)
at leprojetm2.premierjob_0_1.premierJob.tJava_2Process(premierJob.java:402)
at leprojetm2.premierjob_0_1.premierJob.runJobInTOS(premierJob.java:1715)
at leprojetm2.premierjob_0_1.premierJob.main(premierJob.java:1576)
Nested exception:
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Contenu non autorisé dans le prologue.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at leprojetm2.premierjob_0_1.premierJob.tMDMReceive_1_InProcess(premierJob.java:1190)
at leprojetm2.premierjob_0_1.premierJob.tJava_2Process(premierJob.java:402)
at leprojetm2.premierjob_0_1.premierJob.runJobInTOS(premierJob.java:1715)
at leprojetm2.premierjob_0_1.premierJob.main(premierJob.java:1576)
Nested exception: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Contenu non autorisé dans le prologue.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at leprojetm2.premierjob_0_1.premierJob.tMDMReceive_1_InProcess(premierJob.java:1190)
at leprojetm2.premierjob_0_1.premierJob.tJava_2Process(premierJob.java:402)
at leprojetm2.premierjob_0_1.premierJob.runJobInTOS(premierJob.java:1715)
at leprojetm2.premierjob_0_1.premierJob.main(premierJob.java:1576)
disconnected
Job premierJob terminé à 11:28 03/02/2014.


thank you for your help Smiley Happy
1 ACCEPTED SOLUTION

Accepted Solutions
Employee

Re: [resolved] Problem with MDM Receive

Hi lodizzz,
Try to dump your context.xmlInput variable in the tJava, to see what happens (System.out.println()).
The error is due to a parsing issue with the tMDMReceive, which is unable to apply the XPath expressions against your xmlInput.
Regards,
Cyril.
Note : By the way, tMDMReceive is rather deprecated, you should use tMDMTriggerInput + tXMLMap instead.
2 REPLIES
Employee

Re: [resolved] Problem with MDM Receive

Hi lodizzz,
Try to dump your context.xmlInput variable in the tJava, to see what happens (System.out.println()).
The error is due to a parsing issue with the tMDMReceive, which is unable to apply the XPath expressions against your xmlInput.
Regards,
Cyril.
Note : By the way, tMDMReceive is rather deprecated, you should use tMDMTriggerInput + tXMLMap instead.
One Star

Re: [resolved] Problem with MDM Receive

Thank for your response,
I change for a tMDMTriggerInput + tXMLMap and it works Smiley Happy
thank