Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: HOP WEB UI Server Error Application Terminated Unexpectedly #2801

Closed
kirana-ks opened this issue Apr 3, 2023 · 9 comments
Closed
Labels
bug Hop Web P2 Default Priority
Milestone

Comments

@kirana-ks
Copy link

kirana-ks commented Apr 3, 2023

Apache Hop version?

2.4.0

Java version?

11.0.14

Operating system

Docker

What happened?

While using HOP web (HOP 2.4) when we try to update the steps i.e in the table input step, update the SQL query and try to save the changes we are frequently facing the "server error application terminated unexpectedly" issue.

Installation details:

  • Docker install on Ubuntu.
  • Install: Pull the latest build with: docker pull apache/hop-web Via docker.compose.yml
    {
    version: '3.7'
    services:
    hop-server:
    image: apache/hop:latest
    ports:
    • "8080:8080"
      volumes:
      - hop-server-data:/home/hop/data
      environment:
      - HOP_LOG_LEVEL=BASIC
      restart: always
      hop-web:
      image: apache/hop-web:latest
      ports:
      - "8088:8080"
      volumes:
      - hop-web-data:/home/hop/.hop
      environment:
      - HOP_SERVER_HOSTNAME=hop-server
      - HOP_SERVER_PORT=8080
      - HOP_LOG_LEVEL=BASIC
      restart: always
      volumes:
      hop-server-data:
      hop-web-data:
      }
  • Run: Start Hop Web with $ docker-compose up --build

Reproduction Steps:-

  1. Open HOP Web 2.4 via Chrome
  2. Open Table input step in a existing Pipeline.
  3. Modify the existing query in the table input step.
  4. Save the pipeline.

We get the "server error application terminated unexpectedly" issue.

Please refer the log file for more detailed logs.

localhost.2023-04-03.log
localhost_access_log.2023-04-03.txt
HOP Server Error

However, on the HOP GUI tool it works fine without error.

Issue Priority

Priority: 2

Issue Component

Component: Hop Web

@bamaer
Copy link
Contributor

bamaer commented Apr 7, 2023

I just tried to reproduce with the steps you describe, but this seems to work correctly.

You mention changing the query in a table input transform triggers the error, but your screenshot shows the metadata perspective, and the stacktraces in the localhost.2023-04-03.log file you added point to (a keystroke event in) the explorer perspective.

The error is there, we'll just need to work out a clear reproduction path. Can you please provide some more details on how/when you get this error?

03-Apr-2023 07:28:04.574 SEVERE [http-nio-8080-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [HopGui] in context with path [] threw exception
	org.eclipse.swt.SWTException: Widget is disposed
		at org.eclipse.swt.SWT.error(SWT.java:3753)
		at org.eclipse.swt.SWT.error(SWT.java:3676)
		at org.eclipse.swt.SWT.error(SWT.java:3647)
		at org.eclipse.swt.widgets.Widget.error(Widget.java:1018)
		at org.eclipse.swt.widgets.Widget.getDisplay(Widget.java:397)
		at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java:972)
		at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:955)
		at org.eclipse.swt.widgets.ToolBar.getItems(ToolBar.java:207)
		at org.apache.hop.ui.hopgui.HopGui.isActivePerspective(HopGui.java:1598)
		at org.apache.hop.ui.hopgui.perspective.explorer.ExplorerPerspective.isActive(ExplorerPerspective.java:230)
		at org.apache.hop.ui.hopgui.HopGuiKeyHandler.handleKey(HopGuiKeyHandler.java:104)
		at org.apache.hop.ui.hopgui.HopGuiKeyHandler.keyPressed(HopGuiKeyHandler.java:74)
		at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:190)
		at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:109)
		at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:687)
		at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:594)
		at org.eclipse.swt.widgets.Display.executeNextEvent(Display.java:1216)
		at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1197)
		at org.eclipse.swt.widgets.Display.safeReadAndDispatch(Display.java:1180)
		at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1172)
		at org.eclipse.rap.rwt.application.AbstractEntryPoint.createUI(AbstractEntryPoint.java:69)
		at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
		at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:290)
		at java.base/java.lang.Thread.run(Thread.java:829)
		at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:107)``` 

@hansva
Copy link
Contributor

hansva commented Apr 19, 2023

No response from the user, closing this ticket.

@hansva hansva closed this as completed Apr 19, 2023
@hansva hansva added this to the Not Applicable milestone Apr 19, 2023
@hungnguyen259195
Copy link

Hop web is crashes when I press Ctrl.

@hansva hansva reopened this May 22, 2023
@hansva
Copy link
Contributor

hansva commented May 22, 2023

I can reproduce the issue now, change a pipeline so it is in a state that the save button is active and then press ctrl.

@hungnguyen259195
Copy link

hungnguyen259195 commented May 22, 2023

When using Hop web, I press Ctrl (Ctrl C/Ctrl V/Ctrl S/Ctrl), application crashes.
I get the same issue when create and save pipeline, workflow (Ctrl S); when I click Search
3 and type any key.

When I press Ctrl/Ctrl S:
4
2

When I click Search button and type any key:
5

@phamhuyhoang97
Copy link

Any update here @bamaer, @hansva? I pull the latest image (2.6.0-SNAPSHOT) and 2.5.0 for the hop web, but both get the same error. To reproduce:

  1. I docker run the image
  2. Go to the web page on localhost:8080
  3. Refresh the web page
  4. Press the Ctrl button on the keyboard
    => The web page shows the msg "Server Error", and the error keeps going until I recreate the docker container.

Even when I try the demo server, it gets the same.
image

@bamaer
Copy link
Contributor

bamaer commented Jul 9, 2023

we'll look into this for 2.6.0.
gentle reminder: priorities are defined by what Apache Hop developers need, want to work on it are paid to work on.
software has bugs, and fixing bugs takes time.

@phamhuyhoang97
Copy link

Thank you @bamaer, hope it can be done in 2.6.0.

@vutiendung
Copy link
Contributor

Hi guys,

I have encoutered this issue and here is my temporary solution to fix that issue.

In the file ui/src/main/java/org/apache/hop/ui/hopgui/HopGuiKeyHandler.java
The function: handleKey
I have wrapped the the code into the try catch block

// If this is attached to a perspective, and it's not active, bail out.
    if (parentObject instanceof IHopPerspective) {
      IHopPerspective perspective = (IHopPerspective) parentObject;
      try {
        if (!perspective.isActive()) {
          return false;
        }
      } catch (Exception ex) {
        return false;
      }
    }

Hope this can make your day.

vutiendung added a commit to vutiendung/hop that referenced this issue Nov 4, 2023
Fix issue apache#2801 crash the web when enter any keys
@hansva hansva modified the milestones: Not Applicable, 2.7, 2.8 Nov 17, 2023
@hansva hansva closed this as completed Feb 12, 2024
@hansva hansva reopened this Feb 12, 2024
@hansva hansva closed this as completed Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Hop Web P2 Default Priority
Projects
None yet
Development

No branches or pull requests

6 participants