Skip to content

ClassCastException with MapsId, EmbeddedId, and many-to-one #2284

@DavideD

Description

@DavideD

From quarkus: quarkusio/quarkus#48033

Error:

class org.hibernate.sql.results.graph.embeddable.internal.EmbeddableInitializerImpl cannot be cast to class org.hibernate.reactive.sql.results.graph.ReactiveInitializer (org.hibernate.sql.results.graph.embeddable.internal.EmbeddableInitializerImpl and org.hibernate.reactive.sql.results.graph.ReactiveInitializer are in unnamed module of loader 'app')
java.lang.ClassCastException: class org.hibernate.sql.results.graph.embeddable.internal.EmbeddableInitializerImpl cannot be cast to class org.hibernate.reactive.sql.results.graph.ReactiveInitializer (org.hibernate.sql.results.graph.embeddable.internal.EmbeddableInitializerImpl and org.hibernate.reactive.sql.results.graph.ReactiveInitializer are in unnamed module of loader 'app')
	at org.hibernate.reactive.sql.results.graph.embeddable.internal.ReactiveEmbeddableInitializerImpl.lambda$forEachReactiveSubInitializer$0(ReactiveEmbeddableInitializerImpl.java:85)
	at org.hibernate.reactive.util.impl.CompletionStages.lambda$loop$3(CompletionStages.java:195)
	at org.hibernate.reactive.util.impl.CompletionStages.lambda$loop$8(CompletionStages.java:483)
	at org.hibernate.reactive.util.impl.CompletionStages$ArrayLoop.next(CompletionStages.java:557)
	at org.hibernate.reactive.util.async.impl.AsyncTrampoline.lambda$asyncWhile$1(AsyncTrampoline.java:215)
	at org.hibernate.reactive.util.async.impl.AsyncTrampoline$TrampolineInternal.unroll(AsyncTrampoline.java:121)
	at org.hibernate.reactive.util.async.impl.AsyncTrampoline$TrampolineInternal.trampoline(AsyncTrampoline.java:102)
	at org.hibernate.reactive.util.async.impl.AsyncTrampoline.asyncWhile(AsyncTrampoline.java:197)

I've adapated the original Quarkus test for Hibernate Reactive here: DavideD@13509e6

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquarkusThe issue links an issue in Quarkus

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions