juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r923978 - in /webservices/juddi/trunk: juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerk.java uddi-ws/src/main/java/org/uddi/v3_service/DispositionReportFaultMessage.java
Date Tue, 16 Mar 2010 20:59:15 GMT
Author: kstam
Date: Tue Mar 16 20:59:14 2010
New Revision: 923978

URL: http://svn.apache.org/viewvc?rev=923978&view=rev
Log:
JUDDI-370, handling DispositionReportFaultMessage

Modified:
    webservices/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerk.java
    webservices/juddi/trunk/uddi-ws/src/main/java/org/uddi/v3_service/DispositionReportFaultMessage.java

Modified: webservices/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerk.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerk.java?rev=923978&r1=923977&r2=923978&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerk.java
(original)
+++ webservices/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerk.java
Tue Mar 16 20:59:14 2010
@@ -17,6 +17,7 @@
 package org.apache.juddi.v3.client.config;
 
 import java.io.Serializable;
+import java.lang.reflect.UndeclaredThrowableException;
 import java.rmi.RemoteException;
 import java.util.HashMap;
 import java.util.List;
@@ -205,6 +206,15 @@ public class UDDIClerk implements Serial
 					log.error(result.getErrInfo().getErrCode() + " " + result.getErrInfo().getValue());
 				}
 			}
+		} catch (UndeclaredThrowableException ute) {
+			DispositionReport report = DispositionReportFaultMessage.getDispositionReport(ute);
+			if (report.countainsErrorCode(DispositionReport.E_INVALID_KEY_PASSED)) {
+				log.info("serviceKey " + serviceKey + " was not found in the registry");
+			} else {
+	            for (Result result : report.getResult()) {
+					log.error(result.getErrInfo().getErrCode() + " " + result.getErrInfo().getValue());
+				}
+			}
 		}
 		return null;
 	}
@@ -237,6 +247,15 @@ public class UDDIClerk implements Serial
 					log.error(result.getErrInfo().getErrCode() + " " + result.getErrInfo().getValue());
 				}
 			}
+		} catch (UndeclaredThrowableException ute) {
+			DispositionReport report = DispositionReportFaultMessage.getDispositionReport(ute);
+			if (report.countainsErrorCode(DispositionReport.E_INVALID_KEY_PASSED)) {
+				log.info("bindingKey " + bindingKey + " was not found in the registry");
+			} else {
+	            for (Result result : report.getResult()) {
+					log.error(result.getErrInfo().getErrCode() + " " + result.getErrInfo().getValue());
+				}
+			}
 		}
 		return null;
 	}
@@ -276,6 +295,15 @@ public class UDDIClerk implements Serial
 					log.error(result.getErrInfo().getErrCode() + " " + result.getErrInfo().getValue());
 				}
 			}
+		} catch (UndeclaredThrowableException ute) {
+			DispositionReport report = DispositionReportFaultMessage.getDispositionReport(ute);
+			if (report.countainsErrorCode(DispositionReport.E_INVALID_KEY_PASSED)) {
+				log.info("businessKey " + businessKey + " was not found in the registry");
+			} else {
+	            for (Result result : report.getResult()) {
+					log.error(result.getErrInfo().getErrCode() + " " + result.getErrInfo().getValue());
+				}
+			}
 		}
 		return null;
 	}

Modified: webservices/juddi/trunk/uddi-ws/src/main/java/org/uddi/v3_service/DispositionReportFaultMessage.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/uddi-ws/src/main/java/org/uddi/v3_service/DispositionReportFaultMessage.java?rev=923978&r1=923977&r2=923978&view=diff
==============================================================================
--- webservices/juddi/trunk/uddi-ws/src/main/java/org/uddi/v3_service/DispositionReportFaultMessage.java
(original)
+++ webservices/juddi/trunk/uddi-ws/src/main/java/org/uddi/v3_service/DispositionReportFaultMessage.java
Tue Mar 16 20:59:14 2010
@@ -109,7 +109,6 @@ public class DispositionReportFaultMessa
     	} else {
     		log.error("Unsupported Exception: " + e.getClass());
     	}
-    	//We might have to catch yet another type of Exception for RMI transport.
     	return report;
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org


Mime
View raw message