Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-1806

Vertx HttpClient - QuarkusTest: java.lang.NoSuchFieldError: REACTIVE_ROUTES

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Critical Critical
    • None
    • 2.2.5.CR3
    • team/eng, vertx
    • +

      Describe the bug

      I've added a Quarkus test into my project and suddenly I am getting the following error:

      Caused by: java.lang.RuntimeException: 
      io.quarkus.builder.BuildException: Build failure: Build failed due to errors
      	[error]: Build step io.quarkus.vertx.web.deployment.ReactiveRoutesProcessor#feature threw an exception: java.lang.NoSuchFieldError: REACTIVE_ROUTES
      	at io.quarkus.vertx.web.deployment.ReactiveRoutesProcessor.feature(ReactiveRoutesProcessor.java:142)
      	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 io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:820)
      	at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
      	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
      	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:501) 

      Environment:

      • Jenkins worker
      • RHEL8.5 + FIPS (I could also reproduce the error in the same environment without FIPS)
      • Quarkus 2.2.5.CR3

      Reproducer:
      Once the PR gets merged, you can clone this repo:

      git@github.com:quarkus-qe/quarkus-test-suite.git 

      and then run

      mvn clean verify -Dall-modules -pl http/vertx-web-client -Dit.test=PureVertxHttpClientTest 

      Note: Be sure that the test is not disabled
      Also notice that is working in my local environment (Fedora35 + openJDK11) and in GH actions (Ubuntu latest + openJDK11)

            cescoffi@redhat.com Clement Escoffier
            rhn-support-pagonzal Pablo Gonzalez Granados (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: