Unable to Play Recording

Hi All,

I am unable to play recording. Getting error message as “java.lang.NullPointerException: A null service reference is not allowed.”

Hi @narendra_purTG, can you share the recording that you try to play?
I cannot see the details on the screenshot.
Thank you.

Hi @ashapkina,

Attached is the screen shot. Also note that there is not “Server Profile” in right bottom of the screen. I have uninstalled and installed fresh copies of 2.0.1 several times. I am having same error.

Hi @narendra_purTG, please click Details>>, copy the whole text of the error log and post here. There is too little info the screenshot now to tell what causes the error.

Try accessing the Server profile through the menu: Window - Preferences - WorkFusion Studio - Server Profiles. Does it open this way?

No, I am not able to locate Server Profile in Preferences.

java.lang.NullPointerException: A null service reference is not allowed.
com.workfusion.studio.rpa.recorder.player.exception.PlaybackFlowRunningException: java.lang.NullPointerException: A null service reference is not allowed.
at com.workfusion.studio.rpa.recorder.player.PlaybackProcess.start(PlaybackProcess.java:86)
at com.workfusion.studio.recorder.editor.action.AbstractPlayRecordingAction.run(AbstractPlayRecordingAction.java:73)
at com.workfusion.studio.recorder.editor.action.PlayRecordingAction.run(PlayRecordingAction.java:23)
at com.workfusion.studio.recorder.editor.action.RecorderAction.run(RecorderAction.java:28)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
at org.eclipse.jface.action.ActionContributionItem.lambda$5(ActionContributionItem.java:436)
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(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
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(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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)
Caused by: java.lang.NullPointerException: A null service reference is not allowed.
at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:617)
at com.workfusion.studio.rpa.recorder.Activator.getProfileService(Activator.java:135)
at com.workfusion.studio.rpa.recorder.player.PlaybackDefaultVariables.getOcrApiUrl(PlaybackDefaultVariables.java:30)
at com.workfusion.studio.rpa.recorder.player.PlaybackDefaultVariables.(PlaybackDefaultVariables.java:18)
at com.workfusion.studio.rpa.recorder.player.PlaybackProcess.doStart(PlaybackProcess.java:113)
at com.workfusion.studio.rpa.recorder.player.PlaybackProcess.start(PlaybackProcess.java:79)
at com.workfusion.studio.recorder.editor.action.AbstractPlayRecordingAction.run(AbstractPlayRecordingAction.java:73)
at com.workfusion.studio.recorder.editor.action.PlayRecordingAction.run(PlayRecordingAction.java:23)
at com.workfusion.studio.recorder.editor.action.RecorderAction.run(RecorderAction.java:28)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
at org.eclipse.jface.action.ActionContributionItem.lambda$5(ActionContributionItem.java:436)
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(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
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(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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)

Did you select the default profile (workspace) when you launched RPA Express?

Hi @ashapkina,

Yes, I have selected correct profile.

@narendra_purTG we haven’t had such case before. Could you check if you have WF Studio page at all in the preferences?

Please also send us the log files from the metadata (C:\Users\user\workfusion-workspace\rpae_project.metadata) and RPA logs (C:\RPAExpress\RPA\logs). We will look for the exceptions there.

Thank you.

If you don’t have a server profile at all, the only solution to it will be to reinstall RPA Express.

Hi @narendra_purTG, did you check if you have server profile and WF Studio pages in the Preferences?