Skip to content

MP Rest Client TCK test InvokeWithJsonPProviderTest failing #5715

@dmlloyd

Description

@dmlloyd

Describe the bug
After #5387, InvokeWithJsonPProviderTest and InvokeWithJsonBProviderTest have stopped passing. The JSON-B test was trivially fixable by adding a config setup step (the config is read before Quarkus has a chance to establish it). However the JSON-P test, even with a similar fix, fails with an unusual injection error:

Caused by: java.lang.IllegalArgumentException: Can not set org.eclipse.microprofile.rest.client.tck.interfaces.JsonPClient field org.eclipse.microprofile.rest.client.tck.InvokeWithJsonPProviderTest.cdiJsonPClient to com.sun.proxy.$Proxy59
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
    at java.lang.reflect.Field.set(Field.java:764)
    at io.quarkus.arc.impl.Reflections.writeField(Reflections.java:84)

This test has been disabled in #5387 until the problem can be found and fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions