Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1310

ResponseObjectTest failing when using ProxyBuilder

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.17.Final
    • None
    • None
    • None

    Description

      org.jboss.resteasy.test.finegrain.client.ResponseObjectTest works fine when using deprecated ProxyFactory.
      When I use its replacement ProxyBuilder instead, I get failure for both tests testLinkFollow and testSimple.

      The output of failed tests:

      testLinkFollowProxyBuilder(org.jboss.resteasy.test.client.ResponseObjectTest)  Time elapsed: 0.727 sec  <<< ERROR!
      javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request
      	at org.jboss.resteasy.test.client.ResponseObjectTest.testLinkFollowProxyBuilder(ResponseObjectTest.java:168)
      Caused by: java.lang.IllegalArgumentException: Method may not be null
      	at org.jboss.resteasy.test.client.ResponseObjectTest.testLinkFollowProxyBuilder(ResponseObjectTest.java:168)
      
      testSimpleProxyBuilder(org.jboss.resteasy.test.client.ResponseObjectTest)  Time elapsed: 0.109 sec  <<< ERROR!
      java.lang.ClassCastException: org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine$1 cannot be cast to org.jboss.resteasy.client.ClientResponse
      	at org.jboss.resteasy.test.client.ResponseObjectTest.testSimpleProxyBuilder(ResponseObjectTest.java:153)
      

      The problem happends when invoking these to methods on the ResponseObjects obj annotated objects:
      obj.response()
      obj.followNextLink()

      Attachments

        Issue Links

          Activity

            People

              mstefank Martin Stefanko
              kanovotn Katerina Odabasi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: