Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-4232

Unknown entity: io.debezium.outbox.quarkus.internal.OutboxEvent

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Done
    • 1.8.0.Alpha1
    • 1.8.0.Beta1
    • outbox
    • None
    • Hide

      Update pom.xml to use 

       
      <dependency>
          <groupId>io.debezium</groupId>
          <artifactId>debezium-quarkus-outbox</artifactId>
          <version>1.8.0.Alpha1</version>
      </dependency>
       
      Additional pom.xml properties:
       
      <properties>
      <compiler-plugin.version>3.8.1</compiler-plugin.version>
      <maven.compiler.parameters>true</maven.compiler.parameters>
      <maven.compiler.source>11</maven.compiler.source>
      <maven.compiler.target>11</maven.compiler.target>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
      <quarkus-plugin.version>2.2.3.Final</quarkus-plugin.version>
      <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
      <quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
      <quarkus.platform.version>2.2.3.Final</quarkus.platform.version>
      <surefire-plugin.version>3.0.0-M5</surefire-plugin.version>
      </properties>
       

      Show
      Update pom.xml to use    <dependency>     <groupId>io.debezium</groupId>     <artifactId>debezium-quarkus-outbox</artifactId>     <version>1.8.0.Alpha1</version> </dependency>   Additional pom.xml properties:   <properties> <compiler-plugin.version>3.8.1</compiler-plugin.version> <maven.compiler.parameters>true</maven.compiler.parameters> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <quarkus-plugin.version>2.2.3.Final</quarkus-plugin.version> <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id> <quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id> <quarkus.platform.version>2.2.3.Final</quarkus.platform.version> <surefire-plugin.version>3.0.0-M5</surefire-plugin.version> </properties>  

    Description

      Hi Support,

      The same Quarkus outbox code base works fine on version 1.7.0.Final but not 1.8.0.Alpha1

      The following is the error:

      2021-11-03 10:26:00,741 ERROR [blo.bra.opa.cas.CasaResource] (executor-thread-0) Error creating the Casa record in database.: org.hibernate.MappingException: Unknown entity: io.debezium.outbox.quarkus.internal.OutboxEvent
      at org.hibernate.metamodel.internal.MetamodelImpl.entityPersister(MetamodelImpl.java:704)
      at org.hibernate.internal.SessionImpl.getEntityPersister(SessionImpl.java:1646)
      at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:114)
      at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:194)
      at org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:38)
      at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:179)
      at org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:32)
      at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:75)
      at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:107)
      at org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:665)
      at org.hibernate.internal.SessionImpl.save(SessionImpl.java:658)
      at io.quarkus.hibernate.orm.runtime.session.TransactionScopedSession.save(TransactionScopedSession.java:732)
      at io.quarkus.hibernate.orm.runtime.session.ForwardingSession.save(ForwardingSession.java:433)
      at io.debezium.outbox.quarkus.internal.AbstractEventDispatcher.persist(AbstractEventDispatcher.java:50)
      at io.debezium.outbox.quarkus.internal.DefaultEventDispatcher_Subclass.persist$$superforward1(DefaultEventDispatcher_Subclass.zig:180)
      at io.debezium.outbox.quarkus.internal.DefaultEventDispatcher_Subclass$$function$$3.apply(DefaultEventDispatcher_Subclass$$function$$3.zig:33)
      at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
      at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.proceed(InvocationInterceptor.java:62)
      at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.monitor(InvocationInterceptor.java:49)
      at io.quarkus.arc.runtime.devconsole.InvocationInterceptor_Bean.intercept(InvocationInterceptor_Bean.zig:521)
      at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
      at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:41)
      at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:32)
      at io.debezium.outbox.quarkus.internal.DefaultEventDispatcher_Subclass.persist(DefaultEventDispatcher_Subclass.zig:427)
      at io.debezium.outbox.quarkus.internal.DefaultEventDispatcher.onExportedEvent(DefaultEventDispatcher.java:31)
      at io.debezium.outbox.quarkus.internal.DefaultEventDispatcher_Subclass.onExportedEvent$$superforward1(DefaultEventDispatcher_Subclass.zig:165)
      at io.debezium.outbox.quarkus.internal.DefaultEventDispatcher_Subclass$$function$$2.apply(DefaultEventDispatcher_Subclass$$function$$2.zig:33)
      at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
      at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.proceed(InvocationInterceptor.java:62)
      at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.monitor(InvocationInterceptor.java:49)
      at io.quarkus.arc.runtime.devconsole.InvocationInterceptor_Bean.intercept(InvocationInterceptor_Bean.zig:521)
      at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
      at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:41)
      at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:32)
      at io.debezium.outbox.quarkus.internal.DefaultEventDispatcher_Subclass.onExportedEvent(DefaultEventDispatcher_Subclass.zig:336)
      at io.debezium.outbox.quarkus.internal.DefaultEventDispatcher_Observer_onExportedEvent_47c43944b4c6bd3b6fd839d543b54587c6c5e6a8.notify(DefaultEventDispatcher_Observer_onExportedEvent_47c43944b4c6bd3b6fd839d543b54587c6c5e6a8.zig:196)
      at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:307)
      at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:285)
      at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:70)
      at blog.braindose.opay.casa.CasaResource.add(CasaResource.java:59)
      at blog.braindose.opay.casa.CasaResource_Subclass.add$$superforward1(CasaResource_Subclass.zig:223)
      at blog.braindose.opay.casa.CasaResource_Subclass$$function$$1.apply(CasaResource_Subclass$$function$$1.zig:33)
      at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
      at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.proceed(InvocationInterceptor.java:62)
      at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.monitor(InvocationInterceptor.java:49)
      at io.quarkus.arc.runtime.devconsole.InvocationInterceptor_Bean.intercept(InvocationInterceptor_Bean.zig:521)
      at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
      at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:50)
      at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorBase.invokeInOurTx(TransactionalInterceptorBase.java:132)
      at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorBase.invokeInOurTx(TransactionalInterceptorBase.java:103)
      at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorRequired.doIntercept(TransactionalInterceptorRequired.java:38)
      at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorBase.intercept(TransactionalInterceptorBase.java:57)
      at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorRequired.intercept(TransactionalInterceptorRequired.java:32)
      at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorRequired_Bean.intercept(TransactionalInterceptorRequired_Bean.zig:340)
      at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
      at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:41)
      at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:32)
      at blog.braindose.opay.casa.CasaResource_Subclass.add(CasaResource_Subclass.zig:316)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:170)
      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:130)
      at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:660)
      at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:524)
      at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:474)
      at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
      at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:476)
      at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:434)
      at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:408)
      at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:69)
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:492)
      at org.jboss.resteasy.core.Synchronouher.lambda$invoke$4(SynchronousDispatcher.java:261)
      at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161)
      at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
      at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164)
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247)
      at io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:73)
      at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:138)
      at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:93)
      at io.quarkus.vertx.core.runtime.VertxCoreRecorder$13.runWith(VertxCoreRecorder.java:543)
      at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
      at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
      at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
      at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
      at java.base/java.lang.Thread.run(Thread.java:834) 

      Attachments

        Activity

          People

            ccranfor@redhat.com Chris Cranford
            chgan@redhat.com Cheng Kuan Gan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: