Can't create any new diagrams

Hi

I created a new Project and successfully created a few Operational Analysis diagrams. I did have some problems where I couldn’t create an Interaction in one diagram, but just moved on.

Now I’m in System Analysis and I can’t create any new diagrams under here. I first tried the Contextual System Actors diagram and the mouse pointer changes to busy, then returns to an arrow after 5 seconds or so.

I’m using 5.2. I found this error elsewhere on the web and it suggested it could be where it was located, so I have tried moving Capella to c:\capella. But no change.
Also tried re-installing VC++ redistributable (another suggestion). Also tried installing the latest JRE.

Checked the logs and found this.

!SESSION 2022-03-21 09:58:59.005 -----------------------------------------------
eclipse.buildId=unknown
java.version=14.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_AU
Command-line arguments: -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.egit.ui 2 0 2022-03-21 09:59:24.847
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: ‘C:\Users\ChrisGibbons’. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

!ENTRY org.eclipse.ui 4 0 2022-03-21 09:59:33.311
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.polarsys.capella.core.sirius.ui.actions.NewRepresentationAction.(NewRepresentationAction.java:70)
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:4213)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1037)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4030)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1158)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1047)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:658)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
at org.polarsys.capella.core.platform.sirius.ui.app.CapellaApplication.start(CapellaApplication.java:117)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
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:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)

The same error occurs for:

  • System Functions / Operational Activities Matrix
  • System Actions / Operational Entities Traceability Matrix
  • Functional Breakdown
  • Functional Dataflow Blank

Any suggestions please?

There is a “repair” function when you right click on your aird file or the project file, have you tried it?

Thanks for pointing that out. Tried that, no change.

Maybe deleting the diagram where you think you have the issue with the interaction?
Although I don’t see why this would be causing the issue you’re having…

It was a migrated project - from 5.1 to 5.2. So maybe the issue was with the migration. I haven’t checked logs for that.

I haven’t done that much. I’ll try re-creating the project, I expect that will resolve it.