Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Content is not allowed in Prolog: is a bug?
Content is not allowed in Prolog: is a bug? [message #510768] Thu, 28 January 2010 15:14 Go to next message
Federico Tomassetti is currently offline Federico TomassettiFriend
Messages: 190
Registered: July 2009
Location: Dublin
Senior Member

setting property modelFile to " file://D:\trim\runtime-EclipseApplication\Examples\src\a.fvc s"

and executing this piece of a MWE script:

<component class="org.eclipse.xtext.MweReader" uri="${modelFile}" >
<skipOnErrors value="true" />
<register class="it.tomassetti.fvcgen.FvcStackSimplDslStandaloneSetup "/>
<outputSlot value="fvcsModel" />
</component>

I get this error:

[ERROR] WorkflowRunner - org.xml.sax.SAXParseException: Content is not allowed in prolog. < org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException: org.xml.sax.SAXParseException: Content is not allowed in prolog.> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)

correting the name to " file://D:/trim/runtime-EclipseApplication/Examples/src/a.fvc s"

the error disappears...

Is a bug in your opinion? Should a file a bug entry?

Federico


Re: Content is not allowed in Prolog: is a bug? [message #510773 is a reply to message #510768] Thu, 28 January 2010 15:20 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Yes, looks like a bug.
Please file it against EMFT/MWE.

Thanks,
Sven

Federico Tomassetti schrieb:
> setting property modelFile to
> " file://D:\trim\runtime-EclipseApplication\Examples\src\a.fvc s"
>
> and executing this piece of a MWE script:
>
> <component class="org.eclipse.xtext.MweReader" uri="${modelFile}" >
> <skipOnErrors value="true" />
> <register
> class="it.tomassetti.fvcgen.FvcStackSimplDslStandaloneSetup "/>
> <outputSlot value="fvcsModel" />
> </component>
>
> I get this error:
>
> [ERROR] WorkflowRunner - org.xml.sax.SAXParseException: Content is not
> allowed in prolog. <
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos
> ticWrappedException: org.xml.sax.SAXParseException: Content is not
> allowed in prolog.>
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos
> ticWrappedException: org.xml.sax.SAXParseException: Content is not
> allowed in prolog.
> at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe
> mandLoadException(ResourceSetImpl.java:315)
> at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo
> adHelper(ResourceSetImpl.java:274)
> at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou
> rce(ResourceSetImpl.java:397)
>
> correting the name to
> " file://D:/trim/runtime-EclipseApplication/Examples/src/a.fvc s"
>
> the error disappears...
>
> Is a bug in your opinion? Should a file a bug entry?
>
> Federico


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Re: Content is not allowed in Prolog: is a bug? [message #510825 is a reply to message #510773] Thu, 28 January 2010 18:26 Go to previous messageGo to next message
Federico Tomassetti is currently offline Federico TomassettiFriend
Messages: 190
Registered: July 2009
Location: Dublin
Senior Member

Bug 301171 submitted,

thank you for your work, at the moment I am working full time using XText and I really appreciate this tools and the ones related (Mwe & Xpand)

Federico


Re: Content is not allowed in Prolog: is a bug? [message #510849 is a reply to message #510825] Thu, 28 January 2010 19:53 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Thanks for the bug and the kind words :-)

Federico Tomassetti schrieb:
> Bug 301171 submitted,
>
> thank you for your work, at the moment I am working full time using
> XText and I really appreciate this tools and the ones related (Mwe & Xpand)
>
> Federico
>


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Previous Topic:generate myDSL "URL" handler in Xtext editor
Next Topic:Where is ProjectIncludingResourceLoader
Goto Forum:
  


Current Time: Sat Apr 20 03:06:18 GMT 2024

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

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

Back to the top