You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by "samdai (via GitHub)" <gi...@apache.org> on 2025/05/05 02:02:56 UTC

[D] How to resolve swt issue when start Apache Hop Web in local machine? (hop)

GitHub user samdai created a discussion: How to resolve swt issue when start Apache Hop Web in local machine?

I deployed Apache Hop Web in local tomcat server,  the operation system of my local machine is MacOS, after tomcat is started, when I access http://localhost:8080/ui, there is error as below:
`javax.servlet.ServletException: Servlet execution threw an exception
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
Root Cause

java.lang.NoSuchMethodError: 'org.eclipse.swt.graphics.Point org.eclipse.swt.graphics.GC.textExtent(java.lang.String, int)'
	org.apache.hop.ui.hopgui.TextSizeUtilFacadeImpl.textExtentInternal(TextSizeUtilFacadeImpl.java:32)
	org.apache.hop.ui.hopgui.TextSizeUtilFacade.textExtent(TextSizeUtilFacade.java:30)
	org.apache.hop.ui.core.gui.GuiToolbarWidgets.calculateComboWidth(GuiToolbarWidgets.java:383)
	org.apache.hop.ui.core.gui.GuiToolbarWidgets.addToolbarCombo(GuiToolbarWidgets.java:240)
	org.apache.hop.ui.core.gui.GuiToolbarWidgets.addToolbarWidgets(GuiToolbarWidgets.java:198)
	org.apache.hop.ui.core.gui.GuiToolbarWidgets.createToolbarWidgets(GuiToolbarWidgets.java:98)
	org.apache.hop.ui.hopgui.HopGui.addMainToolbar(HopGui.java:1204)
	org.apache.hop.ui.hopgui.HopGui.open(HopGui.java:409)
	org.apache.hop.ui.hopgui.HopWebEntryPoint.createContents(HopWebEntryPoint.java:70)
	org.eclipse.rap.rwt.application.AbstractEntryPoint.createUI(AbstractEntryPoint.java:60)
	org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
	org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:290)
	java.base/java.lang.Thread.run(Thread.java:840)
	org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:107)`

For the swt jar, there is "org.eclipse.rap.rwt-3.21.0.jar" under webapps/ROOT/WEB-INF/lib, and there isn't desktop version of SWT. is there solution for this issue?  thanks.

GitHub link: https://github.com/apache/hop/discussions/5254

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] How to resolve swt issue when start Apache Hop Web in local machine? (hop)

Posted by "samdai (via GitHub)" <gi...@apache.org>.
GitHub user samdai added a comment to the discussion: How to resolve swt issue when start Apache Hop Web in local machine?

After I deleted this jar "${CATALINA_HOME}"/webapps/ROOT/WEB-INF/lib/hop-ui-rcp-2.13.0.jar,  the above issue is gone, but when I started a pipeline, got the below error:
`org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoSuchMethodError: 'int org.eclipse.swt.widgets.Text.getLineCount()')
	org.eclipse.swt.SWT.error(SWT.java:3753)
	org.eclipse.swt.SWT.error(SWT.java:3676)
	org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:200)
	org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1200)
	org.eclipse.swt.widgets.Display.safeReadAndDispatch(Display.java:1180)
	org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1172)
	org.eclipse.rap.rwt.application.AbstractEntryPoint.createUI(AbstractEntryPoint.java:69)
	org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
	org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:290)
	java.base/java.lang.Thread.run(Thread.java:840)
	org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:107)
Root Cause

java.lang.NoSuchMethodError: 'int org.eclipse.swt.widgets.Text.getLineCount()'
	org.apache.hop.ui.hopgui.file.pipeline.HopGuiLogBrowser$1.lambda$run$0(HopGuiLogBrowser.java:157)
	org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:38)
	org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:193)
	org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1200)
	org.eclipse.swt.widgets.Display.safeReadAndDispatch(Display.java:1180)
	org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1172)
	org.eclipse.rap.rwt.application.AbstractEntryPoint.createUI(AbstractEntryPoint.java:69)
	org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
	org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:290)
	java.base/java.lang.Thread.run(Thread.java:840)
	org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:107)`

how to resolve this issue? thanks

GitHub link: https://github.com/apache/hop/discussions/5254#discussioncomment-13034701

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] How to resolve swt issue when start Apache Hop Web in local machine? (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
GitHub user hansva added a comment to the discussion: How to resolve swt issue when start Apache Hop Web in local machine?

There is a ticket for that second error https://github.com/apache/hop/issues/5224
`getLineCount` isn't implemented in RAP we have to add a check and disable that part of the code for the web editor.

GitHub link: https://github.com/apache/hop/discussions/5254#discussioncomment-13035665

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org