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]: An error occurs when using "Split JSON after n rows" in json output #3871

Closed
bykhovets opened this issue Apr 26, 2024 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@bykhovets
Copy link

Apache Hop version?

2.7

Java version?

20.0.2

Operating system

Windows

What happened?

An error occurs when using "Split JSON after n rows" in json output:

024/04/26 14:13:14 - JSON Output.0 - ERROR: Unexpected error
2024/04/26 14:13:14 - JSON Output.0 - ERROR: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
2024/04/26 14:13:14 - JSON Output.0 - at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
2024/04/26 14:13:14 - JSON Output.0 - at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
2024/04/26 14:13:14 - JSON Output.0 - at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
2024/04/26 14:13:14 - JSON Output.0 - at java.base/java.util.Objects.checkIndex(Objects.java:385)
2024/04/26 14:13:14 - JSON Output.0 - at java.base/java.util.ArrayList.get(ArrayList.java:427)
2024/04/26 14:13:14 - JSON Output.0 - at org.apache.hop.pipeline.transforms.jsonoutputenhanced.JsonOutput.serializeJson(JsonOutput.java:423)
2024/04/26 14:13:14 - JSON Output.0 - at org.apache.hop.pipeline.transforms.jsonoutputenhanced.JsonOutput.manageRowItems(JsonOutput.java:281)
2024/04/26 14:13:14 - JSON Output.0 - at org.apache.hop.pipeline.transforms.jsonoutputenhanced.JsonOutput.processRow(JsonOutput.java:122)
2024/04/26 14:13:14 - JSON Output.0 - at org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:55)
2024/04/26 14:13:14 - JSON Output.0 - at java.base/java.lang.Thread.run(Thread.java:1623)

Issue Priority

Priority: 1

Issue Component

Component: Pipelines, Component: Other

@bamaer
Copy link
Contributor

bamaer commented Apr 26, 2024

.take-issue

@github-actions github-actions bot added this to the 2.9 milestone Apr 26, 2024
@hansva hansva closed this as completed in b77bbe6 May 7, 2024
hansva added a commit that referenced this issue May 7, 2024
fix for split files in json output enhanced. fixes #3871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants