Skip to content

Provide better error message on missing @ControllerConfiguration annotation #1183

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

Closed
csviri opened this issue Apr 27, 2022 · 0 comments · Fixed by #1190
Closed

Provide better error message on missing @ControllerConfiguration annotation #1183

csviri opened this issue Apr 27, 2022 · 0 comments · Fixed by #1190
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@csviri
Copy link
Collaborator

csviri commented Apr 27, 2022

Currently there is quite cryptic exception:

Exception in thread "main" java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class [Ljava.lang.Class; ([Ljava.lang.Object; and [Ljava.lang.Class; are in module java.base of loader 'bootstrap')
	at io.javaoperatorsdk.operator.api.config.AnnotationControllerConfiguration.getEventFilter(AnnotationControllerConfiguration.java:95)
	at io.javaoperatorsdk.operator.processing.event.source.controller.ControllerResourceEventSource.<init>(ControllerResourceEventSource.java:42)
	at io.javaoperatorsdk.operator.processing.event.EventSources.initControllerEventSource(EventSources.java:26)
	at io.javaoperatorsdk.operator.processing.event.EventSourceManager.<init>(EventSourceManager.java:44)
	at io.javaoperatorsdk.operator.processing.Controller.<init>(Controller.java:73)
	at io.javaoperatorsdk.operator.Operator.register(Operator.java:164)
	at io.javaoperatorsdk.operator.Operator.register(Operator.java:136)
	at io.javaoperatorsdk.operator.sample.presentation.Runner.main(Runner.java:12)
@csviri csviri added the kind/feature Categorizes issue or PR as related to a new feature. label Apr 27, 2022
@csviri csviri self-assigned this Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
1 participant