One Star

org.xml.sax.SAXParseException; Content is not allowed in prolog.

am doing bulk load scenario given in TOS_Component_RG_50b_EN.pdf (page-1608),my job is completed perfectly.It is not showing any error on component side or subjob side.But in Execution console its throwing error:
Note: I am using an extra tLog component to check data in between components
=======================================(Error)===================================================
Starting job MDMBulkLoad at 13:51 24/02/2012.
connecting to socket on port 4042
connected
6|India|1
6|India|1
7|Malaysia|1
7|Malaysia|1
8|Austria|1
8|Austria|1
Exception in thread "Thread-10" org.talend.mdm.bulkload.client.BulkloadException: An exception happened during bulk load on MDM server.
at org.talend.mdm.bulkload.client.BulkloadClientUtil.bulkload(BulkloadClientUtil.java:64)
at org.talend.mdm.bulkload.client.BulkloadClientUtil$AsyncLoadRunnable.run(BulkloadClientUtil.java:131)
at java.lang.Thread.run(Thread.java:722)
== SERVER EXCEPTION ==
javax.servlet.ServletException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
at com.amalto.core.servlet.LoadServlet.doPut(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.amalto.core.servlet.ErrorFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.amalto.core.util.Util.parse(Unknown Source)
at com.amalto.core.util.Util.parse(Unknown Source)
at com.amalto.core.load.action.DefaultLoadAction.load(Unknown Source)
... 26 more
disconnected
Job MDMBulkLoad ended at 13:51 24/02/2012.
==============================================================================================
I search for "Content is not allowed in prolog." Error on net ,and got that there might be some XML encoding type issue or before the encoding tag there might be some unusual character .I checked all xml i am using in this job.Every thing is correct.I don't know know why this issue is coming....
Also i am getting one error in Error log view:
-------
----------
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NumberFormatException: For input string: ".0")
-------
----------
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NumberFormatException: For input string: ".1")
-------
----------
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NumberFormatException: For input string: ".2")
-------
----------
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NumberFormatException: For input string: ".3")
-------
----------
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NumberFormatException: For input string: ".4")
-------
----------
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NumberFormatException: For input string: ".5")
-------
----------
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NumberFormatException: For input string: ".6")
-------
----------

  • MDM
2 REPLIES
One Star

Re: org.xml.sax.SAXParseException; Content is not allowed in prolog.

does MDM follows any particular XML format????? i am using normal XML with encoding="UTF-8"....
Employee

Re: org.xml.sax.SAXParseException; Content is not allowed in prolog.

Omit or strip off the processing instruction in the component upstream that creates the XML string. The MDM server is supposed to do that anyway; which version do you use?