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

Some server tests fail due to @com.google.inject.Inject annotation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.5.0.Alpha2
    • 2.4.0.Final
    • debezium-server
    • None

      debezium-server-http and debezium-server-infinispan tests fail due to using @com.google.inject.Inject.
      Fail with

      [ERROR] Errors: 
      [ERROR]   HttpIT.testRetryUponError ยป Runtime java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
              [error]: Build step io.quarkus.arc.deployment.ArcProcessor#generateResources threw an exception: jakarta.enterprise.inject.spi.DeploymentException: java.lang.IllegalStateException: @com.google.inject.Inject declared on io.debezium.server.http.HttpIT.server, use @jakarta.inject.Inject instead
              at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1435)
              at io.quarkus.arc.processor.BeanProcessor.processValidationErrors(BeanProcessor.java:174)
              at io.quarkus.arc.deployment.ArcProcessor.generateResources(ArcProcessor.java:502)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
              at java.base/java.lang.reflect.Method.invoke(Method.java:580)
              at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:864)
              at io.quarkus.builder.BuildContext.run(BuildContext.java:282)
              at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
              at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
              at java.base/java.lang.Thread.run(Thread.java:1583)
              at org.jboss.threads.JBossThread.run(JBossThread.java:501)
      Caused by: java.lang.IllegalStateException: @com.google.inject.Inject declared on io.debezium.server.http.HttpIT.server, use @jakarta.inject.Inject instead
              at io.quarkus.arc.deployment.WrongAnnotationUsageProcessor.detect(WrongAnnotationUsageProcessor.java:67)
              ... 9 more
      

              vjuranek@redhat.com Vojtech Juranek
              vjuranek@redhat.com Vojtech Juranek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: