Problem using generated dynamic instances [message #426077] |
Mon, 15 December 2008 18:41 |
Simon Chen 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 |
Ed Merks Messages: 33217 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02576 seconds