Author: isurues
Date: Tue Jan 18 05:56:55 2011
New Revision: 1060199
URL: http://svn.apache.org/viewvc?rev=1060199&view=rev
Log:
Exception handling improvement. In the previous implementation, the stack trace
of the original exception will be lost. Therefore, adding it into the error log.
Modified:
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java
Modified:
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java?rev=1060199&r1=1060198&r2=1060199&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java
(original)
+++
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java
Tue Jan 18 05:56:55 2011
@@ -190,7 +190,7 @@ public class JAXWSRIWSDLGenerator implem
catch (Throwable t) {
String msg =
"Error occurred generating WSDL file for Web service
implementation class " +
- "{" + className + "}: {" + t + "}";
+ "{" + className + "}";
log.error(msg, t);
throw new WebServiceException(msg, t);
}
@@ -258,14 +258,14 @@ public class JAXWSRIWSDLGenerator implem
}
catch (WSDLException e) {
String msg = "Error occurred while attempting to create
Definition from " +
- "generated WSDL file {" + wsdlFile.getName() + "}:
{" + e + "}";
- log.error(msg);
+ "generated WSDL file {" + wsdlFile.getName() + "}";
+ log.error(msg, e);
throw new Exception(msg);
}
catch (IOException e) {
String msg = "Error occurred while attempting to create
Definition from " +
- "generated WSDL file {" + wsdlFile.getName() +
"}: {" + e + "}";
- log.error(msg);
+ "generated WSDL file {" + wsdlFile.getName() +
"}";
+ log.error(msg, e);
throw new Exception(msg);
}
}
@@ -332,9 +332,8 @@ public class JAXWSRIWSDLGenerator implem
return docMap;
}
catch (Exception e) {
- String msg =
- "Error occurred while attempting to read generated schema
file {" + e + "}";
- log.error(msg);
+ String msg = "Error occurred while attempting to read generated
schema file";
+ log.error(msg, e);
throw new Exception(msg);
}
}