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]: Fake Data throws NoSuchMethodException for some types #3116

Closed
matthewtckr opened this issue Jul 27, 2023 · 0 comments
Closed

[Bug]: Fake Data throws NoSuchMethodException for some types #3116

matthewtckr opened this issue Jul 27, 2023 · 0 comments
Assignees
Labels
bug P2 Default Priority Transforms
Milestone

Comments

@matthewtckr
Copy link

matthewtckr commented Jul 27, 2023

Apache Hop version?

2.5.0

Java version?

OpenJDK 64-Bit Server VM Temurin-11.0.20+8 (build 11.0.20+8, mixed mode)

Operating system

macOS

What happened?

When running a simple transformation using the Fake Data transform, a NoSuchMethodException is thrown during execution if certain Fake Data Types are configured in the transform.

This happens when Color, DateAndTime, Elder, or Relationships are selected as the fake types.

Root cause: HopException: 
We failed to initialize at least one transform.  Execution can not begin!
2023/07/27 15:03:07 - Hop - Projects enabled
2023/07/27 15:03:07 - Hop - Enabling project : 'default'
2023/07/27 15:15:57 - Hop - Processing of pipeline stopped.
2023/07/27 17:33:13 - fake_data_broken - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
2023/07/27 17:33:13 - fake_data_broken - Execution started for pipeline [fake_data_broken]
2023/07/27 17:33:13 - Fake data.0 - ERROR: Error getting faker object or method for type DateAndTime and topic birthday
2023/07/27 17:33:13 - Fake data.0 - ERROR: java.lang.NoSuchMethodException: com.github.javafaker.Faker.dateAndTime()
2023/07/27 17:33:13 - Fake data.0 - 	at java.base/java.lang.Class.getMethod(Class.java:2108)
2023/07/27 17:33:13 - Fake data.0 - 	at org.apache.hop.pipeline.transforms.fake.Fake.init(Fake.java:62)
2023/07/27 17:33:13 - Fake data.0 - 	at org.apache.hop.pipeline.transform.TransformInitThread.run(TransformInitThread.java:66)
2023/07/27 17:33:13 - Fake data.0 - 	at java.base/java.lang.Thread.run(Thread.java:829)
2023/07/27 17:33:13 - Fake data.0 - ERROR: Error initializing transform [Fake data]
2023/07/27 17:33:13 - fake_data_broken - ERROR: Transform [Fake data.0] failed to initialize!

Issue Priority

Priority: 2

Issue Component

Component: Transforms

@github-actions github-actions bot added P2 Default Priority Transforms and removed awaiting triage labels Jul 27, 2023
hansva added a commit that referenced this issue Jul 28, 2023
#3116: Fake Data throws NoSuchMethodException for some types
@hansva hansva added this to the 2.6 milestone Jul 28, 2023
@hansva hansva closed this as completed Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P2 Default Priority Transforms
Projects
None yet
Development

No branches or pull requests

2 participants