cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r748313 - in /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor: Messages.properties URIMappingInterceptor.java
Date Thu, 26 Feb 2009 21:23:54 GMT
Author: dkulp
Date: Thu Feb 26 21:23:54 2009
New Revision: 748313

URL: http://svn.apache.org/viewvc?rev=748313&view=rev
Log:
[CXF-2059] Add better error message in URIMappingInterceptor

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/Messages.properties
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/Messages.properties
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/Messages.properties?rev=748313&r1=748312&r2=748313&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/Messages.properties (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/Messages.properties Thu Feb
26 21:23:54 2009
@@ -24,6 +24,7 @@
 STAX_WRITE_EXC = Could not write to XMLStreamWriter.
 NO_OPERATION_ELEMENT=There must be an operation element.
 NO_OPERATION=No such operation: {0}
+NO_OPERATION_PATH=No such operation: {0} (HTTP GET PATH_INFO: {1})
 NO_DATAREADER=No DataReader is available for Service: {0}
 NO_DATAWRITER=No DataWriter is available for Service: {0}
 COULD_NOT_UNRWAP=Could not unwrap message parts.

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java?rev=748313&r1=748312&r2=748313&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
Thu Feb 26 21:23:54 2009
@@ -74,7 +74,8 @@
         if (op == null || opName == null || op.getName() == null
             || StringUtils.isEmpty(op.getName().getLocalPart())
             || !opName.equals(op.getName().getLocalPart())) {
-            throw new Fault(new org.apache.cxf.common.i18n.Message("NO_OPERATION", LOG, opName));
+            throw new Fault(new org.apache.cxf.common.i18n.Message("NO_OPERATION_PATH", LOG,
opName,
+                                                                   message.get(Message.PATH_INFO)));
         }
         message.getExchange().put(BindingOperationInfo.class, op);
         MessageContentsList params = getParameters(message, op);



Mime
View raw message