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]: Calling for decrypt class while using encrypt PGP transform in pipeline #4621

Closed
meddhiakassab opened this issue Nov 25, 2024 · 0 comments · Fixed by #4622
Closed
Assignees
Labels
Milestone

Comments

@meddhiakassab
Copy link

Apache Hop version?

2.10

Java version?

21

Operating system

Windows

What happened?

I’m about to use the GPG encryption transform. I imported the public key but am unsure about the field name, so I just used the email address as the key name. However, when executing the pipeline, I always encounter an exception in the logs.

I noticed that the script is calling the decryption constructor, but it should not be doing that.

image

image

2024/11/25 14:37:06 - crypto -  Pipeline is about to allocate transform [PGP encrypt stream] of type [PGPEncryptStream]
Exception in thread "Thread-13" java.lang.RuntimeException: Error create instance of transform: org.apache.hop.pipeline.transforms.pgpencryptstream.PGPEncryptStreamMeta
        at org.apache.hop.pipeline.transform.BaseTransformMeta.createTransform(BaseTransformMeta.java:118)
        at org.apache.hop.pipeline.Pipeline.prepareExecution(Pipeline.java:826)
        at org.apache.hop.pipeline.engines.local.LocalPipelineEngine.prepareExecution(LocalPipelineEngine.java:231)
        at org.apache.hop.ui.hopgui.file.pipeline.HopGuiPipelineGraph.lambda$preparePipeline$15(HopGuiPipelineGraph.java:4530)
        at java.base/java.lang.Thread.run(Thread.java:1575)
Caused by: java.lang.NoSuchMethodException: org.apache.hop.pipeline.transforms.pgpdecryptstream.PGPDecryptStream.<init>(org.apache.hop.pipeline.transform.TransformMeta,org.apache.hop.pipeline.transforms.pgpencryptstream.PGPEncryptStreamMeta,org.apache.hop.pipeline.transforms.pgpencryptstream.PGPEncryptStreamData,int,org.apache.hop.pipeline.PipelineMeta,org.apache.hop.pipeline.Pipeline)
        at java.base/java.lang.Class.getConstructor0(Class.java:3833)
        at java.base/java.lang.Class.getConstructor(Class.java:2501)
        at org.apache.hop.pipeline.transform.BaseTransformMeta.createTransform(BaseTransformMeta.java:105)
        ... 4 more

Issue Priority

Priority: 3

Issue Component

Component: Hop Gui

@github-actions github-actions bot added P3 Nice to have Hop Gui labels Nov 25, 2024
@nadment nadment self-assigned this Nov 25, 2024
@nadment nadment added this to the 2.11 milestone Nov 25, 2024
nadment added a commit to nadment/hop that referenced this issue Nov 25, 2024
@nadment nadment linked a pull request Nov 25, 2024 that will close this issue
nadment added a commit to nadment/hop that referenced this issue Nov 25, 2024
hansva added a commit that referenced this issue Nov 27, 2024
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.

2 participants