Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Polarsys » Capella Studio » Capella studio java.lang.NoClassDefFoundError
Capella studio java.lang.NoClassDefFoundError [message #1822136] Thu, 27 February 2020 17:56 Go to next message
Soulimane KAMNI is currently offline Soulimane KAMNIFriend
Messages: 20
Registered: February 2020
Junior Member
Dear all,

I am actually working on a viewpoint that extends the physical architecture page and add a section containing at least one activity.

I am trying to open the diagram editor programmatically after pressing the link of the activity in the activity explorer.

After generating the viewpoint to start working on the activity explorer and fill generated stubs with my business code, I noticed that there is messing plugins like sirius ui plugin that contains the DialectUIManager and the capella common helpers plugin that contains the TransactionHelper

The two classes that help me create the representation and execute it to be able to open the editor are missing in this case.

However, I could find the two plugins in the capella studio plugins folder and I have added them to the build path of the activity explorer generated project.

After coding the editor opening part with no compiler errors, I'm having troubles during run-time of the capella project.

Actually, when I click the activity link, I get the error below and nothing happens after that.

!ENTRY org.eclipse.ui 4 0 2020-02-27 18:42:02.948
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoClassDefFoundError: org/polarsys/capella/common/helpers/TransactionHelper


Personally, I think that comes out because of the messing plugins in the generated projects of the view point.

Is there any explanation for that?

Soulimane.
Re: Capella studio java.lang.NoClassDefFoundError [message #1822688 is a reply to message #1822136] Wed, 11 March 2020 13:05 Go to previous message
Soulimane KAMNI is currently offline Soulimane KAMNIFriend
Messages: 20
Registered: February 2020
Junior Member
I could solve the problem. Actually, the NoClassDefFoundError is a run time error. I used to add the TranscationHelper class to the imported packages using the eclipse suggestions instead of adding it to the required bundles. The attached picture shows that.index.php/fa/37567/0/

When I used to add the missing classes to the imported packages, it solves the compilation errors but during the run time the JVM doesn't find them so it throws the NoDefClassError.

Soulimane.

[Updated on: Wed, 11 March 2020 16:32]

Report message to a moderator

Previous Topic:Git adress
Next Topic:How to package viewpoint after adjustments?
Goto Forum:
  


Current Time: Mon May 16 06:01:27 GMT 2022

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

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

Back to the top