Error After Click OK On "Add Element To Object Repository"

This unsolved error was posted under “Katalon Studio” when it should have been posted here, under “Katalon Recorder”. It also originated from a different post which had more information than given in the bug report.

Incorrectly placed bug report: https://forum.katalon.com/discussion/9760/error-after-click-ok-on-add-element-to-object-repository

Initial post w/more info: https://forum.katalon.com/discussion/9754/error-after-click-ok-on-add-element-to-object-repository

_---------------------------------------------------------------
_
I’m getting the same issue. What is the progress of this ticket?

Katalon Studio

Version: 5.8.4

Build: 14

Version 70.0.3538.77 (Official Build) (64-bit)

Windows 10

I simplified a test until I could successfully “Add Element to Object Repository” (right). Then I ran/recorded again, only adding a single click on an element (left). The obvious difference is that (right) merges and (left) actually adds a new element.

I seemed to narrow it down to a couple different Object Repository folders, figured they might’ve corrupted in some way.

This seems to have solved the problem! Removed the folders, File->Quit from Katalon, and Shut Down PC. Started Katalon on boot, and rebuilt those objects successfully.

Additionally, the log said something about not closing threads. So I’ve been particularly careful to make sure tests end naturally, I pause recording, THEN hit top Stop in Katalon Recorder, THEN click OK and add Objects to the repository.

P.S. For the record, I don’t expect the PC Shut Down did anything in particular, because the problem persisted after a PC Restart. And File->Quit Katalon after this solution, and got an error that referred me to the log:

!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-11-02 11:41:42.247

!MESSAGE FrameworkEvent ERROR

!STACK 0

org.eclipse.e4.core.di.InjectionException: org.eclipse.swt.SWTException: Invalid thread access

at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:65)

at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:966)

at org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:426)

at org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:154)

at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:78)

at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)

at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:74)

at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:176)

at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:161)

at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:106)

at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:139)

at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:903)

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)

at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)

at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)

at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:156)

at org.eclipse.osgi.container.Module.publishEvent(Module.java:476)

at org.eclipse.osgi.container.Module.doStop(Module.java:634)

at org.eclipse.osgi.container.Module.stop(Module.java:498)

at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)

at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)

at java.lang.Thread.run(Thread.java:748)

Caused by: org.eclipse.swt.SWTException: Invalid thread access

at org.eclipse.swt.SWT.error(SWT.java:4533)

at org.eclipse.swt.SWT.error(SWT.java:4448)

at org.eclipse.swt.SWT.error(SWT.java:4419)

at org.eclipse.swt.widgets.Display.error(Display.java:1262)

at org.eclipse.swt.widgets.Display.checkDevice(Display.java:766)

at org.eclipse.swt.widgets.Display.removeFilter(Display.java:4129)

at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.contextDisposed(MenuManagerRenderer.java:339)

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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)

… 23 more

at java.lang.Thread.run(Thread.java:748)

Caused by: org.eclipse.swt.SWTException: Widget is disposed

at org.eclipse.swt.SWT.error(SWT.java:4533)

at org.eclipse.swt.SWT.error(SWT.java:4448)

at org.eclipse.swt.SWT.error(SWT.java:4419)

at org.eclipse.swt.widgets.Widget.error(Widget.java:482)

at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:354)

at org.eclipse.swt.widgets.Control.setRedraw(Control.java:3679)

at com.kms.katalon.composer.execution.part.LogViewerPart.disposeChildrenFromIndex(LogViewerPart.java:270)

at com.kms.katalon.composer.execution.part.LogViewerPart.createLogViewerControl(LogViewerPart.java:255)

at com.kms.katalon.composer.execution.part.LogViewerPart.access$32(LogViewerPart.java:254)

at com.kms.katalon.composer.execution.part.LogViewerPart$20.run(LogViewerPart.java:1207)

at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)

at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4211)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3827)

at org.eclipse.swt.widgets.Display.release(Display.java:3881)

at org.eclipse.swt.graphics.Device.dispose(Device.java:298)

at com.kms.katalon.core.application.Application.internalRunGUI(Application.java:123)

at com.kms.katalon.core.application.Application.runGUI(Application.java:100)

at com.kms.katalon.core.application.Application.start(Application.java:60)

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)

!ENTRY org.eclipse.core.resources 2 10035 2018-11-02 11:41:42.997

!MESSAGE The workspace will exit with unsaved changes in this session.

!ENTRY org.eclipse.core.jobs 2 2 2018-11-02 11:41:43.321

!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.progress.WorkbenchSiteProgressService$SiteUpdateJob

!ENTRY org.eclipse.core.jobs 2 2 2018-11-02 11:41:43.324

!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.progress.TaskBarProgressManager$2

!ENTRY org.eclipse.core.jobs 2 2 2018-11-02 11:41:43.324

!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.jdt.internal.ui.viewsupport.ProblemMarkerManager$1

!ENTRY org.eclipse.core.jobs 2 2 2018-11-02 11:41:43.324

!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.progress.AnimationManager$1

!ENTRY org.eclipse.core.jobs 2 2 2018-11-02 11:41:43.339

!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.console.ConsoleDropDownAction$2

!ENTRY org.eclipse.core.jobs 2 2 2018-11-02 11:41:43.339

!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.progress.ProgressViewUpdater$1

!ENTRY org.eclipse.core.jobs 2 2 2018-11-02 11:41:43.339

!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.console.ConsoleDropDownAction$2