eclipse-capella / capella

Open Source Solution for Model-Based Systems Engineering
https://mbse-capella.org
Eclipse Public License 2.0
237 stars 96 forks source link

REC/REPL seems to be broken #2660

Open ewuerger opened 1 year ago

ewuerger commented 1 year ago

When I create a REC of a PhysicalComponent the Capella application a REC Catalog will be created with the Rec object. But now If I want to make a REPL on a new created PhysicalComponent I canchoose the REC and the REC Catalog, but the window won't allow for Ok. image

Now Capella behaves weirdly and after closing?opening the model again I receive errors: image

Only closing and opening Capella will fix this. Then the instantion window looks fine: image

But clicking on Ok won't create the REPL graphically. It is there in the browser. image

The new Component still looks the same in the diagram. image

The application is again malfunctioning and spawning the same errors as before. Our users would like to use this feature but can't in it's current state.

Is there a chance to provide a patch in the short-term? Thanks for a reply in advance.

etraisnel2 commented 1 year ago

Hello,

What version of Capella are you working with ?

B.R

Erwann

ewuerger commented 1 year ago

Hi,

this happened while using Capella 6.0.0 (6.0.0.202209090800).

etraisnel2 commented 1 year ago

I tried to reproduce it on a Capella 6.0.0 on windows, but it works for me ... It feels like your Capella installation might be broken I would advise to try on a fresh Capella 6.0.0 install. If you can reproduce it again, could you please provide the stack trace from the "Unhandled Loop Exception" errors ?

B.R

OhItsHarry commented 1 year ago

Hi,

I have a similar issue, but for me it was not possible to restore it by re-opening Capella nor by a fresh install. I cannot create Physical Architecture Diagrams or Physical Component Breakdown Diagrams, both give me unhandled event loop exception in one of my projects. It does not occure in another project, which seems strange, since I expected it to be not an issue on project site.

I am using Capella 6.1.0 on Windows 10.

Thanks and Kind Regards

java.lang.NullPointerException: Cannot invoke "org.eclipse.sirius.viewpoint.description.RepresentationDescription.getName()" because "description" is null
    at org.polarsys.capella.core.sirius.ui.actions.NewRepresentationAction.<init>(NewRepresentationAction.java:59)
    at org.polarsys.capella.core.explorer.activity.ui.hyperlinkadapter.AbstractCapellaNewDiagramHyperlinkAdapter.initNewRepresentationAction(AbstractCapellaNewDiagramHyperlinkAdapter.java:84)
    at org.polarsys.capella.core.explorer.activity.ui.hyperlinkadapter.AbstractCapellaNewDiagramHyperlinkAdapter.createDiagram(AbstractCapellaNewDiagramHyperlinkAdapter.java:70)
    at org.eclipse.amalgam.explorer.activity.ui.api.hyperlinkadapter.AbstractNewDiagramHyperlinkAdapter.linkPressed(AbstractNewDiagramHyperlinkAdapter.java:89)
    at org.polarsys.capella.core.explorer.activity.ui.hyperlinkadapter.AbstractCapellaNewDiagramHyperlinkAdapter.linkActivated(AbstractCapellaNewDiagramHyperlinkAdapter.java:60)
    at org.eclipse.ui.forms.widgets.AbstractHyperlink.handleActivate(AbstractHyperlink.java:215)
    at org.eclipse.ui.forms.widgets.ImageHyperlink.handleActivate(ImageHyperlink.java:212)
    at org.eclipse.ui.forms.widgets.AbstractHyperlink.handleMouseUp(AbstractHyperlink.java:309)
    at org.eclipse.ui.forms.widgets.AbstractHyperlink.lambda$3(AbstractHyperlink.java:117)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4209)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1043)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4026)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3626)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
    at org.polarsys.capella.core.platform.sirius.ui.app.CapellaApplication.start(CapellaApplication.java:118)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:654)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
OhItsHarry commented 1 year ago

Hi,

My colleague and I found a workaround by using the Sirius Model Explorer. The right click menu of the Physical Architecture in the Project Explorer also does not offer the possibility to add the PAB, but in the Sirius Model Explorer it is possible to add it on Physical System -> New Representation -> Other. After doing this, the diagram is added and it is also possible to add all other diagrams, which didn't work before. All menus behave as normal after doing this.

Kind regards