Requirement viewpoint - cannot import reqif file

Please find below the versions.
Capella Version: 1.1.2 Build id: 2017-08-01_10-31-42
CapellaRequirements Feature

I did try with these version and I do see the menu.
Did you Reference your model as explained in the documentation?
Once the view is open, select an element of your model. Then in the view, right click on the “Capella Requirements” view and click on “Reference”.
You should see the import menu as soon as you check the contextual menu on the “System Analysis”, “Logical Architecture”, “Physical Architecture” elements in the project tree.
Warning: the version on the Capella website does not support requirements which don’t have IE PUID.
The following version does:
https:// nt-v0.5.x/14/artifact/releng/org.polarsys.capella.vp.require ments.update/target/org.polarsys.capella.vp.requirements-dro

Thank you Stephane.
I was missing the point contextual menu from the “project tree”. Previously I was checking the contextual menu of the model element.
However, now the issue is that context menu is blank as shown below.
I checked in different computers, it is the same behavior. Am I missing anything? This happens only after I click on reference on capella requirements.

Sorry but it is difficult to see the picture (light and resolution are weak).
This is extremely weird as you seem missing many menu entries there. Which Java version are you running? DO you have the same blank contextual menu in a Capella where the Requirement add-on is not installed?

Sorry for the screenshot. Please find the below one. Before, everything works fine with contextual menus. Even after installing requirement viewpoint, the contextual menu is fine.
The issue comes only after I activate reference from capella requirements from viewpoint manager.
I am using Java 1.8.

Can you tell us if any exception occurred ? (menu Window / Show View / Error Log)

Hello, Here is the error log.
!ENTRY org.eclipse.ui 4 0 2017-09-13 12:58:52.355
!MESSAGE Unhandled event loop exception
java.lang.NoClassDefFoundError: org/polarsys/kitalpha/ad/services/manager/InvalidContextExce ption
at org.polarsys.capella.vp.requirements.ui.commands.Requirement sVPPropertyTester.test(
at org.eclipse.core.internal.expressions.Property.test(Property .java:58)
at org.eclipse.core.internal.expressions.TestExpression.evaluat e(
at org.eclipse.ui.internal.handlers.HandlerActivation.evaluate(
at org.eclipse.ui.internal.handlers.LegacyHandlerService$Handle rSelectionFunction.compute(
at org.eclipse.e4.core.internal.contexts.ValueComputation.get(V
at org.eclipse.e4.core.internal.contexts.EclipseContext.interna lGet(
at org.eclipse.e4.core.internal.contexts.EclipseContext.interna lGet(
at org.eclipse.e4.core.internal.contexts.EclipseContext.interna lGet(
at org.eclipse.e4.core.internal.contexts.EclipseContext.interna lGet(
at org.eclipse.e4.core.internal.contexts.EclipseContext.interna lGet(
at org.eclipse.e4.core.internal.contexts.EclipseContext.get(Ecl
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.loo kUpHandler(
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler. setEnabled(
at org.eclipse.core.commands.Command.setEnabled( 5)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.can Execute(
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.can Execute(
at org.eclipse.ui.internal.menus.MenuHelper$1.evaluate(MenuHelp
at org.eclipse.e4.ui.internal.workbench.ContributionsAnalyzer.i sVisible(
at org.eclipse.e4.ui.workbench.renderers.swt.ContributionRecord .computeVisibility(
at org.eclipse.e4.ui.workbench.renderers.swt.ContributionRecord .updateVisibility(
at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRendere rFilter.updateElementVisibility(MenuManagerRendererFilter.ja va:188)
at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRendere rFilter.updateElementVisibility(MenuManagerRendererFilter.ja va:199)
at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerShowPro cessor.showMenu(
at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerShowPro cessor.menuAboutToHide(
at org.eclipse.jface.internal.MenuManagerEventHelper.showEventP ostHelper(
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuM
at org.eclipse.jface.action.MenuManager.access$1(MenuManager.ja va:461)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager .java:493)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe
at org.eclipse.swt.widgets.EventTable.sendEvent( :84)
at org.eclipse.swt.widgets.Display.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.jav a:5037)
at org.eclipse.swt.widgets.Control.windowProc( )
at org.eclipse.swt.widgets.Canvas.windowProc(
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1633)
at org.eclipse.swt.widgets.Shell.windowProc(
at org.eclipse.swt.widgets.Display.windowProc( )
at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
at org.eclipse.swt.widgets.Menu._setVisible(
at org.eclipse.swt.widgets.Display.runPopups(
at org.eclipse.swt.widgets.Display.readAndDispatch( :3763)
at org.eclipse.jface.window.Window.runEventLoop( )
at org.eclipse.ui.internal.views.log.EventDetailsDialogAction.r un(
at org.eclipse.ui.internal.views.log.LogView$15.doubleClick(Log
at org.eclipse.jface.viewers.StructuredViewer$
at org.eclipse.ui.internal.JFaceUtil$
at 3)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S
at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:249)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate
at org.eclipse.swt.widgets.EventTable.sendEvent( :84)
at org.eclipse.swt.widgets.Display.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:4180)
at org.eclipse.swt.widgets.Display.readAndDispatch( :3769)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine $
at org.eclipse.core.databinding.observable.Realm.runWithDefault (
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine .run(
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRu nUI(
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault (
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:150)
at ication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework( 669)
at org.eclipse.equinox.launcher.Main.basicRun(
Caused by: java.lang.ClassNotFoundException: ption cannot be found by org.polarsys.capella.vp.requirements.model.helpers_0.5.1.201 706141624
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass (
at java.lang.ClassLoader.loadClass(Unknown Source)
… 86 more

looking at your symptoms, I think you shall check your capella installation before looking for specific capella functions.
At first, and it’s a classical problem with eclipse installation under windows, you shall ensure that your path (in fact, the path of the deepest file of capella) is not more deep than 256 characters. Installing eclipse based application in a deep directories on your windows computer can lead to the lose of jar file, eclipse components, and your platform won’t work well. Even unzipping tools can give you a warning in such a case, it’s always welcome to check this point.
Secundly, the lose of menuItems remind me a lack of video memory (sometime called GDI under windows). Some application fill up this memory, and application with many menu items (such as eclipse/capella) cannot instantiate all their subMenus.
Hoping this will help you

The team has actually found a regression and is working on a new build for this add-on. Hopefully it will be available in the next couple of days. I will post a new message here.

Thanks J.Pequery and Stephane for your response.
I cross checked in different computers with same result. It happens only when I install this addon, otherwise it is working fine.
Thanks Stephane, I will wait for the new build.

could you please take a look on a following bug?
ticket 1784
I experienced some issues with imported requirements.

Thank you for filing this report. We are also aware of a few missing items in this add-on, like the capability to display requirements in diagrams or the capability to edit requirements in a more ergonomic way. Not all of them would be expensive developments. However, what we are lacking today with regards to this add-on is funding. Several organizations have expressed wishes in the last months, but the Capella team already has quite a backlog. The only way to accelerate the developments of these evolutions would be through funding… Anyone is welcome to contribute!

Hello all,
After importing a reqif file as explained above, the requirements are not listed in my project explorer. When i try to import the reqif again, the model update browser shows that the requirements are already included in the “System Analysis” subsection of the project (see figure). I have the same problem when creating a Capella types folder.
Am i doing something wrong or is there somewhere an issue with Capella/plugin?
Thank you in advance!

Solution found

Hi, I’ve imported my reqif document as per above example, but the content of the specifications appear to be blank. Did I make mistake when exporting the reqif doc, or else I missed some steps in capella?

Copyright © Eclipse Capella, the Eclipse Capella logo, Eclipse and the Eclipse logo are Trademarks of The Eclipse Foundation.