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

Outbox Quarkus Extension throws NPE in quarkus:dev mode

    Details

      Description

      When using the quarkus outbox extension with quarkus:dev:

      2020-04-13 18:52:06,657 INFO  [org.jbo.threads] (main) JBoss Threads version 3.0.1.Final
      2020-04-13 18:52:06,794 INFO  [io.qua.sma.dep.processor] (build-10) Metric is disabled - vetoing the MetricDecorator
      2020-04-13 18:52:06,884 INFO  [io.deb.out.qua.dep.OutboxProcessor] (build-2) Found ExportedEvent type: shop.customer.event.UserCreatedEvent
      2020-04-13 18:52:06,884 INFO  [io.deb.out.qua.dep.OutboxProcessor] (build-2) Binding Aggregate Id as 'java.lang.String'.
      2020-04-13 18:52:06,884 INFO  [io.deb.out.qua.dep.OutboxProcessor] (build-2) Binding Payload as 'com.fasterxml.jackson.databind.JsonNode'.
      2020-04-13 18:52:07,097 INFO  [org.hib.Version] (build-26) HHH000412: Hibernate ORM core version 5.4.14.Final
      2020-04-13 18:52:08,158 INFO  [org.hib.Version] (main) HHH000412: Hibernate ORM core version 5.4.14.Final
      2020-04-13 18:52:08,177 INFO  [org.hib.ann.com.Version] (main) HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
      2020-04-13 18:52:08,229 INFO  [org.hib.dia.Dialect] (main) HHH000400: Using dialect: org.hibernate.dialect.MySQL57Dialect
      2020-04-13 18:52:08,431 ERROR [io.qua.dev.DevModeMain] (main) Failed to start Quarkus: java.lang.ExceptionInInitializerError
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:348)
          at io.quarkus.runner.bootstrap.StartupActionImpl.run(StartupActionImpl.java:83)
          at io.quarkus.dev.IsolatedDevModeMain.firstStart(IsolatedDevModeMain.java:60)
          at io.quarkus.dev.IsolatedDevModeMain.accept(IsolatedDevModeMain.java:236)
          at io.quarkus.dev.IsolatedDevModeMain.accept(IsolatedDevModeMain.java:39)
          at io.quarkus.bootstrap.app.CuratedApplication.runInCl(CuratedApplication.java:131)
          at io.quarkus.bootstrap.app.CuratedApplication.runInAugmentClassLoader(CuratedApplication.java:84)
          at io.quarkus.dev.DevModeMain.start(DevModeMain.java:113)
          at io.quarkus.dev.DevModeMain.main(DevModeMain.java:54)
      Caused by: java.lang.RuntimeException: Failed to start quarkus
          at io.quarkus.runner.ApplicationImpl.<clinit>(ApplicationImpl.zig:482)
          ... 10 more
      Caused by: java.lang.RuntimeException: Failed to submit OutboxEvent.hbm.xml mapping to Hibernate ORM
          at io.debezium.outbox.quarkus.internal.AdditionalJaxbMappingProducerImpl.produceAdditionalMappings(AdditionalJaxbMappingProducerImpl.java:70)
          at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:296)
          at io.quarkus.hibernate.orm.runtime.boot.FastBootMetadataBuilder.build(FastBootMetadataBuilder.java:321)
          at io.quarkus.hibernate.orm.runtime.PersistenceUnitsHolder.createMetadata(PersistenceUnitsHolder.java:114)
          at io.quarkus.hibernate.orm.runtime.PersistenceUnitsHolder.constructMetadataAdvance(PersistenceUnitsHolder.java:86)
          at io.quarkus.hibernate.orm.runtime.PersistenceUnitsHolder.initializeJpa(PersistenceUnitsHolder.java:49)
          at io.quarkus.hibernate.orm.runtime.HibernateOrmRecorder$4.created(HibernateOrmRecorder.java:77)
          at io.quarkus.arc.runtime.ArcRecorder.initBeanContainer(ArcRecorder.java:106)
          at io.quarkus.deployment.steps.ArcProcessor$generateResources30.deploy_0(ArcProcessor$generateResources30.zig:455)
          at io.quarkus.deployment.steps.ArcProcessor$generateResources30.deploy(ArcProcessor$generateResources30.zig:36)
          at io.quarkus.runner.ApplicationImpl.<clinit>(ApplicationImpl.zig:436)
          ... 10 more
      Caused by: java.lang.NullPointerException
          at java.io.Reader.<init>(Reader.java:78)
          at java.io.InputStreamReader.<init>(InputStreamReader.java:72)
          at io.debezium.outbox.quarkus.internal.AdditionalJaxbMappingProducerImpl.produceAdditionalMappings(AdditionalJaxbMappingProducerImpl.java:52)
          ... 20 more
      
      2020-04-13 18:52:08,431 INFO  [io.qua.dev.DevModeMain] (main) Attempting to start hot replacement endpoint to recover from previous Quarkus startup failure
      

      It's also been reporting that the issue may be related to attempting to load JaxbHbmHibernateMapping.class.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ccranfor Chris Cranford
                Reporter:
                ccranfor Chris Cranford
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: