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]: NullPointerException in workflow executor #2840

Closed
liosc opened this issue Apr 21, 2023 · 0 comments · Fixed by #2875
Closed

[Bug]: NullPointerException in workflow executor #2840

liosc opened this issue Apr 21, 2023 · 0 comments · Fixed by #2875
Assignees
Labels
Milestone

Comments

@liosc
Copy link

liosc commented Apr 21, 2023

Apache Hop version?

2.5.0-SNAPSHOT (2023-04-13 07.35.03)

Java version?

11.0.15

Operating system

Windows

What happened?

When a pipeline called by the Workflow executor does not give back any rows, a NullPointerException exception occurs. This happens when in the Workflow executor there is at least one field in the result rows tab.
Here attached an example with:

  1. the pipeline using a Workflow executor
  2. the workflow called by the pipeline
  3. the pipeline called by the workflow
    In the Workflow executor there is a parameter that you can set to have three different scenarios. Here the parameter values and what happens:
    -> 0. The called pipeline gives back a row with the right stream metadata. No errors occur.
    -> 1. The called pipeline gives back no rows. NullPointerException error occurs. In this case the transform should not raise any error
    -> 2. The called pipeline gives back a row but with wrong stream metadata (in this example a missing field). Same NullPointerException error occurs. In this case could be OK to raise an error but it should be handled to have a meaningful message, possibly specifying where the metadata are incongruent (similar to what the GUI highlights when you create a second hop in input to the same transform using different streams).
    wf_executor_nullpointer.zip

Issue Priority

Priority: 1

Issue Component

Component: Transforms

@github-actions github-actions bot added P1 Critical Issue Transforms labels Apr 21, 2023
@sramazzina sramazzina self-assigned this Apr 27, 2023
sramazzina added a commit to sramazzina/hop that referenced this issue Apr 27, 2023
@sramazzina sramazzina mentioned this issue Apr 27, 2023
5 tasks
hansva added a commit that referenced this issue Apr 28, 2023
@hansva hansva added this to the 2.5 milestone Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants