cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1520559 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
Date Fri, 06 Sep 2013 12:29:34 GMT
Author: sergeyb
Date: Fri Sep  6 12:29:33 2013
New Revision: 1520559

URL: http://svn.apache.org/r1520559
Log:
Reporting correct exception if Response.readEntity finds no readers

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java?rev=1520559&r1=1520558&r2=1520559&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
Fri Sep  6 12:29:33 2013
@@ -366,9 +366,12 @@ public final class ResponseImpl extends 
                 } catch (Exception ex) {
                     throw new ResponseProcessingException(this, ex.getMessage(), ex);   

                 }
+            } else {
+                throw new ResponseProcessingException(this, "No message body reader for class:
" + cls, null);
             }
         }
-        throw new IllegalStateException("The entity is not backed by an input stream");
+        throw new IllegalStateException("The entity is not backed by an input stream, entity
class is : "
+            + entity.getClass().getName());
         
     }
     



Mime
View raw message