Initializing model classes during startup [message #161550] |
Wed, 15 December 2004 05:07  |
Eclipse User |
|
|
|
Originally posted by: ranjit.notMyId.com
Hi,
I wanted to know how do I construct back the GEF model that I have
serialzed to an XML. I looked at the Flow example and noticed that for
creating a new model I just need to create and initialize the model
classes and then (I think) GEF takes care of the corresponding parts
creating and displaying the model on the Editor window.
On similar lines, in the setInput method of the plugin class I read my
XML and initialize the in memory model. However I get a
StackOverflowError exception when I do that. Can someone tell me what
may be going wrong.
If I comment out the model Initialization then the GEF editor comes up
with a new model without any errors.
Here is the log file after the crash
!SESSION Dec 15, 2004 05:01:32.15
----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -application org.eclipse.ui.ide.workbench -pdelaunch
!ENTRY org.eclipse.osgi Dec 15, 2004 05:01:32.15
!MESSAGE Application error
!STACK 1
java.lang.StackOverflowError
|
|
|
|
Re: Initializing model classes during startup [message #161611 is a reply to message #161604] |
Wed, 15 December 2004 13:35  |
Eclipse User |
|
|
|
Originally posted by: ranjit.notMyId.com
Hi Randy,
I did step through the code and it returns from the model initialization
part without any problem. Since then the GEF classes take over I just
tried to continue and then got the same error of stack overflow.
Thanks.
Randy Hudson wrote:
> You might have an infinite loop in your code which saturates your model.
>
> "Ranjit" <ranjit@notMyId.com> wrote in message
> news:cpp2dn$gfa$1@www.eclipse.org...
>
>>Hi,
>>
>>I wanted to know how do I construct back the GEF model that I have
>>serialzed to an XML. I looked at the Flow example and noticed that for
>>creating a new model I just need to create and initialize the model
>>classes and then (I think) GEF takes care of the corresponding parts
>>creating and displaying the model on the Editor window.
>>
>>On similar lines, in the setInput method of the plugin class I read my
>>XML and initialize the in memory model. However I get a
>>StackOverflowError exception when I do that. Can someone tell me what
>>may be going wrong.
>>If I comment out the model Initialization then the GEF editor comes up
>>with a new model without any errors.
>>
>>Here is the log file after the crash
>>
>>!SESSION Dec 15, 2004 05:01:32.15
>>----------------------------------------------
>>eclipse.buildId=unknown
>>java.version=1.4.2_04
>>java.vendor=Sun Microsystems Inc.
>>BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
>>Command-line arguments: -application
>
> org.eclipse.ui.ide.workbench -pdelaunch
>
>>!ENTRY org.eclipse.osgi Dec 15, 2004 05:01:32.15
>>!MESSAGE Application error
>>!STACK 1
>>java.lang.StackOverflowError
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03554 seconds