Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [XPAND] Reader does not find UML Profile Package
[XPAND] Reader does not find UML Profile Package [message #500071] Tue, 24 November 2009 20:31 Go to next message
Andre Albert is currently offline Andre Albert
Messages: 25
Registered: July 2009
Junior Member
Hello,

lately i upgraded from oaw4.2 to eclipse.xpand

Previously i used XMIReader to read in my model. Doing so, referenced profiles could be found.

Due to that XmiReader becomes deprecated, i updated to org.eclipse.emf.mwe.utils.Reader

Unfortunately, the workflow Reader now throws:

3439 ERROR WorkflowRunner - org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0' not found. (file:../ground-core-model/Models/GenModel.uml, 138, 102)
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0' not found. (file:../ground-core-model/Models/GenModel.uml, 138, 102)
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)
at org.eclipse.emf.mwe.utils.Reader.load(Reader.java:54)
at org.eclipse.emf.mwe.utils.Reader.invokeInternal(Reader.java: 37)
[...]

while reading in the uml2 3.0.0 model

the model looks like:

<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ProjectProfile="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML" xsi:schemaLocation="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0 ../Profiles/project.profile.uml#_vRv0UthREd6yfIJDveo6Kw">
<uml:Model xmi:id="idModel" name="GenModelModel">
[...]
</uml:Model>
</xmi:XMI>


With my old version, this snippet runs. How can i configure the workflow (or the Reader) so that it will find my profile with its stereotypes

Greetings
Andre
Re: [XPAND] Reader does not find UML Profile Package [message #500074 is a reply to message #500071] Tue, 24 November 2009 20:49 Go to previous messageGo to next message
ekkehard gentz is currently offline ekkehard gentz
Messages: 118
Registered: July 2009
Location: rosenheim, Germany, bavar...
Senior Member

This is a multi-part message in MIME format.
--------------080904050705090309070702
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Andre Albert schrieb:
> Hello,
>
> lately i upgraded from oaw4.2 to eclipse.xpand
>
> Previously i used XMIReader to read in my model. Doing so, referenced
> profiles could be found.
>
> Due to that XmiReader becomes deprecated, i updated to
> org.eclipse.emf.mwe.utils.Reader
>
> Unfortunately, the workflow Reader now throws:
>
> 3439 ERROR WorkflowRunner -
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0' not found.
> (file:../ground-core-model/Models/GenModel.uml, 138, 102)
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos
> ticWrappedException:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0' not found.
> (file:../ground-core-model/Models/GenModel.uml, 138, 102)
> 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)
> at org.eclipse.emf.mwe.utils.Reader.load(Reader.java:54)
> at org.eclipse.emf.mwe.utils.Reader.invokeInternal(Reader.java: 37)
> [...]
>
> while reading in the uml2 3.0.0 model
>
> the model looks like:
>
> <xmi:XMI xmi:version="2.1"
> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ProjectProfile="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML"
> xsi:schemaLocation="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0
> ../Profiles/project.profile.uml#_vRv0UthREd6yfIJDveo6Kw">
> <uml:Model xmi:id="idModel" name="GenModelModel">
> [...]
> </uml:Model>
> </xmi:XMI>
>
>
> With my old version, this snippet runs. How can i configure the
> workflow (or the Reader) so that it will find my profile with its
> stereotypes
>
> Greetings
> Andre
Andre,

does it run with the (deprecated) XMI Reader under eclipse.xpand ?

ekke

--

ekke (ekkehard gentz)
independent software-architect
senior erp-consultant
eclipse | osgi | equinox | mdsd | oaw | emf | uml
max-josefs-platz 30, D-83022 rosenheim, germany
mailto:ekke@ekkes-corner.org
homepage (de): http://gentz-software.de
blog (en): http://ekkes-corner.org
twitter: @ekkescorner
skype: ekkes-corner
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490


--------------080904050705090309070702
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andre Albert schrieb:
<blockquote cite="mid:hehfri$7di$1@build.eclipse.org" type="cite">Hello,
<br>
<br>
lately i upgraded from oaw4.2 to eclipse.xpand
<br>
<br>
Previously i used XMIReader to read in my model. Doing so, referenced
profiles could be found.
<br>
<br>
Due to that XmiReader becomes deprecated, i updated to
org.eclipse.emf.mwe.utils.Reader
<br>
<br>
Unfortunately, the workflow Reader now throws:
<br>
<br>
3439 ERROR WorkflowRunner     -
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'<a class="moz-txt-link-freetext" href="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0">http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0</a>' not found.
(<a class="moz-txt-link-freetext" href="file:../ground-core-model/Models/GenModel.uml">file:../ground-core-model/Models/GenModel.uml </a>, 138, 102)
<br>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos
ticWrappedException:
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'<a class="moz-txt-link-freetext" href="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0">http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0</a>' not found.
(<a class="moz-txt-link-freetext" href="file:../ground-core-model/Models/GenModel.uml">file:../ground-core-model/Models/GenModel.uml </a>, 138, 102)
<br>
    at  org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe
mandLoadException(ResourceSetImpl.java:315)
<br>
    at  org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo
adHelper(ResourceSetImpl.java:274)
<br>
    at  org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou
rce(ResourceSetImpl.java:397)
<br>
    at org.eclipse.emf.mwe.utils.Reader.load(Reader.java:54)
<br>
    at  org.eclipse.emf.mwe.utils.Reader.invokeInternal(Reader.java:
37)
<br>
[...]
<br>
<br>
while reading in the uml2 3.0.0 model
<br>
<br>
the model looks like:
<br>
<br>
&lt;xmi:XMI xmi:version="2.1"
xmlns:xmi=<a class="moz-txt-link-rfc2396E" href="http://schema.omg.org/spec/XMI/2.1">"http://schema.omg.org/spec/XMI/2.1"</a>
xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
xmlns:ProjectProfile=<a class="moz-txt-link-rfc2396E" href="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0">"http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0"</a>
xmlns:ecore=<a class="moz-txt-link-rfc2396E" href="http://www.eclipse.org/emf/2002/Ecore">"http://www.eclipse.org/emf/2002/Ecore"</a>
xmlns:uml=<a class="moz-txt-link-rfc2396E" href="http://www.eclipse.org/uml2/3.0.0/UML">"http://www.eclipse.org/uml2/3.0.0/UML"</a>
xsi:schemaLocation=<a class="moz-txt-link-rfc2396E" href=" http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0../P rofiles/project.profile.uml#_vRv0UthREd6yfIJDveo6Kw">"http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0
.../Profiles/project.profile.uml#_vRv0UthREd6yfIJDveo6Kw"</a >&gt;
<br>
 &lt;uml:Model xmi:id="idModel" name="GenModelModel"&gt;
<br>
[...]
<br>
 &lt;/uml:Model&gt;
<br>
&lt;/xmi:XMI&gt;
<br>
<br>
<br>
With my old version, this snippet runs. How can i configure the
workflow (or the Reader) so that it will find my profile with its
stereotypes
<br>
<br>
Greetings
<br>
Andre
<br>
</blockquote>
Andre,<br>
<br>
does it run with the (deprecated) XMI Reader under eclipse.xpand ?<br>
<br>
ekke<br>
<br>
<div class="moz-signature">-- <br>
<p style="margin-bottom: 0cm;"> <font ,="" color="#808080"
face="Verdana, sans-serif"> <font size="4">ekke (ekkehard gentz)<br>
</font> <font size="3"> independent software-architect<br>
senior erp-consultant<br>
</font> <font size="2">eclipse | osgi | equinox | mdsd | oaw | emf |
uml<br>
max-josefs-platz 30, D-83022 rosenheim, germany<br>
<a class="moz-txt-link-freetext" href="mailto:ekke@ekkes-corner.org">mailto:ekke@ekkes-corner.org</a><br>
homepage (de): <a class="moz-txt-link-freetext" href="http://gentz-software.de">http://gentz-software.de</a><br>
blog (en): <a class="moz-txt-link-freetext" href="http://ekkes-corner.org">http://ekkes-corner.org</a><br>
twitter: @ekkescorner<br>
skype: ekkes-corner<br>
</font> <font size="1"> Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID:
DE189929490<br>
</font> </font> </p>
</div>
</body>
</html>

--------------080904050705090309070702--


ekke
independent software architect

blog: http://ekkes-corner.org
twitter: @ekkescorner
Re: [XPAND] Reader does not find UML Profile Package [message #500086 is a reply to message #500071] Tue, 24 November 2009 21:38 Go to previous messageGo to next message
Andre Albert is currently offline Andre Albert
Messages: 25
Registered: July 2009
Junior Member
no not realy,

i had problems to read in uml primitive types such as String Integer Boolean
whose type class only consists of null value (except eStorage field which references pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String)

doing so, i get several NullPointerException when asking type.getName (and similar)

also at org.eclipse.xtend.typesystem.uml2.profile.StereotypeType.nor malizedName(StereotypeType.java:260) throws NPE while asking getName of the metaclass of this stereotype (which is a uml::Component)

using the new Reader solved these problems but does not find the profile packages

I also get these problems when simply using the Uml Tree Editor of eclipse
after define and apply a profile
Re: [XPAND] Reader does not find UML Profile Package [message #500153 is a reply to message #500071] Wed, 25 November 2009 08:38 Go to previous message
Andre Albert is currently offline Andre Albert
Messages: 25
Registered: July 2009
Junior Member
Ok sorry

afterwards i guess this was rather a stupid problem of my MWE workflow configuration.

The problem was solved setting a proper value for the platformUri attribute of the org.eclipse.emf.mwe.utils.StandaloneSetup

doing so, the reader was able to locate the profiles
Previous Topic:Editor gives problems, when using external metamodel, eventhough MM is registered.
Next Topic:[Acceleo] NullPointer while launching a transformation via API
Goto Forum:
  


Current Time: Mon Sep 22 02:27:52 GMT 2014

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

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