Project

General

Profile

Bug #7834

Ошибки при удалении целевого узла виртуального узла.

Added by Viktoria Kopach almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
01/09/2017
Due date:
% Done:

100%

Estimated time:
Detected in build:
0.21.284
Platform:
Windows x64
Published in build:
0.21.286

Description

1. Создаем виртуальный узел и задаем ему целевое требование.
2. Удаляем в дереве в Requality Explorer это целевое требование.
3. Делаем undo.
4. Переименовываем целевое требование.

При дальнейшем использовании виртуального узла начинают возникать разные ошибки. Потому что, со слов Дениса, "у переиспользованных _type пропадает".

Пример ошибки:

eclipse.buildId=4.4.2.M20150204-1700
java.version=1.8.0_101
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU
Framework arguments:  -product org.eclipse.epp.package.standard.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.standard.product

org.eclipse.jface
Error
Mon Jan 09 15:43:37 MSK 2017
An error has occurred. See error log for more details.

java.lang.ArrayIndexOutOfBoundsException: 0
    at org.eclipse.swt.widgets.Table.getSelection(Table.java:2718)
    at org.eclipse.jface.viewers.TableViewer.doGetSelection(TableViewer.java:253)
    at org.eclipse.jface.viewers.AbstractTableViewer.getSelectionFromWidget(AbstractTableViewer.java:462)
    at org.eclipse.jface.viewers.StructuredViewer.getSelection(StructuredViewer.java:1035)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1447)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1397)
    at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1497)
    at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:521)
    at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1456)
    at com.unitesk.requality.eclipse.views.properties.AttributesPanel.refreshTable(AttributesPanel.java:1594)
    at com.unitesk.requality.eclipse.views.properties.AttributesPanel$16.setValue(AttributesPanel.java:1158)
    at org.eclipse.jface.viewers.EditingSupport.saveCellEditorValue(EditingSupport.java:113)
    at org.eclipse.jface.viewers.ColumnViewerEditor.saveEditorValue(ColumnViewerEditor.java:463)
    at org.eclipse.jface.viewers.ColumnViewerEditor.applyEditorValue(ColumnViewerEditor.java:319)
    at org.eclipse.jface.viewers.ColumnViewerEditor$2.applyEditorValue(ColumnViewerEditor.java:158)
    at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:336)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
    at org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(CellEditor.java:333)
    at org.eclipse.jface.viewers.ComboBoxCellEditor.applyEditorValueAndDeactivate(ComboBoxCellEditor.java:277)
    at org.eclipse.jface.viewers.ComboBoxCellEditor.focusLost(ComboBoxCellEditor.java:284)
    at org.eclipse.jface.viewers.ComboBoxCellEditor$4.focusLost(ComboBoxCellEditor.java:173)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:143)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1070)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:782)
    at org.eclipse.swt.custom.CCombo.handleFocus(CCombo.java:906)
    at org.eclipse.swt.custom.CCombo$2.handleEvent(CCombo.java:147)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
    at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2841)
    at org.eclipse.swt.widgets.Widget.wmSetFocus(Widget.java:2425)
    at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:5236)
    at org.eclipse.swt.widgets.Canvas.WM_SETFOCUS(Canvas.java:456)
    at org.eclipse.swt.widgets.Decorations.WM_SETFOCUS(Decorations.java:1779)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4680)
    at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
    at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1626)
    at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2075)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:498)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
    at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1626)
    at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2075)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
    at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
    at org.eclipse.swt.widgets.Control.forceFocus(Control.java:1097)
    at org.eclipse.swt.widgets.Control.setFocus(Control.java:3322)
    at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1039)
    at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1039)
    at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1039)
    at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1039)
    at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1039)
    at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1039)
    at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1039)
    at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1039)
    at org.eclipse.ui.part.PageBookView.setFocus(PageBookView.java:917)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.delegateSetFocus(CompatibilityPart.java:191)
    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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:253)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:225)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:107)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.focusGui(PartRenderingEngine.java:795)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:689)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:620)
    at org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer.activate(AbstractPartRenderer.java:106)
    at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer$1.handleEvent(ContributedPartRenderer.java:61)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1070)
    at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1453)
    at org.eclipse.swt.widgets.Shell.WM_MOUSEACTIVATE(Shell.java:2334)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4654)
    at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
    at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1626)
    at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2075)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
    at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2443)
    at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:578)
    at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:444)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
    at org.eclipse.swt.widgets.Table.windowProc(Table.java:5939)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:3141)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    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(Main.java:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

Associated revisions

Revision 5409 (diff)
Added by Denis Kildishev almost 4 years ago

fixes:#7834;fixes problem when reused elements lost local attributes of base node(_type for ex.). Also fixes problem of create actions to be canceled when some broken clones exists(needs to be fixed in future)

Revision a4e9f4d1 (diff)
Added by Denis Kildishev almost 4 years ago

fixes:#7834;fixes problem when reused elements lost local attributes of base node(_type for ex.). Also fixes problem of create actions to be canceled when some broken clones exists(needs to be fixed in future)

git-svn-id: https://forge.ispras.ru/svn/reqdb/trunk/requality@5409 f558eac1-05b1-4da7-9ed5-5050e8a619d6

Revision 5409 (diff)
Added by Denis Kildishev almost 4 years ago

fixes:#7834;fixes problem when reused elements lost local attributes of base node(_type for ex.). Also fixes problem of create actions to be canceled when some broken clones exists(needs to be fixed in future)

History

#1

Updated by Denis Kildishev almost 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r5409.

#2

Updated by Denis Kildishev almost 4 years ago

  • Published in build set to 0.21.286
#3

Updated by Viktoria Kopach almost 4 years ago

  • Status changed from Resolved to Verified
#4

Updated by Alexey Khoroshilov almost 4 years ago

  • Target version set to 0.21
#5

Updated by Denis Kildishev about 3 years ago

  • Status changed from Verified to Resolved

Applied in changeset requality|commit:a4e9f4d1777d637a3c419f2e9383e1f6c70b8d5a.

#6

Updated by Alexey Khoroshilov about 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF