Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Exception "Unresolved proxy ..." to subpackage in externel meta-model
Exception "Unresolved proxy ..." to subpackage in externel meta-model [message #47786] Thu, 04 June 2009 05:12 Go to next message
Eclipse UserFriend
Hi all,

I have the following setup:
- an external ecore meta-model as plug-in in my workspace
- develop a grammar for that meta-model with Xtext
- import all needed packages in my grammar file like: import
" platform:/resource/plugin.name/model/modelfile.ecore#//packa ge/subpackage "
as SubPackage
- registered the java package implementation in the .mwe file

grammar editing and running the workflow work fine. I can start a runtime
eclipse with my workspace plugins loaded. I can start the generated
editor. However, I get the following exception when I want to create a
model element with my generated editor:

org.eclipse.xtext.parser.ParseException: java.lang.IllegalStateException:
Unresolved proxy
http://my.project.org/192#/0/package/subpackage/ClassInSubPa ckage. Make
sure the EPackage has been registered.

The exception is thrown in the DefaultEcoreElementFactory of Xtext. For me
this look like a bug, because the package that Xtext is looking for cannot
be correct. The URI http://my.project.org/192 already points to the
correct registered package. Why is the additional subpackage-structure
added?

Thanks in advance for your help,
Oliver.
Re: Exception "Unresolved proxy ..." to subpackage in externel meta-model [message #47816 is a reply to message #47786] Thu, 04 June 2009 05:27 Go to previous messageGo to next message
Eclipse UserFriend
Hi Oliver,

this seems to be a bug. Please file a bugzilla (and ideally attach a
small sample to reproduce the problem ;-).

Regards,
Sebastian

Am 04.06.2009 11:12 Uhr, schrieb Oliver:
> Hi all,
>
> I have the following setup:
> - an external ecore meta-model as plug-in in my workspace
> - develop a grammar for that meta-model with Xtext
> - import all needed packages in my grammar file like: import
> " platform:/resource/plugin.name/model/modelfile.ecore#//packa ge/subpackage "
> as SubPackage
> - registered the java package implementation in the .mwe file
>
> grammar editing and running the workflow work fine. I can start a
> runtime eclipse with my workspace plugins loaded. I can start the
> generated editor. However, I get the following exception when I want to
> create a model element with my generated editor:
>
> org.eclipse.xtext.parser.ParseException:
> java.lang.IllegalStateException: Unresolved proxy
> http://my.project.org/192#/0/package/subpackage/ClassInSubPa ckage. Make
> sure the EPackage has been registered.
>
> The exception is thrown in the DefaultEcoreElementFactory of Xtext. For
> me this look like a bug, because the package that Xtext is looking for
> cannot be correct. The URI http://my.project.org/192 already points to
> the correct registered package. Why is the additional
> subpackage-structure added?
>
> Thanks in advance for your help,
> Oliver.
>
Re: Exception "Unresolved proxy ..." to subpackage in externel meta-model [message #48052 is a reply to message #47816] Thu, 04 June 2009 08:59 Go to previous message
Eclipse UserFriend
I created Bug 279093.

Unfortunatelly I cannot reproduce the bug with a small sample project that
I had set up as bug attachment. This is really weird. I tried to copy the
setup in a small new sample external model and a small new Xtext project.
I'll keep on trying to possibly feed you guys with more hints towards a
solution. Fact is, the package definitely is registered. The constructed
URI just is not correct.


Sebastian Zarnekow wrote:

> Hi Oliver,

> this seems to be a bug. Please file a bugzilla (and ideally attach a
> small sample to reproduce the problem ;-).

> Regards,
> Sebastian
Previous Topic:EBNF how to specify a list separated by commas
Next Topic:DSL AJAX
Goto Forum:
  


Current Time: Tue Jul 22 07:38:49 EDT 2025

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

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

Back to the top