cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1520560 - in /cxf/branches/2.7.x-fixes: ./ rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
Date Fri, 06 Sep 2013 12:30:58 GMT
Author: sergeyb
Date: Fri Sep  6 12:30:58 2013
New Revision: 1520560

URL: http://svn.apache.org/r1520560
Log:
Merged revisions 1520559 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1520559 | sergeyb | 2013-09-06 13:29:33 +0100 (Fri, 06 Sep 2013) | 1 line
  
  Reporting correct exception if Response.readEntity finds no readers
........

Modified:
    cxf/branches/2.7.x-fixes/   (props changed)
    cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java

Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
  Merged /cxf/trunk:r1520559

Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java?rev=1520560&r1=1520559&r2=1520560&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
Fri Sep  6 12:30:58 2013
@@ -337,9 +337,12 @@ public final class ResponseImpl extends 
                 } catch (Exception ex) {
                     throw new MessageProcessingException(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