datahub
datahub copied to clipboard
protobuf error occurs on certain versions and above.
Describe the bug
If I run a jar file with v0.10.3 or later, an error occurs.
Exception in thread "main" java.lang.NoSuchMethodError: 'datahub.shaded.jackson.core.JsonFactory datahub.shaded.jackson.core.JsonFactory.setStreamReadConstraints(datahub.shaded.jackson.core.StreamReadConstraints)'
However, I run it with the v0.10.2 version of the jar and it works fine.
To Reproduce https://datahubspace.slack.com/archives/C02TYRDKCBD/p1687940673159259?thread_ts=1687940391.960039&cid=C02TYRDKCBD
Desktop (please complete the following information):
- OS: Mac OS
- Version: v0.10.3 or later
This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io
the smae thing happens in v0.10.5
This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io
Same issue with the version [0.11.0-1] and [0.11.0-2]. Using the Java package io.acryl:datahub-protobuf in a standalone project using Gradle (8.1.1).
Is this issue still unresolved?
Thanks for the detailed error report - we're looking into this issue!
We're dependent on Jackson 2.15+, you need to include this in your build. Will update the example. Versions prior to this are vulnerable to critical DoS CVEs.
@RyanHolstien I'm running into the same issue. Could you give an example of how to add this dep? Apparently this somehow needs to get added as a shadoJar? As someone not coming from the java world I'm struggling to get this running.
@hsheth2 @david-leifker any progress on this issue? I want to upgrade datahub-protobuf to the latest version but staying blocked by this
This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io
Is this issue in progress? @hsheth2 @david-leifker
I found the place where this problem occurred.
It seems that the error occurs when you call the setStreamReadConstraints function in the constructor part of the
EventFormatterhttps://github.com/datahub-project/datahub/blob/b0060cec27d09e69ce3913b6d5b8a7ea8dffde76/metadata-integration/java/datahub-client/src/main/java/datahub/event/EventFormatter.java#L35FileEmitter.javahttps://github.com/datahub-project/datahub/blob/b0060cec27d09e69ce3913b6d5b8a7ea8dffde76/metadata-integration/java/datahub-client/src/main/java/datahub/client/file/FileEmitter.java#L56RestEmitter.javahttps://github.com/datahub-project/datahub/blob/b0060cec27d09e69ce3913b6d5b8a7ea8dffde76/metadata-integration/java/datahub-client/src/main/java/datahub/client/rest/RestEmitter.java#L88
Is it possible to fix it? @hsheth2 @david-leifker
I've just encountered this issue with the v0.12.1 version of datahub-protobuf.
Version v0.10.2 seems to work fine.
This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io
This issue was closed because it has been inactive for 30 days since being marked as stale.