Page tree
Skip to end of metadata
Go to start of metadata

I'm not able to execute an Odysseus script. The execute script button is disabled or I get a NotEnabledException.

In the case you have opened a Odysseus script and the button for executing the script is disabled (the 5th button from the left in the following picture), check if you have opened the script with the Odysseus Script Editor.

Execute Script button is disabled. 

If you are able to execute the script in spite of the wrong editor, probably the following exception is raised:

!ENTRY org.eclipse.ui 4 4 2014-06-10 11:01:36.782
!MESSAGE Failed to execute item
org.eclipse.core.commands.NotEnabledException: Trying to execute the disabled command
at org.eclipse.core.commands.Command.executeWithChecks(
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(
at org.eclipse.ui.menus.CommandContributionItem.access$19(
at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.ui.internal.Workbench.runEventLoop(
at org.eclipse.ui.internal.Workbench.runUI(
at org.eclipse.ui.internal.Workbench.access$4(
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(

Display problems on Linux

If you encounter any display problems using Odysseus on Linux it might be a problem with GTK3 (especially with Wayland). You typically get a lot of messages such as

Gtk-WARNING **: Allocating size to GtkToolbar 0x7fbc150431b0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

Try changing the launcher GTK version to 2 in the studio.ini file:

--launcher.GTK_version 2

Alternatively you can start Odysseus via the console. Move into the Odysseus directory and type

export SWT_GTK3=0


If you are developing with Odysseus, you can also define this variable in Eclipse. Just go to you debug or run configurations and then into the tab "Environment" and add "SWT_GTK3" with the value "0".

  • No labels