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

java.lang.ClassCastException #10

Open
altuga opened this issue Apr 6, 2021 · 1 comment
Open

java.lang.ClassCastException #10

altuga opened this issue Apr 6, 2021 · 1 comment

Comments

@altuga
Copy link

altuga commented Apr 6, 2021

Hello

I try to run SimpleProducer.java at Chapter 2
I got below exception

Caused by: java.lang.ClassCastException: class bbejeck.model.PurchaseKey cannot be cast to class java.lang.String (bbejeck.model.PurchaseKey is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap')

need to be fixed

Java version 11
Kafka version : kafka_2.13-2.7.0

@dotrungkien3210
Copy link

this code is wrong logic, i don't know why dev team can code that function without testing, chapter 3 and after that maybe good, but chapter 2 logic code like beginner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants