Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Andmore » org.xml.sax.SAXParseException: Content is not allowed in prolog(This error prevents me from deploying my code)
org.xml.sax.SAXParseException: Content is not allowed in prolog [message #1805182] Tue, 09 April 2019 12:50
Android Developer is currently offline Android DeveloperFriend
Messages: 8
Registered: February 2014
Junior Member
When I try to deploy my code I face the following error on my server:

Error creating renderer for application form resource:helpdesk.CustomerInfo
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Content is not allowed in prolog.
        at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:195) ~[org.eclipse.emf.ecore.xmi_2.9.1.v20130827-0309.jar:na]
        at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:253) ~[org.eclipse.emf.ecore.xmi_2.9.1.v20130827-0309.jar:na]
        at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1518) ~[org.eclipse.emf.ecore_2.9.1.v20130827-0309.jar:na]
        at com.myProject.helpdesk.forms.FormManager.loadObject(FormManager.java:232) ~[com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.forms.FormManager.loadForm(FormManager.java:243) ~[com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.forms.FormManager.compileForm(FormManager.java:172) ~[com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.forms.FormManager.createFormRenderer(FormManager.java:152) ~[com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.forms.FormManager.createFormRenderer(FormManager.java:143) ~[com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.presenter.impl.AppFormPresenterImpl.init(AppFormPresenterImpl.java:196) ~[com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.core.app.AbstractHelpDeskApplication$PresenterLifecycleListner.contextInitialized(AbstractHelpDeskApplication.java:122) [com.myProject.helpdesk.core_9.7.0.201507311211.jar:na]
        at com.myProject.helpdesk.context.DefaultContext.fireContextInitialized(DefaultContext.java:45) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.context.DefaultContext.init(DefaultContext.java:29) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.core.app.AbstractHelpDeskApplication.initDiagnosticSessionContext(AbstractHelpDeskApplication.java:1086) [com.myProject.helpdesk.core_9.7.0.201507311211.jar:na]
        at com.myProject.helpdesk.core.app.AbstractHelpDeskApplication$2.sessionStarted(AbstractHelpDeskApplication.java:878) [com.myProject.helpdesk.core_9.7.0.201507311211.jar:na]
        at com.myProject.helpdesk.presenter.AbstractApplicationPresenter.fireSessionStarted(AbstractApplicationPresenter.java:178) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.presenter.AbstractApplicationPresenter.onSessionStarted(AbstractApplicationPresenter.java:160) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.presenter.AbstractApplicationPresenter$ProxyListener.sessionStarted(AbstractApplicationPresenter.java:83) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.presenter.DiagnosticSessionProxy.fireSessionStarted(DiagnosticSessionProxy.java:273) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.presenter.DiagnosticSessionProxy.fireEvents(DiagnosticSessionProxy.java:216) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.presenter.DiagnosticSessionProxy.access$3(DiagnosticSessionProxy.java:199) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.presenter.DiagnosticSessionProxy$ProxySessionListener.updateEnded(DiagnosticSessionProxy.java:129) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.core.runtime.impl.DiagnosticSessionImpl.fireUpdateEnded(DiagnosticSessionImpl.java:119) [com.myProject.runtime.impl_1.1.0.201507311211.jar:na]
        at com.myProject.core.runtime.impl.DiagnosticSessionImpl.endUpdate(DiagnosticSessionImpl.java:181) [com.myProject.runtime.impl_1.1.0.201507311211.jar:na]
        at com.myProject.core.runtime.impl.RuntimeCase.doUnlock(RuntimeCase.java:521) [com.myProject.runtime.impl_1.1.0.201507311211.jar:na]
        at com.myProject.core.runtime.impl.RuntimeCase.unlockSession(RuntimeCase.java:436) [com.myProject.runtime.impl_1.1.0.201507311211.jar:na]
        at com.myProject.core.runtime.impl.DiagnosticSessionImpl.unlock(DiagnosticSessionImpl.java:160) [com.myProject.runtime.impl_1.1.0.201507311211.jar:na]
        at com.myProject.helpdesk.presenter.DiagnosticSessionProxy.start(DiagnosticSessionProxy.java:341) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.presenter.AbstractApplicationPresenter.startCase(AbstractApplicationPresenter.java:394) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.presenter.AbstractApplicationPresenter.startCase(AbstractApplicationPresenter.java:380) [com.myProject.helpdesk.core.presenter_1.0.0.201507311211.jar:na]
        at com.myProject.helpdesk.core.app.AbstractHelpDeskApplication.startCaseAction(AbstractHelpDeskApplication.java:588) [com.myProject.helpdesk.core_9.7.0.201507311211.jar:na]
        at com.myProject.helpdesk.core.app.AbstractHelpDeskApplication.defaultStartAction(AbstractHelpDeskApplication.java:555) [com.myProject.helpdesk.core_9.7.0.201507311211.jar:na]
        at com.myProject.helpdesk.core.app.AbstractHelpDeskApplication.startApplication(AbstractHelpDeskApplication.java:528) [com.myProject.helpdesk.core_9.7.0.201507311211.jar:na]
        at com.myProject.helpdesk.core.app.AbstractHelpDeskApplication.init(AbstractHelpDeskApplication.java:441) [com.myProject.helpdesk.core_9.7.0.201507311211.jar:na]
        at com.vaadin.ui.UI.doInit(UI.java:625) [com.vaadin.server_7.1.15.jar:7.1.15]
        at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:223) [com.vaadin.server_7.1.15.jar:7.1.15]
        at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:73) [com.vaadin.server_7.1.15.jar:7.1.15]
        at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:37) [com.vaadin.server_7.1.15.jar:7.1.15]
        at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1390) [com.vaadin.server_7.1.15.jar:7.1.15]
        at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:238) [com.vaadin.server_7.1.15.jar:7.1.15]
        at com.web.core.internal.servlet.WebApplicationServlet.service(WebApplicationServlet.java:111) [com.web.core_1.1.0.201507311211.jar:na]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) [servlet-api.jar:na]
        at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) [org.eclipse.equinox.http.servlet_1.1.400.v20130418-1354.jar:na]
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) [org.eclipse.equinox.http.servlet_1.1.400.v20130418-1354.jar:na]
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60) [org.eclipse.equinox.http.servlet_1.1.400.v20130418-1354.jar:na]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) [servlet-api.jar:na]
        at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:137) [BridgeServlet.class:na]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) [servlet-api.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) [catalina.jar:7.0.62]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.62]
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat7-websocket.jar:7.0.62]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.62]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.62]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [catalina.jar:7.0.62]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [catalina.jar:7.0.62]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) [catalina.jar:7.0.62]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) [catalina.jar:7.0.62]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [catalina.jar:7.0.62]
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957) [catalina.jar:7.0.62]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [catalina.jar:7.0.62]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) [catalina.jar:7.0.62]
        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190) [tomcat-coyote.jar:7.0.62]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620) [tomcat-coyote.jar:7.0.62]
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) [tomcat-coyote.jar:7.0.62]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_80]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_80]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-coyote.jar:7.0.62]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1436) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:999) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648) ~[na:1.7.0_80]
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:332) ~[na:1.7.0_80]
        at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175) ~[org.eclipse.emf.ecore.xmi_2.9.1.v20130827-0309.jar:na]
        ... 66 common frames omitted


I checked through the internet for similar problems and it seems that there is a problem in some XML file encoding(which might be created during deployment)

All my configuration file encodings are UTF-8.

It is possible a non UTF-8 character might create the problem in this XML but I cannot debug which XML file might it be.

I use jdk1.7.0_80 in my Eclipse Helios

[Updated on: Mon, 15 April 2019 09:33]

Report message to a moderator

Previous Topic:Can't install Eclipse
Next Topic:Windows Server 2019
Goto Forum:
  


Current Time: Fri Feb 28 06:46:33 GMT 2020

Powered by FUDForum. Page generated in 0.03227 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top