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

spline kafka trust packages #1282

Closed
jutexiansen opened this issue Oct 24, 2023 · 3 comments
Closed

spline kafka trust packages #1282

jutexiansen opened this issue Oct 24, 2023 · 3 comments

Comments

@jutexiansen
Copy link

jutexiansen commented Oct 24, 2023

Background

I use helm to deploy spline and spline-kafka-server

Question

A clear and concise inquiry

When I started spine-kafka, I encountered the following error. I found that spring.kafka.consumer.properties.spring.deserializer.trusted.packages is a parameter of spinrg-kafka, which cannot be achieved by configuring env.

06:20:56.136 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] ERROR o.s.k.listener.LoggingErrorHandler - Error while processing: ConsumerRecord(topic = spline_test, partition = 2, leaderEpoch = 0, offset = 32, CreateTime = 1698127625117, serialized key size = 36, serialized value size = 63928, headers = RecordHeaders(headers = [RecordHeader(key = ABSA-Spline-API-Version, value = [49, 46, 50]), RecordHeader(key = ABSA-Spline-Entity-Type, value = [69, 120, 101, 99, 117, 116, 105, 111, 110, 80, 108, 97, 110]), RecordHeader(key = TypeId, value = [69, 120, 101, 99, 117, 116, 105, 111, 110, 80, 108, 97, 110, 95, 49, 46, 50])], isReadOnly = false), key = d065120e-9b33-57d3-b501-ab72332d2fed, value = [B@76955692)

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener failed; nested exception is java.lang.IllegalArgumentException: The class 'ExecutionPlan_1.2' is not in the trusted packages: [java.util, java.lang]. If you believe this class is safe to deserialize, please provide its name. If the serialization is only done by a trusted source, you can also enable trust all (*).

@cerveada cerveada added this to Spline Oct 24, 2023
@github-project-automation github-project-automation bot moved this to New in Spline Oct 24, 2023
@cerveada
Copy link
Contributor

What is the version of spline-kafka that you use?

@ganeshkumar269
Copy link

I am facing the same issue, using spark-spline-agent:2.0.0 , kafka-gateway:0.7.8

@cerveada
Copy link
Contributor

cerveada commented Jan 8, 2024

Closing, since it is duplicate of #1297 and it has better description of the issue.

@cerveada cerveada closed this as completed Jan 8, 2024
@github-project-automation github-project-automation bot moved this from New to Done in Spline Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants