Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [ECP] Difficulties with using an XCore model
[ECP] Difficulties with using an XCore model [message #1486960] Tue, 25 November 2014 12:39 Go to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Hello

I am trying to setup an ECP client following the "Getting Started with your Custom Model" tutorial. The base for this is a small XCore model for which a *.model and a *.model.edit are created.

On startup, I get the following exception:

org.eclipse.e4.core.di.InjectionException: org.eclipse.emf.common.util.WrappedException: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.xml.sax.SAXParseExceptionpublicId: platform:/plugin/org.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 ist nicht zulässig in Prolog.
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:62)
	...
Caused by: org.eclipse.emf.common.util.WrappedException: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.xml.sax.SAXParseExceptionpublicId: platform:/plugin/org.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 ist nicht zulässig in Prolog.
	at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor$Dynamic.getEPackage(RegistryReader.java:257)
	...
Caused by: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.xml.sax.SAXParseExceptionpublicId: platform:/plugin/org.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 ist nicht zulässig in Prolog.
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
	...
Caused by: org.xml.sax.SAXParseExceptionpublicId: platform:/plugin/org.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 ist nicht zulässig in Prolog.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
	...

Looks like ECP/Ecore are having problems loading an xcore model in org.eclipse.emf.ecore.xcore.lib. I can't remove org.eclipse.emf.ecore.xcore.lib from the product configuration because my model bundle depends on it (XCore default). Which, in itself is not the real problem, but I don't see my model in the "Create new Project Wizard" (using local EMFStore).

I don't even know if this error is connected to the fakt, that I can't see my model.

I've checked these sources of error:

1) The bundles are in the product configuration (verified by osgi shell)
6	ACTIVE      de.dopchoice.webcat.model_0.1.0.qualifier
7	ACTIVE      de.dopchoice.webcat.model.edit_1.0.0.qualifier

2) The model is registered by the extension point
<extension point="org.eclipse.emf.ecore.generated_package">
      <!-- @generated webcat -->
      <package
            uri="de.dopchoice.webcat.model"
            class="de.dopchoice.webcat.model.WebCatPackage"
            genModel="model/webcat.xcore"/>
   </extension>
and *.model.edit registeres an ItemProviderAdapterFactory through "org.eclipse.emf.edit.itemProviderAdapterFactories".

Does anyone have experiences with using ECP + XCore?
Anything special to consider?

Thanks!
Christoph
Re: [ECP] Difficulties with using an XCore model [message #1488128 is a reply to message #1486960] Wed, 26 November 2014 10:39 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi Christoph,

can you share your model or even better a small example to be able to
reproduce this error? If so, please open a BR.

Best regards

Jonas

Am 25.11.2014 13:39, schrieb Christoph Keimel:
> Hello
>
> I am trying to setup an ECP client following the "Getting Started with
> your Custom Model" tutorial. The base for this is a small XCore model
> for which a *.model and a *.model.edit are created.
>
> On startup, I get the following exception:
>
> org.eclipse.e4.core.di.InjectionException:
> org.eclipse.emf.common.util.WrappedException:
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
> org.xml.sax.SAXParseExceptionpublicId:
> platform:/plugin/org.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 ist nicht zulässig in Prolog.
> at
> org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:62)
>
> ...
> Caused by: org.eclipse.emf.common.util.WrappedException:
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
> org.xml.sax.SAXParseExceptionpublicId:
> platform:/plugin/org.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 ist nicht zulässig in Prolog.
> at
> org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor$Dynamic.getEPackage(RegistryReader.java:257)
>
> ...
> Caused by:
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
> org.xml.sax.SAXParseExceptionpublicId:
> platform:/plugin/org.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 ist nicht zulässig in Prolog.
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
>
> ...
> Caused by: org.xml.sax.SAXParseExceptionpublicId:
> platform:/plugin/org.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 ist nicht zulässig in Prolog.
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
>
> ...
> Looks like ECP/Ecore are having problems loading an xcore model in
> org.eclipse.emf.ecore.xcore.lib. I can't remove
> org.eclipse.emf.ecore.xcore.lib from the product configuration because
> my model bundle depends on it (XCore default). Which, in itself is not
> the real problem, but I don't see my model in the "Create new Project
> Wizard" (using local EMFStore).
>
> I don't even know if this error is connected to the fakt, that I can't
> see my model.
>
> I've checked these sources of error:
>
> 1) The bundles are in the product configuration (verified by osgi shell)
> 6 ACTIVE de.dopchoice.webcat.model_0.1.0.qualifier
> 7 ACTIVE de.dopchoice.webcat.model.edit_1.0.0.qualifier
> 2) The model is registered by the extension point <extension
> point="org.eclipse.emf.ecore.generated_package">
> <!-- @generated webcat -->
> <package
> uri="de.dopchoice.webcat.model"
> class="de.dopchoice.webcat.model.WebCatPackage"
> genModel="model/webcat.xcore"/>
> </extension>and *.model.edit registeres an ItemProviderAdapterFactory
> through "org.eclipse.emf.edit.itemProviderAdapterFactories".
>
> Does anyone have experiences with using ECP + XCore? Anything special
> to consider?
>
> Thanks!
> Christoph


--
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [ECP] Difficulties with using an XCore model [message #1488462 is a reply to message #1488128] Wed, 26 November 2014 16:26 Go to previous message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
My test model is pretty small, so it should work well as an example.
Bug 453329
Previous Topic:[Edapt] install on Kepler
Next Topic:[EMF Forms]Reference feature is not supported when using Dynamic EMF
Goto Forum:
  


Current Time: Tue Mar 31 11:30:10 GMT 2020

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

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

Back to the top