Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [XCore] XcoreLang.xcore content is not allowed in Prolog([XCore] XcoreLang.xcore content is not allowed in Prolog)
[XCore] XcoreLang.xcore content is not allowed in Prolog [message #1803637] Tue, 05 March 2019 17:15 Go to next message
Eclipse UserFriend
Hi,

I browsed the newsgroups and web to find hints about how to solve this issue. This happens when I create and execute a standalone RCP. I already got a similar problem long time ago but I do not remember how I solved it. I am pretty sure there are missing dependencies in the RCP product. Despite this exception, the system works as usual. If someone has an idea, it would be really appreciated.

Thanks

Here is the detail of the exception.

Caused by: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.xml.sax.SAXParseExceptionpublicId: platform:/plugin/or
g.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; systemId: platform:/plugin/org.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; lineNumber: 1; 
columnNumber: 1; Content is not allowed in prolog.
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
	at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor$Dynamic.getEPackage(RegistryReader.java:250)
	... 42 more
Caused by: org.xml.sax.SAXParseExceptionpublicId: platform:/plugin/org.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; systemId: platform:/plugin/o
rg.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1436)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:999)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333)
	at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175)
	at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:261)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1563)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1342)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
	... 44 more
Re: [XCore] XcoreLang.xcore content is not allowed in Prolog [message #1803638 is a reply to message #1803637] Tue, 05 March 2019 17:17 Go to previous messageGo to next message
Eclipse UserFriend
can you please explain what you are exactly doing in your rcp?
Re: [XCore] XcoreLang.xcore content is not allowed in Prolog [message #1803639 is a reply to message #1803638] Tue, 05 March 2019 17:18 Go to previous messageGo to next message
Eclipse UserFriend
besides that the emf forum is the place to be for xcore questions
Re: [XCore] XcoreLang.xcore content is not allowed in Prolog [message #1803644 is a reply to message #1803639] Tue, 05 March 2019 21:44 Go to previous messageGo to next message
Eclipse UserFriend
Normally a *.xcore resource should be loaded using an XcoreResource but that's created by the injector and is registered via the runtime module. I'm not sure your overall context where this happens. I've not seen this problem before. Something must be demand loading the registered package, but something that requires this should be loading using an Xtext resource set....
Re: [XCore] XcoreLang.xcore content is not allowed in Prolog [message #1803663 is a reply to message #1803639] Wed, 06 March 2019 07:44 Go to previous message
Eclipse UserFriend
Oupps. I made a mistake. I wrongly selected TMF. Sorry.

I moved it under EMF:
https://www.eclipse.org/forums/index.php?t=post&msg_id=1803664&

[Updated on: Wed, 06 March 2019 07:53] by Moderator

Previous Topic:XImportSection and global scoping
Next Topic:Xtext Error Recovery
Goto Forum:
  


Current Time: Wed Jun 18 02:51:22 EDT 2025

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

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

Back to the top