openamf/src/java/org/openamf DefaultGateway.java,1.61,1.62
Sean Sullivan <[email protected]> Fri, 20 Aug 2004 04:41:21 +0000
| Newsgroups | gmane.comp.java.openamf.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openamf/openamf/src/java/org/openamf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25087/src/java/org/openamf
Modified Files:
DefaultGateway.java
Log Message:
removed method: processRequestException
removed method: processServiceInvocationException
added method: logRequestException
Index: DefaultGateway.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/DefaultGateway.java,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** DefaultGateway.java 20 Aug 2004 04:03:45 -0000 1.61
--- DefaultGateway.java 20 Aug 2004 04:41:19 -0000 1.62
***************
*** 103,107 ****
serializeAMFMessage(resp, responseMessage);
} catch (Exception e) {
! processRequestException(e, requestMessage);
}
finally {
--- 103,107 ----
serializeAMFMessage(resp, responseMessage);
} catch (Exception e) {
! logRequestException(e, requestMessage);
}
finally {
***************
*** 110,114 ****
}
! protected void processRequestException(Exception e, AMFMessage requestMessage)
{
String msg = "Error in service";
--- 110,114 ----
}
! protected void logRequestException(Exception e, AMFMessage requestMessage)
{
String msg = "Error in service";
***************
*** 120,148 ****
}
! log.error(msg, e);
! }
!
! protected void processServiceInvocationException(ServiceInvocationException e)
! {
! AMFBody body = e.getAMFBody();
! ServiceRequest req = e.getServiceRequest();
!
! String msg = "service invocation";
!
! if (body != null)
! {
! msg += ", AMFBody=";
! msg += String.valueOf(body);
! }
!
! if (req != null)
{
! msg += ", ServiceRequest=";
! msg += String.valueOf(req);
}
! log.warn(msg, e);
}
/**
* Uses the AMFDeserializer to deserialize the request
--- 120,146 ----
}
! if (e instanceof ServiceInvocationException)
{
! ServiceInvocationException sie = (ServiceInvocationException) e;
! AMFBody body = sie.getAMFBody();
! ServiceRequest req = sie.getServiceRequest();
!
! if (body != null)
! {
! msg += ", AMFBody=";
! msg += String.valueOf(body);
! }
!
! if (req != null)
! {
! msg += ", ServiceRequest=";
! msg += String.valueOf(req);
! }
}
! log.error(msg, e);
}
+
/**
* Uses the AMFDeserializer to deserialize the request
***************
*** 214,218 ****
} catch (ServiceInvocationException e) {
serviceResult = e.getAMFError();
! processServiceInvocationException(e);
}
return serviceResult;
--- 212,216 ----
} catch (ServiceInvocationException e) {
serviceResult = e.getAMFError();
! logRequestException(e, null);
}
return serviceResult;
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285