Skip to content

[Bug]: NullPointerException on pipelines with transforms receiving more than one flow in input #3056

@sramazzina

Description

@sramazzina

Apache Hop version?

2.5.0 and any previous version

Java version?

openjdk-11

Operating system

Linux

What happened?

We are experiencing a NullPointerException on pipelines where we have transforms that receives as input more than one flow.
Let me summarize below some of the point that could be interesting for our investigation:

  • The problem always happen when we have two flows as input of a transform.
  • The problem always happen at the very beginning of the processRow method and is always related to code where the getInputRow() method is involved in a complex inline instruction (like data.fieldnrs[i] = getInputRowMeta().indexOfValue(meta.getFieldName()[i]); or data.outputRowMeta = getInputRowMeta().clone();) and that method returns null
  • The problem randomly happens 2 or 3 times (lastly it is this way) per day sometimes or nothing at all for a long time then it apperas again

The fact that is a random problem makes it hard to reproduce and for this reason till now we were unable to catch it. We asked the customer some context data and we got the confirmation that the overall load of the server at the time of the issue is normal. The system isn't under severe stress

I post here some screenshots of the pipeline by putting in evidence the transforms that gives the issue

image

image

image

Issue Priority

Priority: 1

Issue Component

Component: Transforms

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions