Actions
Bug #8750
closedОшибка при использовании ENUM_DEFINITION
Start date:
03/02/2018
Due date:
% Done:
100%
Estimated time:
Detected in build:
0.21.427
Platform:
Windows x64
Published in build:
0.21.492
Description
1. В корневом узле проекта создаем атрибут ENUM_DEFINITION и задаем ему несколько значений.
2. В узле дерева требований создаем атрибут, указываем ему в качестве типа атрибут из п.1.
3. Кликаем еще куда-нибудь в другое поле, чтобы изменения сохранились.
При этом сразу возникает окошко с сообщением об ошибке:
An error has occurred. See error log for more details. java.lang.NullPointerException
В Error log появляются сообщения об ошибке:
eclipse.buildId=4.6.3.M20170301-0400 java.version=1.8.0_161 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product com.unitesk.requality.product.product -eclipse.keyring D:\EclipseWorkspaces\RCPTT_Neon_Workspace\.metadata\.plugins\org.eclipse.pde.core\bundle0.21.423_update427/secure_storage Command-line arguments: -product com.unitesk.requality.product.product -data D:\EclipseWorkspaces\RCPTT_Neon_Workspace/../aut-bundle0.21.423_update427 -dev file:D:/EclipseWorkspaces/RCPTT_Neon_Workspace/.metadata/.plugins/org.eclipse.pde.core/bundle0.21.423_update427/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -eclipse.keyring D:\EclipseWorkspaces\RCPTT_Neon_Workspace\.metadata\.plugins\org.eclipse.pde.core\bundle0.21.423_update427/secure_storage org.eclipse.equinox.registry Error Fri Mar 02 16:24:25 MSK 2018 Plug-in "com.unitesk.requality" was unable to instantiate class "com.unitesk.requality.marker.RequalityDecorator". java.lang.InstantiationException at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243) at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55) at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:282) at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition$1.run(LightweightDecoratorDefinition.java:125) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.internalGetDecorator(LightweightDecoratorDefinition.java:120) at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:242) at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:100) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:383) at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:365) at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:367) at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:327) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
eclipse.buildId=4.6.3.M20170301-0400 java.version=1.8.0_161 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product com.unitesk.requality.product.product -eclipse.keyring D:\EclipseWorkspaces\RCPTT_Neon_Workspace\.metadata\.plugins\org.eclipse.pde.core\bundle0.21.423_update427/secure_storage Command-line arguments: -product com.unitesk.requality.product.product -data D:\EclipseWorkspaces\RCPTT_Neon_Workspace/../aut-bundle0.21.423_update427 -dev file:D:/EclipseWorkspaces/RCPTT_Neon_Workspace/.metadata/.plugins/org.eclipse.pde.core/bundle0.21.423_update427/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -eclipse.keyring D:\EclipseWorkspaces\RCPTT_Neon_Workspace\.metadata\.plugins\org.eclipse.pde.core\bundle0.21.423_update427/secure_storage org.eclipse.jface Error Fri Mar 02 16:24:50 MSK 2018 Problems occurred when invoking code from plug-in: "org.eclipse.jface". java.lang.NullPointerException at com.unitesk.requality.core.NodeMapper.valueToJSON(NodeMapper.java:385) at com.unitesk.requality.core.NodeMapper.valueToJSON(NodeMapper.java:394) at com.unitesk.requality.core.NodeMapper.valueProviderToJSON(NodeMapper.java:367) at com.unitesk.requality.core.NodeMapper.toJSON(NodeMapper.java:297) at com.unitesk.requality.core.NodeMapper.toJSON(NodeMapper.java:275) at com.unitesk.requality.eclipse.core.ResourceStorage$17.run(ResourceStorage.java:1023) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267) at com.unitesk.requality.eclipse.core.ResourceStorage.strictRunWithoutDeltaProc(ResourceStorage.java:1483) at com.unitesk.requality.eclipse.core.ResourceStorage.saveStorageAttributes(ResourceStorage.java:1120) at com.unitesk.requality.core.AbstractTreeStorage.saveAttributes(AbstractTreeStorage.java:262) at com.unitesk.requality.core.transaction.SaveAttributes.apply(SaveAttributes.java:76) at com.unitesk.requality.core.transaction.TransactionStorage.apply(TransactionStorage.java:407) at com.unitesk.requality.core.transaction.TransactionStorage.apply(TransactionStorage.java:384) at com.unitesk.requality.core.TreeDB.commit(TreeDB.java:1396) at com.unitesk.requality.eclipse.views.properties.AttributesPanel$15.setValue(AttributesPanel.java:1212) at org.eclipse.jface.viewers.EditingSupport.saveCellEditorValue(EditingSupport.java:113) at org.eclipse.jface.viewers.ColumnViewerEditor.saveEditorValue(ColumnViewerEditor.java:453) at org.eclipse.jface.viewers.ColumnViewerEditor.applyEditorValue(ColumnViewerEditor.java:309) at org.eclipse.jface.viewers.ColumnViewerEditor$1.applyEditorValue(ColumnViewerEditor.java:152) 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:173) at org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(CellEditor.java:333) at org.eclipse.jface.viewers.ComboBoxCellEditor.applyEditorValueAndDeactivate(ComboBoxCellEditor.java:272) at org.eclipse.jface.viewers.ComboBoxCellEditor.focusLost_aroundBody0(ComboBoxCellEditor.java:279) at org.eclipse.jface.viewers.ComboBoxCellEditor$AjcClosure1.run(ComboBoxCellEditor.java:1) at org.eclipse.rcptt.tesla.jface.CellEditorAspect.ajc$around$org_eclipse_rcptt_tesla_jface_CellEditorAspect$3$3332a794proceed(CellEditorAspect.aj:44) at org.eclipse.rcptt.tesla.jface.CellEditorAspect.ajc$around$org_eclipse_rcptt_tesla_jface_CellEditorAspect$3$3332a794(CellEditorAspect.aj:49) at org.eclipse.jface.viewers.ComboBoxCellEditor.focusLost(ComboBoxCellEditor.java:278) at org.eclipse.jface.viewers.ComboBoxCellEditor$3.focusLost(ComboBoxCellEditor.java:168) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:144) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418) at org.eclipse.swt.widgets.Widget.sendEvent_aroundBody2(Widget.java:1079) at org.eclipse.swt.widgets.Widget$AjcClosure3.run(Widget.java:1) at org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_RecordingAspect$2$2f127892proceed(RecordingAspect.aj:94) at org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_RecordingAspect$2$2f127892(RecordingAspect.aj:118) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) at org.eclipse.swt.widgets.Widget.sendEvent_aroundBody4(Widget.java:1103) at org.eclipse.swt.widgets.Widget$AjcClosure5.run(Widget.java:1) at org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_RecordingAspect$1$bd9fb3e7proceed(RecordingAspect.aj:39) at org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_RecordingAspect$1$bd9fb3e7(RecordingAspect.aj:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1092) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1088) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:802) at org.eclipse.swt.custom.CCombo.handleFocus(CCombo.java:922) at org.eclipse.swt.custom.CCombo$2.handleEvent(CCombo.java:150) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.filterEvent_aroundBody2(Display.java:1270) at org.eclipse.swt.widgets.Display$AjcClosure3.run(Display.java:1) at org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_RecordingAspect$5$a74609acproceed(RecordingAspect.aj:156) at org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_RecordingAspect$5$a74609ac(RecordingAspect.aj:167) at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1266) at org.eclipse.swt.widgets.Widget.sendEvent_aroundBody2(Widget.java:1078) at org.eclipse.swt.widgets.Widget$AjcClosure3.run(Widget.java:1) at org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_RecordingAspect$2$2f127892proceed(RecordingAspect.aj:94) at org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_RecordingAspect$2$2f127892(RecordingAspect.aj:118) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) at org.eclipse.swt.widgets.Widget.sendEvent_aroundBody4(Widget.java:1103) at org.eclipse.swt.widgets.Widget$AjcClosure5.run(Widget.java:1) at org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_RecordingAspect$1$bd9fb3e7proceed(RecordingAspect.aj:39) at org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_RecordingAspect$1$bd9fb3e7(RecordingAspect.aj:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1092) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084) at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2934) at org.eclipse.swt.widgets.Widget.wmSetFocus(Widget.java:2437) at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:5446) at org.eclipse.swt.widgets.Table.WM_SETFOCUS(Table.java:6421) at org.eclipse.swt.widgets.Control.windowProc_aroundBody2(Control.java:4869) at org.eclipse.swt.widgets.Control$AjcClosure3.run(Control.java:1) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3eproceed(EventFilterAspect.aj:17) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3e(EventFilterAspect.aj:19) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4793) at org.eclipse.swt.widgets.Table.windowProc_aroundBody2(Table.java:6037) at org.eclipse.swt.widgets.Table$AjcClosure3.run(Table.java:1) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3eproceed(EventFilterAspect.aj:17) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3e(EventFilterAspect.aj:19) at org.eclipse.swt.widgets.Table.windowProc(Table.java:5871) at org.eclipse.swt.widgets.Display.windowProc_aroundBody20(Display.java:5110) at org.eclipse.swt.widgets.Display$AjcClosure21.run(Display.java:1) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3eproceed(EventFilterAspect.aj:17) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3e(EventFilterAspect.aj:19) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5062) at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method) at org.eclipse.swt.widgets.Table.sendMouseDownEvent(Table.java:3916) at org.eclipse.swt.widgets.Table.WM_LBUTTONDOWN(Table.java:6271) at org.eclipse.swt.widgets.Control.windowProc_aroundBody2(Control.java:4835) at org.eclipse.swt.widgets.Control$AjcClosure3.run(Control.java:1) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3eproceed(EventFilterAspect.aj:17) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3e(EventFilterAspect.aj:19) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4793) at org.eclipse.swt.widgets.Table.windowProc_aroundBody2(Table.java:6037) at org.eclipse.swt.widgets.Table$AjcClosure3.run(Table.java:1) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3eproceed(EventFilterAspect.aj:17) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3e(EventFilterAspect.aj:19) at org.eclipse.swt.widgets.Table.windowProc(Table.java:5871) at org.eclipse.swt.widgets.Display.windowProc_aroundBody20(Display.java:5123) at org.eclipse.swt.widgets.Display$AjcClosure21.run(Display.java:1) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3eproceed(EventFilterAspect.aj:17) at org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_EventFilterAspect$1$602baf3e(EventFilterAspect.aj:19) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5062) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2552) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3822) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138) 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:388) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243) 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:673) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610) at org.eclipse.equinox.launcher.Main.run(Main.java:1519) at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
Actions