java.lang.IllegalArgumentException: Segment cannot be null

GitHub | juli1 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    outline refresh issue

    GitHub | 7 months ago | juli1
    java.lang.IllegalArgumentException: Segment cannot be null

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Segment cannot be null

      at org.eclipse.xtext.naming.QualifiedName.create()
    2. org.eclipse.xtext
      EObjectDescription.create
      1. org.eclipse.xtext.naming.QualifiedName.create(QualifiedName.java:146)
      2. org.eclipse.xtext.resource.EObjectDescription.create(EObjectDescription.java:45)
      2 frames
    3. org.osate.xtext
      ErrorModelScopeProvider.lambda$32
      1. org.osate.xtext.aadl2.errormodel.scoping.ErrorModelScopeProvider.lambda$32(ErrorModelScopeProvider.java:951)
      1 frame
    4. Eclipse Xbase Runtime Library
      FunctionDelegate.apply
      1. org.eclipse.xtext.xbase.lib.internal.FunctionDelegate.apply(FunctionDelegate.java:42)
      1 frame
    5. Guava
      AbstractIterator.hasNext
      1. com.google.common.collect.Iterators$8.transform(Iterators.java:794)
      2. com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
      3. com.google.common.collect.Iterators$7.computeNext(Iterators.java:646)
      4. com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
      5. com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
      5 frames
    6. org.eclipse.xtext
      DefaultLinkingService.getLinkedObjects
      1. org.eclipse.xtext.scoping.impl.AbstractScope.getSingleLocalElementByName(AbstractScope.java:114)
      2. org.eclipse.xtext.scoping.impl.AbstractScope.getSingleElement(AbstractScope.java:105)
      3. org.eclipse.xtext.linking.impl.DefaultLinkingService.getLinkedObjects(DefaultLinkingService.java:121)
      3 frames
    7. org.osate.xtext
      EMV2AnnexLinkingService.resolveAnnexReference
      1. org.osate.xtext.aadl2.properties.linking.PropertiesLinkingService.getLinkedObjects(PropertiesLinkingService.java:558)
      2. org.osate.xtext.aadl2.errormodel.linking.EMLinkingService.getLinkedObjects(EMLinkingService.java:504)
      3. org.osate.xtext.aadl2.errormodel.parsing.EMV2AnnexLinkingService.resolveAnnexReference(EMV2AnnexLinkingService.java:46)
      3 frames
    8. org.osate.annexsupport
      AnnexLinkingServiceProxy.resolveAnnexReference
      1. org.osate.annexsupport.AnnexLinkingServiceProxy.resolveAnnexReference(AnnexLinkingServiceProxy.java:70)
      1 frame
    9. org.osate.xtext
      Aadl2LinkingService.getLinkedObjects
      1. org.osate.xtext.aadl2.linking.Aadl2LinkingService.getLinkedObjects(Aadl2LinkingService.java:130)
      1 frame
    10. org.eclipse.xtext
      XtextDocument.readOnly
      1. org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:250)
      2. org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:225)
      3. org.eclipse.xtext.resource.persistence.StorageAwareResource.getEObject(StorageAwareResource.java:136)
      4. org.eclipse.xtext.linking.lazy.LazyLinkingResource.doResolveLazyCrossReference(LazyLinkingResource.java:192)
      5. org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReference(LazyLinkingResource.java:151)
      6. org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReferences(LazyLinkingResource.java:137)
      7. org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:528)
      8. org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.postParse(XtextDocumentReconcileStrategy.java:175)
      9. org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.doReconcile(XtextDocumentReconcileStrategy.java:153)
      10. org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:67)
      11. org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.doRun(XtextReconciler.java:442)
      12. org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.access$3(XtextReconciler.java:422)
      13. org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$DocumentListener$1.exec(XtextReconciler.java:133)
      14. org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$DocumentListener$1.exec(XtextReconciler.java:1)
      15. org.eclipse.xtext.resource.OutdatedStateManager.exec(OutdatedStateManager.java:121)
      16. org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:428)
      17. org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.process(XtextDocument.java:337)
      18. org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$DocumentListener.performNecessaryUpdates(XtextReconciler.java:130)
      19. org.eclipse.xtext.ui.editor.model.XtextDocument.updateContentBeforeRead(XtextDocument.java:249)
      20. org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.internalReadOnly(XtextDocument.java:518)
      21. org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.readOnly(XtextDocument.java:492)
      22. org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:133)
      22 frames
    11. org.osate.xtext
      AadlPropertyView.lambda$0
      1. org.osate.xtext.aadl2.ui.propertyview.AadlPropertyView.updateSelection(AadlPropertyView.java:1687)
      2. org.osate.xtext.aadl2.ui.propertyview.AadlPropertyView.lambda$0(AadlPropertyView.java:290)
      2 frames
    12. org.eclipse.ui
      SelectionService$1.selectionChanged
      1. org.eclipse.ui.internal.e4.compatibility.SelectionService.notifyListeners(SelectionService.java:237)
      2. org.eclipse.ui.internal.e4.compatibility.SelectionService.handleSelectionChanged(SelectionService.java:107)
      3. org.eclipse.ui.internal.e4.compatibility.SelectionService.access$0(SelectionService.java:91)
      4. org.eclipse.ui.internal.e4.compatibility.SelectionService$1.selectionChanged(SelectionService.java:66)
      4 frames
    13. Eclipse Workbench
      SelectionAggregator$2.run
      1. org.eclipse.e4.ui.internal.workbench.SelectionAggregator$2.run(SelectionAggregator.java:126)
      1 frame
    14. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    15. Eclipse Workbench
      SelectionAggregator$7$1.run
      1. org.eclipse.e4.ui.internal.workbench.SelectionAggregator.notifyListeners(SelectionAggregator.java:123)
      2. org.eclipse.e4.ui.internal.workbench.SelectionAggregator.access$6(SelectionAggregator.java:120)
      3. org.eclipse.e4.ui.internal.workbench.SelectionAggregator$7$1.run(SelectionAggregator.java:233)
      3 frames
    16. org.eclipse.e4
      RunAndTrack.runExternalCode
      1. org.eclipse.e4.core.contexts.RunAndTrack.runExternalCode(RunAndTrack.java:56)
      1 frame
    17. Eclipse Workbench
      SelectionAggregator$7.changed
      1. org.eclipse.e4.ui.internal.workbench.SelectionAggregator$7.changed(SelectionAggregator.java:230)
      1 frame
    18. org.eclipse.e4
      EclipseContext.set
      1. org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:114)
      2. org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:341)
      3. org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:356)
      3 frames
    19. Eclipse Workbench
      SelectionServiceImpl.setSelection
      1. org.eclipse.e4.ui.internal.workbench.SelectionServiceImpl.setSelection(SelectionServiceImpl.java:31)
      1 frame
    20. org.eclipse.ui
      CompatibilityPart.selectionChanged
      1. org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:441)
      1 frame
    21. JFace
      Viewer$2.run
      1. org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:163)
      1 frame
    22. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    23. Eclipse UI
      JFaceUtil$1.run
      1. org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
      1 frame
    24. JFace
      Viewer.fireSelectionChanged
      1. org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
      2. org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
      2 frames
    25. JFace Text
      TextViewer$4.widgetSelected
      1. org.eclipse.jface.text.TextViewer.fireSelectionChanged(TextViewer.java:2734)
      2. org.eclipse.jface.text.TextViewer.selectionChanged(TextViewer.java:2713)
      3. org.eclipse.jface.text.TextViewer$4.widgetSelected(TextViewer.java:1832)
      3 frames
    26. RWT
      StyledText$6.textChanged
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      3. org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1137)
      6. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1122)
      7. org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:788)
      8. org.eclipse.swt.custom.StyledText.sendSelectionEvent(StyledText.java:8200)
      9. org.eclipse.swt.custom.StyledText.setSelection(StyledText.java:9692)
      10. org.eclipse.swt.custom.StyledText.updateSelection(StyledText.java:10424)
      11. org.eclipse.swt.custom.StyledText.handleTextChanged(StyledText.java:6265)
      12. org.eclipse.swt.custom.StyledText$6.textChanged(StyledText.java:5665)
      12 frames
    27. JFace Text
      AbstractDocument.fireDocumentChanged
      1. org.eclipse.jface.text.DefaultDocumentAdapter.fireTextChanged(DefaultDocumentAdapter.java:347)
      2. org.eclipse.jface.text.DefaultDocumentAdapter.documentChanged(DefaultDocumentAdapter.java:291)
      3. org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java:760)
      4. org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:736)
      5. org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:721)
      6. org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:796)
      6 frames
    28. Text
      ProjectionDocument.fireDocumentChanged
      1. org.eclipse.jface.text.projection.ProjectionDocument.fireDocumentChanged(ProjectionDocument.java:777)
      1 frame
    29. JFace Text
      AbstractDocument.replace
      1. org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1191)
      2. org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1210)
      2 frames
    30. Text
      ProjectionDocument.replace
      1. org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:629)
      1 frame
    31. JFace Text
      DefaultDocumentAdapter.replaceTextRange
      1. org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:248)
      1 frame
    32. RWT
      StyledText.paste
      1. org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7308)
      2. org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:8159)
      3. org.eclipse.swt.custom.StyledText.paste(StyledText.java:7372)
      3 frames
    33. JFace Text
      ProjectionViewer.doOperation
      1. org.eclipse.jface.text.TextViewer.paste(TextViewer.java:4100)
      2. org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:4029)
      3. org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:1053)
      4. org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1501)
      4 frames
    34. Text Editor Framework
      TextOperationAction$1.run
      1. org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:128)
      1 frame
    35. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    36. Text Editor Framework
      TextOperationAction.run
      1. org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:126)
      1 frame
    37. JFace
      ActionHandler.execute
      1. org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
      2. org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:122)
      2 frames
    38. Workbench
      E4HandlerProxy.execute
      1. org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
      1 frame
    39. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3. java.lang.reflect.Method.invoke(Unknown Source)
      3 frames
    40. org.eclipse.e4
      HandlerServiceHandler.execute
      1. org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
      2. org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252)
      3. org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
      4. org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      5. org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
      5 frames
    41. Commands
      ParameterizedCommand.executeWithChecks
      1. org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)
      2. org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)
      2 frames
    42. org.eclipse.e4
      KeyBindingDispatcher$KeyDownFilter.handleEvent
      1. org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
      2. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:286)
      3. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:507)
      4. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:558)
      5. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:378)
      6. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:324)
      7. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:86)
      7 frames
    43. RWT
      Display.windowProc
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      2. org.eclipse.swt.widgets.Display.filterEvent(Display.java:1266)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1112)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1137)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1122)
      6. org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1164)
      7. org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1160)
      8. org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1581)
      9. org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4795)
      10. org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:343)
      11. org.eclipse.swt.widgets.Control.windowProc(Control.java:4676)
      12. org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
      13. org.eclipse.swt.widgets.Display.windowProc(Display.java:5050)
      13 frames
    44. org.eclipse.swt
      OS.DispatchMessage
      1. org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
      2. org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
      2 frames
    45. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3767)
      1 frame
    46. Eclipse Workbench SWT
      PartRenderingEngine$4.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
      1 frame
    47. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      1 frame
    48. Eclipse Workbench SWT
      PartRenderingEngine.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
      1 frame
    49. Eclipse Workbench
      E4Workbench.createAndRunUI
      1. org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      1 frame
    50. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)
      1 frame
    51. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      1 frame
    52. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)
      1 frame
    53. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      1 frame
    54. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
      1 frame
    55. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    56. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      4 frames
    57. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    58. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1515)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1488)
      4 frames