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]: No more project reload after env change #3169

Closed
enricomariam42 opened this issue Aug 24, 2023 · 3 comments
Closed

[Bug]: No more project reload after env change #3169

enricomariam42 opened this issue Aug 24, 2023 · 3 comments
Assignees
Labels
bug Hop Gui P1 Critical Issue
Milestone

Comments

@enricomariam42
Copy link
Contributor

Apache Hop version?

2.6.0-20230818.084735-1

Java version?

openjdk 11.0.9.1 2020-11-04

Operating system

Linux

What happened?

There is no more alert after changing the env properties and the variables are not updated anymore.
The log report the error:

GUI - ERROR: Unable to call method editSelectedEnvironment in class org.apache.hop.projects.gui.ProjectsGuiPlugin : null

Issue Priority

Priority: 2

Issue Component

Component: Hop Gui

@github-actions github-actions bot added P2 Default Priority Hop Gui labels Aug 24, 2023
@sramazzina sramazzina self-assigned this Aug 31, 2023
@mattcasters mattcasters added P1 Critical Issue and removed awaiting triage P2 Default Priority labels Nov 14, 2023
@mattcasters mattcasters self-assigned this Nov 14, 2023
@mattcasters
Copy link
Contributor

Confirmed. Are you working on this @sramazzina ?

@mattcasters
Copy link
Contributor

ProjectsGuiPlugin:576 : hopGui.getDisplay().getActiveShell() is null so the error dialog doesn't pop up.

Original error comes from:

java.lang.IllegalArgumentException: Argument cannot be null
at org.eclipse.swt.SWT.error(SWT.java:4899)
at org.eclipse.swt.SWT.error(SWT.java:4833)
at org.eclipse.swt.SWT.error(SWT.java:4804)
at org.eclipse.swt.widgets.Dialog.error(Dialog.java:202)
at org.eclipse.swt.widgets.Dialog.checkParent(Dialog.java:168)
at org.eclipse.swt.widgets.Dialog.<init>(Dialog.java:131)
at org.apache.hop.ui.core.dialog.MessageBox.<init>(MessageBox.java:59)
at org.apache.hop.projects.gui.ProjectsGuiPlugin.askAboutProjectRefresh(ProjectsGuiPlugin.java:181)
at org.apache.hop.projects.gui.ProjectsGuiPlugin.editEnvironment(ProjectsGuiPlugin.java:569)
at org.apache.hop.projects.gui.ProjectsGuiPlugin.editSelectedEnvironment(ProjectsGuiPlugin.java:636)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.hop.ui.core.gui.BaseGuiWidgets.lambda$getListener$1(BaseGuiWidgets.java:216)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5855)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1529)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5065)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4517)
at org.apache.hop.ui.hopgui.HopGui.open(HopGui.java:473)
at org.apache.hop.ui.hopgui.HopGui.main(HopGui.java:351)

so ProjectsGuiPlugin, again hopGui.getDisplay().getActiveShell().

Broken by #2944, needs to be hardened or code reverted.

@sramazzina
Copy link
Contributor

No @mattcasters I was very busy during last 2 months. Starting to work on the issues from this week but I'm more than hapy to leva this issue to you :-)

@sramazzina sramazzina removed their assignment Nov 14, 2023
@mattcasters mattcasters added this to the 2.7 milestone Nov 15, 2023
hansva added a commit that referenced this issue Nov 16, 2023
Fix for issues: #3169 : No more project reload after env change
@hansva hansva closed this as completed Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Hop Gui P1 Critical Issue
Projects
None yet
Development

No branches or pull requests

4 participants