Mass Editing View Problem

Hi all,
I am using the latest version of Requirements Viewpoint with Capella 5.1.0. I used the Mass Editing Viewer to edit Requirements, however it somehow ended up occupying only an unusably small part of the available space (see screenshot).

I am unable to resize it. The problem persists after closing and reopening the Mass Editing view, restarting Capella and rebooting the Computer. The problem is only limited to the Mass Editing View, the Mass Visualization View for example is not affected. Also, the Problem is limited to this specific project, other Capella projects are unaffected.

This might be rather an Eclipse than a Capella issue, but maybe you can still help me.

Maybe you have some errors in the error log that you could share? (Window- > Show View- > Error Log)

1 Like

Thanks for your response. Yes, I do, every time I try creating a new mass editing view, I get this error:

eclipse.buildId=unknown
java.version=14.0.2
java.vendor=Oracle Corporation

org.eclipse.ui
Error

Failed to execute item

org.eclipse.core.commands.ExecutionException: Error executing ‘org.polarsys.capella.common.ui.massactions.command.SendToMassEditingView’: java.lang.NullPointerException
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:170)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:389)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:785)
at org.eclipse.ui.menus.CommandContributionItem.lambda$3(CommandContributionItem.java:762)
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.jface.window.Window.runEventLoop(Window.java:823)
at org.eclipse.jface.window.Window.open(Window.java:799)
at org.eclipse.ui.internal.views.log.EventDetailsDialog.open(EventDetailsDialog.java:191)
at org.eclipse.ui.internal.views.log.EventDetailsDialogAction.run(EventDetailsDialogAction.java:102)
at org.eclipse.ui.internal.views.log.LogView.lambda$2(LogView.java:591)
at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:782)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:174)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:779)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1526)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1213)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:251)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:249)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:308)
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)
Caused by: org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:319)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:253)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
… 51 more
Caused by: java.lang.NullPointerException
at org.polarsys.capella.vp.requirements.ui.massactions.AttributeDefinitionColumn.createCellEditor(AttributeDefinitionColumn.java:129)
at org.polarsys.kitalpha.massactions.core.column.AbstractMAColumn.configureRegistry(AbstractMAColumn.java:137)
at org.polarsys.kitalpha.massactions.core.config.MAColumnConfiguration.lambda$0(MAColumnConfiguration.java:54)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.polarsys.kitalpha.massactions.core.config.MAColumnConfiguration.configureRegistry(MAColumnConfiguration.java:54)
at org.eclipse.nebula.widgets.nattable.NatTable.configure(NatTable.java:659)
at org.polarsys.kitalpha.massactions.core.config.MAConfiguration.apply(MAConfiguration.java:120)
at org.polarsys.kitalpha.massactions.core.table.MATable.initialize(MATable.java:87)
at org.polarsys.kitalpha.massactions.core.table.MATable.dataChanged(MATable.java:105)
at org.polarsys.kitalpha.massactions.shared.view.MAView.dataChanged(MAView.java:143)
at org.polarsys.capella.common.ui.massactions.shared.menu.AbstractSendToCommandHandler.execute(AbstractSendToCommandHandler.java:84)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
… 55 more

Hi,
Looking at error message, it seems you use Requirement Viewpoint, and one of your Requirement Type uses an Attribute Enumeration without a Type.


(Each attribute definition shall have a data type in the property view).
Like:

Once your type reference the corresponding type, the view will work.
I have created an issue to avoid this NPE.

Enumeration Type

Regards
Philippe

1 Like

Thank you Philippe, your diagnosis was correct and fixed my problem!
I assigned a data type to the attribute and now the Mass Editing view works fine again. Also thanks for creating the issue.