Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCore] XCoreGenModel Builder NullPointerException([XCore] XCoreGenModel Builder NullPointerException)
icon9.gif  [XCore] XCoreGenModel Builder NullPointerException [message #1017763] Tue, 12 March 2013 13:50 Go to next message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 94
Registered: May 2010
Member
Hi,

I have a xcore model that refers to a proprietary .ecore model installed via a local update site. I do not believe all the installed plugins containing .ecore models has the XText nature. When I edit the .xcore and I try to enter the EClass name, the popup menu is properly populated and I have access to the EClass contained in the installed .ecore. But once I click Enter to validate the choice, I get a dialog with Xtext validation and XTextReconciler Job error (NullPointerException). To recover I restart the Eclipse session, but I get "Failed to create the part's controls" exception. See in attachment the error_log for this particular exception. The error messages are not too clear. I use Eclipse 4.2.2 M20130204-1200 and XCore 1.0.2v20130212-0719. I have such undesirable behavior time to time. I cannot put my session because it is too big. If you think that I should create a sample to reproduce that behavior let me know.

Regent Wink
  • Attachment: error_log.txt
    (Size: 11.47KB, Downloaded 254 times)
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1017782 is a reply to message #1017763] Tue, 12 March 2013 14:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Régent,

There are a great many bug fixes in the 1.1 (EMF 2.9) stream, and this
one looks very familiar, so best you use the latest version. There will
be no further bug fixes in the maintenance stream anyway...


On 12/03/2013 2:50 PM, Régent L Archevêque wrote:
> Hi,
>
> I have a xcore model that refers to a proprietary .ecore model installed via a local update site. I do not believe all the installed plugins containing .ecore models has the XText nature. When I edit the .xcore and I try to enter the EClass name, the popup menu is properly populated and I have access to the EClass contained in the installed .ecore. But once I click Enter to validate the choice, I get a dialog with Xtext validation and XTextReconciler Job error (NullPointerException). To recover I restart the Eclipse session, but I get "Failed to create the part's controls" exception. See in attachment the error_log for this particular exception. The error messages are not too clear. I use Eclipse 4.2.2 M20130204-1200 and XCore 1.0.2v20130212-0719. I have such undesirable behavior time to time. I cannot put my session because it is too big. If you think that I should create a sample to reproduce that behavior let me know.
>
> Regent ;)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1018283 is a reply to message #1017782] Wed, 13 March 2013 15:00 Go to previous messageGo to next message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 94
Registered: May 2010
Member
Thanks Ed.

I tried 4.3M5 with the latest EMF and due to other Eclipse problems (not related to EMF) I was unable to fully appreciate the fixes in XCore but I noticed the fixes you mentioned. My Eclipse configuration was unstable. In a week M6 will be released but meanwhile we'll try 4.3Ma. Thanks for your feedback.

Is it possible to use EMF 2.9 in the context of Eclipse 4.2.2?
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1018286 is a reply to message #1017782] Wed, 13 March 2013 15:03 Go to previous messageGo to next message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 94
Registered: May 2010
Member
Thanks Ed for the feedback.

I tried 4.3M5 few weeks ago but Eclipse was a bit unstable. I noticed the XCore fixes though but I was unable to fully appreciate it due to other Eclipse instabilities. I presume all this will be address in M6. Meanwhile I'll try again with 4.3M5a.

Thanks Wink
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1018328 is a reply to message #1018286] Wed, 13 March 2013 16:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Régent,

I believe Xtext works with Eclipse 3.6 through 4.x and so does EMF so I
assume you could install those in an older version of Eclipse, e.g., 4.2.

On 13/03/2013 4:03 PM, Régent L Archevêque wrote:
> Thanks Ed for the feedback.
>
> I tried 4.3M5 few weeks ago but Eclipse was a bit unstable. I noticed
> the XCore fixes though but I was unable to fully appreciate it due to
> other Eclipse instabilities. I presume all this will be address in
> M6. Meanwhile I'll try again with 4.3M5a.
>
> Thanks ;)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1019396 is a reply to message #1018328] Fri, 15 March 2013 15:41 Go to previous messageGo to next message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 94
Registered: May 2010
Member
Hi Ed,

I managed to install it on 4.2.2. I removed XText and EMF Packages and re-install using Milestone update sites (for EMF and Xtext). It resolved a lot of issue but now Eclipse is really really slow. It is always Building workspace. I am curious, what is your configuration when you work with XCore?

Regent Wink
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1019422 is a reply to message #1019396] Fri, 15 March 2013 16:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Régent,

For my development environment I've been using a fairly recent Eclipse I
build (I20121214) and installed the EMF and Xtext that were available at
that time and then got EMF, XSD, and Xtext from git.


On 15/03/2013 4:41 PM, Régent L Archevêque wrote:
> Hi Ed,
> I managed to install it on 4.2.2. I removed XText and EMF Packages
> and re-install using Milestone update sites (for EMF and Xtext). It
> resolved a lot of issue but now Eclipse is really really slow. It is
> always Building workspace. I am curious, what is your configuration
> when you work with XCore?
> Regent ;)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1019429 is a reply to message #1019422] Fri, 15 March 2013 17:05 Go to previous messageGo to next message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 94
Registered: May 2010
Member
Hi Ed,

Sorry to bother you again. I am using Eclipse 4.2.2, EMF 2.9 and XCore 1.1.0. I have a lot of internal installed bundles. My workspace has ~50 bundles. When I start an Eclipse it really takes a while to boot up. When I modify an .xcore and save (autobuild is active), it takes a long time and the Progress View indicates Building workspace on all .xcore projects. Longer than it used to be and it is not really usable. Do you have some tips or guidelines. I don't know if it is normal. I re-install my Eclipse from scratch. I may try to profile Eclipse to see where is the issue. I don't what to do.

Regent Wink
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1019437 is a reply to message #1019429] Fri, 15 March 2013 17:28 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Something similar is rather normal, but I thought the multi-project
scenario was more complicted.

Are you using EGIT or Acceleo or QVTo?

Regards

Ed Willink


On 15/03/2013 17:05, Régent L Archevêque wrote:
> Hi Ed,
>
> Sorry to bother you again. I am using Eclipse 4.2.2, EMF 2.9 and
> XCore 1.1.0. I have a lot of internal installed bundles. My
> workspace has ~50 bundles. When I start an Eclipse it really takes a
> while to boot up. When I modify an .xcore and save (autobuild is
> active), it takes a long time and the Progress View indicates Building
> workspace on all .xcore projects. Longer than it used to be and it is
> not really usable. Do you have some tips or guidelines. I don't know
> if it is normal. I re-install my Eclipse from scratch. I may try to
> profile Eclipse to see where is the issue. I don't what to do.
>
> Regent ;)
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1019459 is a reply to message #1019429] Fri, 15 March 2013 18:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Régent,

I'm usually working with more than 250 open projects with auto build and
am not experiencing anything bothersome. I'd expect if you saved a
..xcore resource that the project it's in rebuilds (including
regenerating the model source from the .xcore) and that any projects
down stream from it would rebuild as well. I plan to do some
performance analysis with Xtext and Xcore in the coming weeks...


On 15/03/2013 6:05 PM, Régent L Archevêque wrote:
> Hi Ed,
>
> Sorry to bother you again. I am using Eclipse 4.2.2, EMF 2.9 and
> XCore 1.1.0. I have a lot of internal installed bundles. My
> workspace has ~50 bundles. When I start an Eclipse it really takes a
> while to boot up. When I modify an .xcore and save (autobuild is
> active), it takes a long time and the Progress View indicates Building
> workspace on all .xcore projects. Longer than it used to be and it is
> not really usable. Do you have some tips or guidelines. I don't know
> if it is normal. I re-install my Eclipse from scratch. I may try to
> profile Eclipse to see where is the issue. I don't what to do.
>
> Regent ;)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1022785 is a reply to message #1019459] Fri, 22 March 2013 14:18 Go to previous messageGo to next message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 94
Registered: May 2010
Member
Problem Found. Sorry for the delay in my response.
I omitted to increase VM maximum size.
-vmargs
-Xms40m
-Xmx1024m /** It is set to 512M by default. */

Now everything seems ok. I forgot to update that number when I re-installed last time.

Thanks Ed.
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1022797 is a reply to message #1022785] Fri, 22 March 2013 14:43 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

It's not usually just -Xmx that is the problem for non-trivial EMF
applications.

It is all of e.g. -Xmx1g -XX:PermSize=64M -XX:MaxPermSize=128M

Regards

Ed Willink

On 22/03/2013 14:18, Régent L Archevêque wrote:
> Problem Found. Sorry for the delay in my response.
> I omitted to increase VM maximum size. -vmargs
> -Xms40m
> -Xmx1024m /** It is set to 512M by default. */
>
> Now everything seems ok. I forgot to update that number when I
> re-installed last time.
>
> Thanks Ed.
Re: [XCore] XCoreGenModel Builder NullPointerException [message #1022890 is a reply to message #1022797] Fri, 22 March 2013 18:29 Go to previous message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 94
Registered: May 2010
Member
Copy. Thanks for the info.

Regent Wink
Previous Topic:ERROR IN GMF
Next Topic:Abstract item provider class
Goto Forum:
  


Current Time: Fri Apr 19 21:28:31 GMT 2024

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

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

Back to the top