Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » RCPTT: NP when using the recorder(RCPTT: NP when recording)
RCPTT: NP when using the recorder [message #1783066] Wed, 07 March 2018 10:25 Go to next message
Christel Rüger is currently offline Christel RügerFriend
Messages: 2
Registered: March 2018
Junior Member
Hi,

with:
RCPTT Core 2.2.0.201705151033 org.eclipse.rcptt.core.feature.group Eclipse RCP Testing Tool Project
RCPTT ECL Core 2.2.0.201704250812 org.eclipse.rcptt.ecl.core.feature.group Eclipse RCP Testing Tool Project
RCPTT ECL IDE support 2.2.0.201606280551 org.eclipse.rcptt.ecl.ide.feature.group Eclipse RCP Testing Tool Project
RCPTT ECL Platform 2.2.0.201606280551 org.eclipse.rcptt.ecl.platform.feature.group Eclipse RCP Testing Tool Project
RCPTT ECL Platform UI 2.2.0.201606280551 org.eclipse.rcptt.ecl.platform.ui.feature.group Eclipse RCP Testing Tool Project
RCPTT ECL Server 2.2.0.201606280551 org.eclipse.rcptt.ecl.server.feature.group Eclipse RCP Testing Tool Project
RCPTT Eclipse runtime information collectors 2.2.0.201704250812 org.eclipse.rcptt.watson.feature.group Eclipse RCP Testing Tool Project
RCPTT IDE 2.2.0.201705230346 org.eclipse.rcptt.platform.feature.group Eclipse RCP Testing Tool Project
RCPTT launching components 2.2.0.201705180700 org.eclipse.rcptt.launching.feature.group Eclipse RCP Testing Tool Project
RCPTT Nebula Widgets Support 2.2.0.201612300718 org.eclipse.rcptt.module.nebula.feature.group Eclipse RCP Testing Tool Project
RCPTT Runtime core 2.2.0.201704250812 org.eclipse.rcptt.tesla.feature.group Eclipse RCP Testing Tool Project
RCPTT Runtime ECL Support 2.2.0.201703311148 org.eclipse.rcptt.tesla.ecl.feature.group Eclipse RCP Testing Tool Project
RCPTT Runtime Sites 2.2.0.201705230346 org.eclipse.rcptt.updates.feature.group Eclipse RCP Testing Tool Project

I'm getting a NP when using the recorder

java.lang.NullPointerException
at org.eclipse.rcptt.tesla.workbench.texteditor.TextEditorMapper.offsetToPosition(TextEditorMapper.java:101)
at org.eclipse.rcptt.tesla.workbench.texteditor.TextEditorMapper.setCaretPosition(TextEditorMapper.java:88)
at org.eclipse.rcptt.tesla.workbench.texteditor.TextEditorMapper.mapExtraValues(TextEditorMapper.java:40)
at org.eclipse.rcptt.tesla.recording.jface.text.WorkbenchTexteditorRecordingProcessor.mapExtraValues(WorkbenchTexteditorRecordingProcessor.java:826)
at org.eclipse.rcptt.tesla.internal.ui.player.SWTModelMapper.map(SWTModelMapper.java:93)
at org.eclipse.rcptt.tesla.internal.ui.player.SWTUIElement.getModel(SWTUIElement.java:260)
at org.eclipse.rcptt.tesla.recording.core.swt.SWTWidgetLocator.selectRequiredElementToBeFocused(SWTWidgetLocator.java:670)
at org.eclipse.rcptt.tesla.recording.core.swt.SWTWidgetLocator.findGenericElement(SWTWidgetLocator.java:638)
at org.eclipse.rcptt.tesla.recording.core.swt.SWTWidgetLocator.findElement(SWTWidgetLocator.java:289)
at org.eclipse.rcptt.tesla.recording.core.swt.SWTWidgetLocator.findElement(SWTWidgetLocator.java:1366)
at org.eclipse.rcptt.tesla.recording.core.swt.RecordingWidgetDescriber.searchForElement(RecordingWidgetDescriber.java:60)
at org.eclipse.rcptt.tesla.recording.jface.text.RecordingDescriberExtension$RecordingDescriber.searchForElement(RecordingDescriberExtension.java:51)
at org.eclipse.rcptt.tesla.recording.core.swt.SWTAssertManager.updateHoverAccordingTo(SWTAssertManager.java:821)
at org.eclipse.rcptt.tesla.recording.core.swt.SWTAssertManager.access$9(SWTAssertManager.java:809)
at org.eclipse.rcptt.tesla.recording.core.swt.SWTAssertManager$4.run(SWTAssertManager.java:446)
at org.eclipse.rcptt.sherlock.core.SherlockTimerRunnable.run(SherlockTimerRunnable.java:23)
at org.eclipse.swt.widgets.Display.runTimer(Display.java:4341)
at org.eclipse.swt.widgets.Display.messageProc(Display.java:3419)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2560)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3815)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
at org.eclipse.jface.window.Window.open(Window.java:794)
at org.eclipse.ui.internal.handlers.WizardHandler.execute_aroundBody0(WizardHandler.java:312)
at org.eclipse.ui.internal.handlers.WizardHandler$AjcClosure1.run(WizardHandler.java:1)
at org.eclipse.rcptt.tesla.recording.aspects.WorkbenchRecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_WorkbenchRecordingAspect$2$943c663bproceed(WorkbenchRecordingAspect.aj:55)
at org.eclipse.rcptt.tesla.recording.aspects.WorkbenchRecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_WorkbenchRecordingAspect$2$943c663b(WorkbenchRecordingAspect.aj:67)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:284)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute_aroundBody0(HandlerProxy.java:291)
at org.eclipse.ui.internal.handlers.HandlerProxy$AjcClosure1.run(HandlerProxy.java:1)
at org.eclipse.rcptt.tesla.recording.aspects.WorkbenchRecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_WorkbenchRecordingAspect$2$943c663bproceed(WorkbenchRecordingAspect.aj:55)
at org.eclipse.rcptt.tesla.recording.aspects.WorkbenchRecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_WorkbenchRecordingAspect$2$943c663b(WorkbenchRecordingAspect.aj:67)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:284)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:305)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:239)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:431)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:446)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:472)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
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:96)
at org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect.ajc$around$org_eclipse_rcptt_tesla_recording_aspects_RecordingAspect$2$2f127892(RecordingAspect.aj:120)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4238)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3817)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
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(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)

Thanks and regards...
Re: RCPTT: NP when using the recorder [message #1783434 is a reply to message #1783066] Tue, 13 March 2018 06:49 Go to previous message
Christel Rüger is currently offline Christel RügerFriend
Messages: 2
Registered: March 2018
Junior Member
Hi,
the document was NULL - to avoid this we added something like

if (mProjectText.getDocument() == null) {
Document document = new Document();

// data binding might have filled the widget so preserve value
String currentText = mProjectText.getTextWidget().getText();
document.set(currentText);

mProjectText.setDocument(document);
}

After that the rcptt recorder worked well, without these lines the recorder ends up in the above mentioned NP - nevertheless I think it's a bug in the rcptt recorder, as the application worked well without these lines here.

Thanks & so long...
Previous Topic:How to access Error log and verify a text on it
Next Topic:Name of a Linked Workspace Project in Context
Goto Forum:
  


Current Time: Wed Apr 24 20:47:37 GMT 2024

Powered by FUDForum. Page generated in 0.03161 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top