Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Problem using generated dynamic instances
Problem using generated dynamic instances [message #426077] Mon, 15 December 2008 18:41 Go to next message
Simon Chen is currently offline Simon ChenFriend
Messages: 13
Registered: July 2009
Junior Member
Hi all,

I have built an ecore model (say class book) and generated genmodel file,
which automatically gives me a bunch of goodies, such as "book.editor".

I ran "book.editor" as an eclipse application and created a "Book Model"
instance, which is further saved as "new1.book".

The problem is, I can no longer open any of those instances that I
created. The error message is like, "Problems encountered in file
platform:/resource/test/new1.book", "IllegalValueException: Value 'e' is
not legal", "NullPointerException".

My new1.book is like:

<?xml version="1.0" encoding="UTF-8"?>
<book:Book xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:book="http://book.test.com" trigger="e">
<parameters name="P1"/>
<parameters name="P2"/>
</activedocument:JuniperActiveDocument>

Basically, "trigger" is defined as a string variable.

Any thoughts?
Thanks!

-Simon
Re: Problem using generated dynamic instances [message #426080 is a reply to message #426077] Mon, 15 December 2008 19:39 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Simon,

Comments below.

Simon Chen wrote:
> Hi all,
>
> I have built an ecore model (say class book) and generated genmodel
> file, which automatically gives me a bunch of goodies, such as
> "book.editor".
>
> I ran "book.editor" as an eclipse application and created a "Book
> Model" instance, which is further saved as "new1.book".
> The problem is, I can no longer open any of those instances that I
> created. The error message is like, "Problems encountered in file
> platform:/resource/test/new1.book", "IllegalValueException: Value 'e'
> is not legal", "NullPointerException".
>
> My new1.book is like:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <book:Book xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:book="http://book.test.com" trigger="e">
> <parameters name="P1"/>
> <parameters name="P2"/>
> </activedocument:JuniperActiveDocument>
>
> Basically, "trigger" is defined as a string variable.
What data type is the trigger attribute? If you track down the null
pointer exception, where is it happening?
> Any thoughts?
> Thanks!
>
> -Simon
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How to model undirected references?
Next Topic:[Basic EMF] Delete Command and references question
Goto Forum:
  


Current Time: Thu Mar 28 10:08:41 GMT 2024

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

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

Back to the top