Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » strange problem with "unresolved references"
strange problem with "unresolved references" [message #101915] Wed, 07 February 2007 06:21 Go to next message
Eclipse UserFriend
Originally posted by: mail.volker-wegert.de

Hi all,

I'm not sure whether this is an EMF or a GMF problem, so I'll post to both
NGs. I can't really recall what caused the trouble, but when loading a file
into my GMF generated editor, I get tons of messages like

!ENTRY org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1 2007-02-07 11:09:04.989
!MESSAGE Unresolved reference 'DATE_ARRIVAL'. (platform:filename, 33, 189)

The reference in question always points from an element that is displayed in
the GMF editor to an element not part of the GMF models.

How can I find the source of this message? It doesn't seem to be related to
the UnresolvedReferenceException (tried to catch it with the debugger - no
luck). I haven't found the message text in the GMF components either...

Thanks
Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
* "Dream as if you'll live forever, live as if you'll die today." (James
* Dean)
*
Re: strange problem with "unresolved references" [message #101955 is a reply to message #101915] Wed, 07 February 2007 08:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Volker,

I think this is likely produced by
org.eclipse.emf.ecore.xmi.UnresolvedReferenceException and represents an
IDREF (a same document reference) to something that can't be resolved.


Volker Wegert wrote:
> Hi all,
>
> I'm not sure whether this is an EMF or a GMF problem, so I'll post to both
> NGs. I can't really recall what caused the trouble, but when loading a file
> into my GMF generated editor, I get tons of messages like
>
> !ENTRY org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1 2007-02-07 11:09:04.989
> !MESSAGE Unresolved reference 'DATE_ARRIVAL'. (platform:filename, 33, 189)
>
> The reference in question always points from an element that is displayed in
> the GMF editor to an element not part of the GMF models.
>
> How can I find the source of this message? It doesn't seem to be related to
> the UnresolvedReferenceException (tried to catch it with the debugger - no
> luck). I haven't found the message text in the GMF components either...
>
> Thanks
> Volker
>
>
Re: strange problem with "unresolved references" [message #101967 is a reply to message #101915] Wed, 07 February 2007 08:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mail.volker-wegert.de

Volker Wegert <mail@volker-wegert.de> writes:
> I'm not sure whether this is an EMF or a GMF problem, so I'll post to both
> NGs. I can't really recall what caused the trouble, but when loading a file
> into my GMF generated editor, I get tons of messages like
>
> !ENTRY org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1 2007-02-07 11:09:04.989
> !MESSAGE Unresolved reference 'DATE_ARRIVAL'. (platform:filename, 33, 189)
>
> The reference in question always points from an element that is displayed in
> the GMF editor to an element not part of the GMF models.
>
> How can I find the source of this message? It doesn't seem to be related to
> the UnresolvedReferenceException (tried to catch it with the debugger - no
> luck). I haven't found the message text in the GMF components either...

Okay, I'm getting closer - and though it appears to be a problem of GMF
origin, I suppose I need some EMF help here.

From what I can see, the GMFResource I need to get the GMF-based editor
working doesn't care about the IDs specified by the ecore model, but uses
strings like "_lQ0LurapEdu-JpXuZtvRxg". This is why
xmlResource.getEObject("DATE_ARRIVAL") fails, although the attribute
containing this value is marked as "iD".

Question: Is there any way (example, documentation, ...?) on how to create a
resource set (resource, editing domain, ??) that can be used for both EMF and
GMF operations?

Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
* "Drei Uhr morgens ist immer zu früh und immer zu spät für das, was du
* vorhast." (Jean-Paul Sartre)
*
Re: strange problem with "unresolved references" [message #101985 is a reply to message #101967] Wed, 07 February 2007 08:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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

Volker,

I'm not sure why this posting didn't show up in both newsgroups.

I think this is likely produced by
org.eclipse.emf.ecore.xmi.UnresolvedReferenceException and
represents an IDREF (a same document reference) to something that
can't be resolved.

Based on your latest comment I would ask if you are using the resource
implementation generated (if there is one) and registered for your
model? It sounds like you are using a resource that specifies to use
UUIDs and that isn't what you want. So using just a plain old
XMIResourceFactoryImpl is likely what you want...


Volker Wegert wrote:
> Volker Wegert <mail@volker-wegert.de> writes:
>
>> I'm not sure whether this is an EMF or a GMF problem, so I'll post to both
>> NGs. I can't really recall what caused the trouble, but when loading a file
>> into my GMF generated editor, I get tons of messages like
>>
>> !ENTRY org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1 2007-02-07 11:09:04.989
>> !MESSAGE Unresolved reference 'DATE_ARRIVAL'. (platform:filename, 33, 189)
>>
>> The reference in question always points from an element that is displayed in
>> the GMF editor to an element not part of the GMF models.
>>
>> How can I find the source of this message? It doesn't seem to be related to
>> the UnresolvedReferenceException (tried to catch it with the debugger - no
>> luck). I haven't found the message text in the GMF components either...
>>
>
> Okay, I'm getting closer - and though it appears to be a problem of GMF
> origin, I suppose I need some EMF help here.
>
> From what I can see, the GMFResource I need to get the GMF-based editor
> working doesn't care about the IDs specified by the ecore model, but uses
> strings like "_lQ0LurapEdu-JpXuZtvRxg". This is why
> xmlResource.getEObject("DATE_ARRIVAL") fails, although the attribute
> containing this value is marked as "iD".
>
> Question: Is there any way (example, documentation, ...?) on how to create a
> resource set (resource, editing domain, ??) that can be used for both EMF and
> GMF operations?
>
> Volker
>
>


--------------000309000904040006020004
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">
Volker,
<br>
<br>
I'm not sure why this posting didn't show up in both newsgroups. <br>
<blockquote> I think this is likely produced by
org.eclipse.emf.ecore.xmi.UnresolvedReferenceException and represents
an IDREF (a same document reference) to something that can't be
resolved.
<br>
</blockquote>
Based on your latest comment I would ask if you are using the resource
implementation generated (if there is one) and registered for your
model?  It sounds like you are using a resource that specifies to use
UUIDs and that isn't what you want.  So using just a plain old
XMIResourceFactoryImpl is likely what you want...<br>
<br>
<br>
Volker Wegert wrote:
<blockquote cite="mid87k5yujf4m.fsf@sinclair.home.volker-wegert.de"
type="cite">
<pre wrap="">Volker Wegert <a class="moz-txt-link-rfc2396E" href="mailto:mail@volker-wegert.de">&lt;mail@volker-wegert.de&gt;</a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">I'm not sure whether this is an EMF or a GMF problem, so I'll post to both
NGs. I can't really recall what caused the trouble, but when loading a file
into my GMF generated editor, I get tons of messages like

!ENTRY org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1 2007-02-07 11:09:04.989
!MESSAGE Unresolved reference 'DATE_ARRIVAL'. (platform:filename, 33, 189)

The reference in question always points from an element that is displayed in
the GMF editor to an element not part of the GMF models.

How can I find the source of this message? It doesn't seem to be related to
the UnresolvedReferenceException (tried to catch it with the debugger - no
luck). I haven't found the message text in the GMF components either...
</pre>
</blockquote>
<pre wrap=""><!---->
Okay, I'm getting closer - and though it appears to be a problem of GMF
origin, I suppose I need some EMF help here.

From what I can see, the GMFResource I need to get the GMF-based editor
working doesn't care about the IDs specified by the ecore model, but uses
strings like "_lQ0LurapEdu-JpXuZtvRxg". This is why
xmlResource.getEObject("DATE_ARRIVAL") fails, although the attribute
containing this value is marked as "iD".

Question: Is there any way (example, documentation, ...?) on how to create a
resource set (resource, editing domain, ??) that can be used for both EMF and
GMF operations?

Volker

</pre>
</blockquote>
<br>
</body>
</html>

--------------000309000904040006020004--
Re: strange problem with "unresolved references" [message #102031 is a reply to message #101985] Wed, 07 February 2007 08:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mail.volker-wegert.de

Ed Merks <merks@ca.ibm.com> writes:
> I'm not sure why this posting didn't show up in both newsgroups.

No problem, I'm reading both newsgroups.

> Based on your latest comment I would ask if you are using the resource
> implementation generated (if there is one) and registered for your
> model?

If the Eclipse type hierarchy isn't lying, there is no generated resource
implementation - should there be one?

> It sounds like you are using a resource that specifies to use
> UUIDs and that isn't what you want. So using just a plain old
> XMIResourceFactoryImpl is likely what you want...

I have to admit that I didn't really care about the resource implementation
until I ran into problems. The EMF editor (method createModel) retrieves a
resource from the editingDomain, and I didn't care what implementation was
behind it. However, for the GMF integration I need a
TransactionalEditingDomain that can be wrapped into a FileEditorInputProxy
object, and this EditingDomain provides a GMFResource. This resource
implementation in turn seems to use UUIDs as you mentioned.

BTW, if my descriptions sound like a blind man prodding and poking around,
that pretty much reflects what I'm doing here ;-)

Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
* "Vielleicht ist diese Welt die Hölle eines anderen Planeten." (Aldous
* Huxley)
*
Re: strange problem with "unresolved references" [message #102041 is a reply to message #102031] Wed, 07 February 2007 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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

Volker,

A resource implementation will be generated and registered only if the
generator knows that special options are needed. If there is no such
need, the default XMIResourceFactoryImpl would be used. I don't think
GMF requires you to use GMFResourceFactory so you should register
XMIResourceFactoryImpl to handle your file extension. This can be done
using the editing domain's resource set's resource factory registry.


Volker Wegert wrote:
> Ed Merks <merks@ca.ibm.com> writes:
>
>> I'm not sure why this posting didn't show up in both newsgroups.
>>
>
> No problem, I'm reading both newsgroups.
>
>
>> Based on your latest comment I would ask if you are using the resource
>> implementation generated (if there is one) and registered for your
>> model?
>>
>
> If the Eclipse type hierarchy isn't lying, there is no generated resource
> implementation - should there be one?
>
>
>> It sounds like you are using a resource that specifies to use
>> UUIDs and that isn't what you want. So using just a plain old
>> XMIResourceFactoryImpl is likely what you want...
>>
>
> I have to admit that I didn't really care about the resource implementation
> until I ran into problems. The EMF editor (method createModel) retrieves a
> resource from the editingDomain, and I didn't care what implementation was
> behind it. However, for the GMF integration I need a
> TransactionalEditingDomain that can be wrapped into a FileEditorInputProxy
> object, and this EditingDomain provides a GMFResource. This resource
> implementation in turn seems to use UUIDs as you mentioned.
>
> BTW, if my descriptions sound like a blind man prodding and poking around,
> that pretty much reflects what I'm doing here ;-)
>
> Volker
>
>


--------------090807060202050904020502
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">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Volker,<br>
<br>
A resource implementation will be generated and registered only if the
generator knows that special options are needed.   If there is no such
need, the default XMIResourceFactoryImpl would be used.  I don't think
GMF requires you to use GMFResourceFactory so you should register
XMIResourceFactoryImpl to handle your file extension.  This can be done
using the editing domain's resource set's resource factory registry.<br>
<br>
<br>
Volker Wegert wrote:
<blockquote cite="mid87fy9ijcse.fsf@sinclair.home.volker-wegert.de"
type="cite">
<pre wrap="">Ed Merks <a class="moz-txt-link-rfc2396E" href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</a> writes:
</pre>
<blockquote type="cite">
<pre wrap=""> I'm not sure why this posting didn't show up in both newsgroups.
</pre>
</blockquote>
<pre wrap=""><!---->
No problem, I'm reading both newsgroups.

</pre>
<blockquote type="cite">
<pre wrap=""> Based on your latest comment I would ask if you are using the resource
implementation generated (if there is one) and registered for your
model?
</pre>
</blockquote>
<pre wrap=""><!---->
If the Eclipse type hierarchy isn't lying, there is no generated resource
implementation - should there be one?

</pre>
<blockquote type="cite">
<pre wrap=""> It sounds like you are using a resource that specifies to use
UUIDs and that isn't what you want. So using just a plain old
XMIResourceFactoryImpl is likely what you want...
</pre>
</blockquote>
<pre wrap=""><!---->
I have to admit that I didn't really care about the resource implementation
until I ran into problems. The EMF editor (method createModel) retrieves a
resource from the editingDomain, and I didn't care what implementation was
behind it. However, for the GMF integration I need a
TransactionalEditingDomain that can be wrapped into a FileEditorInputProxy
object, and this EditingDomain provides a GMFResource. This resource
implementation in turn seems to use UUIDs as you mentioned.

BTW, if my descriptions sound like a blind man prodding and poking around,
that pretty much reflects what I'm doing here ;-)

Volker

</pre>
</blockquote>
<br>
</body>
</html>

--------------090807060202050904020502--
Re: strange problem with "unresolved references" [message #102050 is a reply to message #102041] Wed, 07 February 2007 09:29 Go to previous message
Eclipse UserFriend
Originally posted by: mail.volker-wegert.de

Ed Merks <merks@ca.ibm.com> writes:
> I don't think
> GMF requires you to use GMFResourceFactory so you should register
> XMIResourceFactoryImpl to handle your file extension. This can be done
> using the editing domain's resource set's resource factory registry.

That plus reading the TransactionalEditingDomain's header comment gave me tha
(okay, one of the) essential hints: I had to cleanup the GMF generated plugin
manifest because the registration performed there caused the GMFResource to be
pulled in. Thanks a lot! I'll try to find something to hit my head with, then
approach the next set of troubles...

Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
* "Meistens belehrt uns erst der Verlust über den Wert der Dinge."
* (Arthur Schopenhauer)
*
Previous Topic:[Announce] EclipseCon 2007 Registration
Next Topic:How to attach Label to the Connection?
Goto Forum:
  


Current Time: Tue May 20 18:18:08 EDT 2025

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

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

Back to the top