IncompatibleClassChangeError in tests

724 views
Skip to first unread message

Bill

unread,
Oct 29, 2019, 4:16:54 AM10/29/19
to Quarkus Development mailing list
Hello,

I'm getting the following error in @QuarkusTest

2019-10-29 09:11:11,403 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (vert.x-worker-thread-0) HTTP Request to /mock/id/0 failed, error id: 27ece46a-996f-4fdd-bb2d-b703d5501bbc-1: java.lang.IncompatibleClassChangeError: Expected static method org.jboss.resteasy.spi.ResteasyProviderFactory.getContextData(Ljava/lang/Class;)Ljava/lang/Object;
        at org.jboss.resteasy.plugins.interceptors.encoding.MessageSanitizerContainerResponseFilter.filter(MessageSanitizerContainerResponseFilter.java:34)
        at org.jboss.resteasy.core.interception.jaxrs.ContainerResponseContextImpl.filter(ContainerResponseContextImpl.java:361)
        at org.jboss.resteasy.core.ServerResponseWriter.executeFilters(ServerResponseWriter.java:232)
        at org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:97)
        at org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:70)
        at org.jboss.resteasy.core.SynchronousDispatcher.writeResponse(SynchronousDispatcher.java:578)
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:508)
        at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:252)
        at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:153)
        at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:363)
        at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:156)
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:238)
        at io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:69)
        at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:104)
        at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatchRequestContext(VertxRequestHandler.java:83)
        at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.lambda$handle$0(VertxRequestHandler.java:70)
        at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$2(ContextImpl.java:316)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.lang.Thread.run(Thread.java:748)

What does it mean and how can it be fixed?

Bill

Stephane Epardaud

unread,
Oct 29, 2019, 5:46:02 AM10/29/19
to tco...@gmail.com, Quarkus Development mailing list
Is this on the latest master?

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/068d0ee3-a448-4832-8d86-8c181398fe21%40googlegroups.com.


--
Stéphane Épardaud

Bill

unread,
Oct 29, 2019, 6:51:04 AM10/29/19
to Quarkus Development mailing list
0.26.1
To unsubscribe from this group and stop receiving emails from it, send an email to quark...@googlegroups.com.


--
Stéphane Épardaud

Georgios Andrianakis

unread,
Oct 29, 2019, 6:54:36 AM10/29/19
to tco...@gmail.com, Quarkus Development mailing list
Would it be possible to provide a small reproducer for this problem?

Thanks

To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/b0c8b5ed-ba46-464b-bca4-243677cbde05%40googlegroups.com.

Bill

unread,
Oct 29, 2019, 7:00:55 AM10/29/19
to Quarkus Development mailing list
I'm afraid its not possible

Emmanuel Bernard

unread,
Oct 29, 2019, 7:33:44 AM10/29/19
to Bill, Quarkus Development mailing list

Hello,

These generic errors are always hard to track. Our current guess is that something around the mock system you use is interfering. But without a reproducer, we won't be able to track and fix.

Emmanuel

To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/6bbe1939-99ab-4abb-b99e-b38d849b9d73%40googlegroups.com.

Bill

unread,
Oct 31, 2019, 8:50:07 AM10/31/19
to Quarkus Development mailing list
FYI
I had both <artifactId>resteasy-client</artifactId> 
and  <artifactId>quarkus-resteasy</artifactId> in pom

after removing resteasy-client the error is gone
Reply all
Reply to author
Forward
0 new messages