openamf/src/java/org/openamf AdvancedGateway.java,1.21,1.22

[email protected]
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf
In directory sc8-pr-cvs1:/tmp/cvs-serv25621/src/java/org/openamf

Modified Files:
	AdvancedGateway.java 
Log Message:
added more logging

Index: AdvancedGateway.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/AdvancedGateway.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** AdvancedGateway.java	5 Aug 2003 14:47:42 -0000	1.21
--- AdvancedGateway.java	8 Aug 2003 02:24:06 -0000	1.22
***************
*** 51,67 ****
  			// access to the service in the openamf confguration.
  			if (methodConfig == null) {
! 				StringBuffer paramTypes = new StringBuffer("(");
! 				for (Iterator i = request.getParameters().iterator();
! 					i.hasNext();
! 					) {
! 					String type = i.next().getClass().getName();
! 					paramTypes.append(type);
! 					if (i.hasNext()) {
! 						paramTypes.append(", ");
! 					}
! 				}
! 				paramTypes.append(")");
! 				throw new NoSuchMethodException(
! 					request.getServiceMethodName() + paramTypes.toString());
  			}
  
--- 51,61 ----
  			// access to the service in the openamf confguration.
  			if (methodConfig == null) {
! 				NoSuchMethodException e =
! 					new NoSuchMethodException(request.getRequestBody().toString());
! 
! 				log.warn(
! 					"Method Not Found: "
! 						+ request.getRequestBody().toString());
! 				throw e;
  			}
  
***************
*** 232,236 ****
  
  		ServiceConfig serviceConfig =
! 			OpenAMFConfig.getInstance().getServiceConfig(requestBody.getServiceName());
  
  		return serviceConfig;
--- 226,231 ----
  
  		ServiceConfig serviceConfig =
! 			OpenAMFConfig.getInstance().getServiceConfig(
! 				requestBody.getServiceName());
  
  		return serviceConfig;




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.