forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r725648 - in /forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl: XSLContract.java helper/XSLContractHelper.java
Date Thu, 11 Dec 2008 10:42:51 GMT
Author: thorsten
Date: Thu Dec 11 02:42:51 2008
New Revision: 725648

URL: http://svn.apache.org/viewvc?rev=725648&view=rev
Log:
Adding better debug information by providing the contract name for which the processing has
thrown an exception

Modified:
    forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XSLContract.java
    forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helper/XSLContractHelper.java

Modified: forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XSLContract.java
URL: http://svn.apache.org/viewvc/forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XSLContract.java?rev=725648&r1=725647&r2=725648&view=diff
==============================================================================
--- forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XSLContract.java
(original)
+++ forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XSLContract.java
Thu Dec 11 02:42:51 2008
@@ -92,7 +92,7 @@
       helper.transform(dataStream,streamResult);
     } catch (Exception e) {
       String message = "Could not invoke the transformation for "
-          + "the contract. "+"\n"+ e;
+          + "the contract \""+name+"\". "+"\n"+ e;
       throw new ContractException(message);
     }
     log.debug(out.toString());

Modified: forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helper/XSLContractHelper.java
URL: http://svn.apache.org/viewvc/forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helper/XSLContractHelper.java?rev=725648&r1=725647&r2=725648&view=diff
==============================================================================
--- forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helper/XSLContractHelper.java
(original)
+++ forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helper/XSLContractHelper.java
Thu Dec 11 02:42:51 2008
@@ -306,7 +306,7 @@
     try {
       transformer.transform(dataSource, streamResult);
     } catch (Exception e) {
-      String message ="The xsl transformation has thrown an exception."+"\n"+e+"\n\nproblem->solution:\n"
+
+      String message ="The xsl transformation has thrown an exception. Please see some FAQ:"+"\n"+e+"\n\nproblem->solution:\n"
+
       		"- org.apache.xpath.XPathException: Can not convert #STRING to a NodeList!\n" +
       		"-> Try to activate \"allowXml\" and/or \"shrink\". If this is not working try
the contract " +
       		"xsl standalone and make sure it is not a xsl specific problem.";



Mime
View raw message