Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-2446

ResponseObjectTest failing when using ProxyBuilder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.1.CR1, 7.0.1.GA
    • 7.0.0.ER3
    • REST
    • None
    • EAP 7.0.1

      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()

              mstefank Martin Stefanko
              kanovotn Katerina Odabasi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: