-
Bug
-
Resolution: Done
-
Major
-
2.2.0.GA
-
None
ClientResponseFailure not thrown at client for 401 response for a method that normally returns an ArrayList. The 401 response was caused by an improper user role. When the user has the proper role, the method returns the ArrayList with no error. Client side created with org.jboss.resteasy.client.ProxyFactory.
It appears that BaseClientResponse gets into an infinite loop, as shown in the stack trace below.
java.lang.StackOverflowError
...
at org.jboss.resteasy.client.ClientResponseFailure.<init>(ClientResponseFailure.java:32)
at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:488)
at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:479)
at org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:384)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:346)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:319)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:442)
at org.jboss.resteasy.client.core.BaseClientResponse.copyFromError(BaseClientResponse.java:94)
at org.jboss.resteasy.client.ClientResponseFailure.<init>(ClientResponseFailure.java:32)
at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:488)
at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:479)
at org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:384)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:346)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:319)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:442)
at org.jboss.resteasy.client.core.BaseClientResponse.copyFromError(BaseClientResponse.java:94)
at org.jboss.resteasy.client.ClientResponseFailure.<init>(ClientResponseFailure.java:32)
at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:488)
at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:479)
at org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:384)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:346)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:319)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:442)
at org.jboss.resteasy.client.core.BaseClientResponse.copyFromError(BaseClientResponse.java:94)
at org.jboss.resteasy.client.ClientResponseFailure.<init>(ClientResponseFailure.java:32)
at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:488)
at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:479)
at org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:384)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:346)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:319)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:442)
at org.jboss.resteasy.client.core.BaseClientResponse.copyFromError(BaseClientResponse.java:94)
at org.jboss.resteasy.client.ClientResponseFailure.<init>(ClientResponseFailure.java:32)
at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:488)
....