Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert statements generate an exception in graphical editor #142

Open
iamundson opened this issue Jan 9, 2025 · 0 comments
Open

Assert statements generate an exception in graphical editor #142

iamundson opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@iamundson
Copy link
Contributor

When Assert statements are included in component annex subclauses an IllegalArgumentException will be thrown when the model is viewed in the graphical editor. Stack trace:

!ENTRY org.osate.ge 4 0 2025-01-09 13:32:48.204
!MESSAGE Error retrieving relative reference for com.rockwellcollins.atc.agree.agree.impl.AssertStatementImpl.
!STACK 0
java.lang.IllegalArgumentException: segment is null
at org.osate.ge.BusinessObjectReference.(BusinessObjectReference.java:53)
at org.osate.ge.RelativeBusinessObjectReference.(RelativeBusinessObjectReference.java:41)
at edu.uah.rsesc.agree.ge.businessObjectHandlers.AgreeReferenceUtil.lambda$6(AgreeReferenceUtil.java)
at java.base/java.util.Optional.map(Unknown Source)
at edu.uah.rsesc.agree.ge.businessObjectHandlers.AgreeReferenceUtil.getRelativeReference(AgreeReferenceUtil.java:74)
at edu.uah.rsesc.agree.ge.businessObjectHandlers.AgreeBusinessObjectHandler.getRelativeReference(AgreeBusinessObjectHandler.java:16)
at org.osate.ge.internal.services.impl.DefaultReferenceService.getRelativeReference(DefaultReferenceService.java:150)
at org.osate.ge.internal.services.impl.ProjectReferenceServiceProxy.getRelativeReference(ProjectReferenceServiceProxy.java:73)
at org.osate.ge.internal.diagram.runtime.updating.DefaultBusinessObjectTreeUpdater.getChildBusinessObjects(DefaultBusinessObjectTreeUpdater.java:404)
at org.osate.ge.internal.diagram.runtime.updating.DefaultBusinessObjectTreeUpdater.createNode(DefaultBusinessObjectTreeUpdater.java:368)
at org.osate.ge.internal.diagram.runtime.updating.DefaultBusinessObjectTreeUpdater.createNodes(DefaultBusinessObjectTreeUpdater.java:345)
at org.osate.ge.internal.diagram.runtime.updating.DefaultBusinessObjectTreeUpdater.createNode(DefaultBusinessObjectTreeUpdater.java:377)
at org.osate.ge.internal.diagram.runtime.updating.DefaultBusinessObjectTreeUpdater.createNodes(DefaultBusinessObjectTreeUpdater.java:345)
at org.osate.ge.internal.diagram.runtime.updating.DefaultBusinessObjectTreeUpdater.createNode(DefaultBusinessObjectTreeUpdater.java:377)
at org.osate.ge.internal.diagram.runtime.updating.DefaultBusinessObjectTreeUpdater.createNodes(DefaultBusinessObjectTreeUpdater.java:345)
at org.osate.ge.internal.diagram.runtime.updating.DefaultBusinessObjectTreeUpdater.updateTree(DefaultBusinessObjectTreeUpdater.java:192)
at org.osate.ge.internal.diagram.runtime.updating.DiagramUpdater.updateDiagram(DiagramUpdater.java:133)
at org.osate.ge.internal.diagram.runtime.updating.DiagramUpdater.updateDiagram(DiagramUpdater.java:122)
at org.osate.ge.gef.ui.editor.AgeEditor.lambda$25(AgeEditor.java:1216)
at org.osate.ge.internal.services.impl.DefaultActionService.execute(DefaultActionService.java:263)
at org.osate.ge.internal.services.impl.DefaultActionService.execute(DefaultActionService.java:257)
at org.osate.ge.gef.ui.editor.AgeEditor.updateDiagram(AgeEditor.java:1214)
at org.osate.ge.gef.ui.editor.AgeEditor.updateDiagram(AgeEditor.java:1192)
at org.osate.ge.gef.ui.editor.AgeEditor$3.afterModelChangeNotification(AgeEditor.java:491)
at org.osate.ge.internal.services.impl.DefaultModelChangeNotifier.onModelChanged(DefaultModelChangeNotifier.java:227)
at org.osate.ge.internal.services.impl.DefaultModelChangeNotifier.lambda$3(DefaultModelChangeNotifier.java:195)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4046)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3662)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
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:648)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:555)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
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(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:651)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:588)
at org.eclipse.equinox.launcher.Main.run(Main.java:1459)

@iamundson iamundson added the bug Something isn't working label Jan 9, 2025
@iamundson iamundson added this to the v2.11.0 milestone Jan 9, 2025
@iamundson iamundson self-assigned this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant