Author: thorsten
Date: Fri Dec 16 21:15:01 2005
New Revision: 357296
URL: http://svn.apache.org/viewcvs?rev=357296&view=rev
Log:
Added better error message.
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/src/java/org/apache/forrest/dispatcher/ContractBeanDOMImpl.java
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/src/java/org/apache/forrest/dispatcher/ContractBeanDOMImpl.java
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/src/java/org/apache/forrest/dispatcher/ContractBeanDOMImpl.java?rev=357296&r1=357295&r2=357296&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/src/java/org/apache/forrest/dispatcher/ContractBeanDOMImpl.java
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/src/java/org/apache/forrest/dispatcher/ContractBeanDOMImpl.java
Fri Dec 16 21:15:01 2005
@@ -240,8 +240,8 @@
* Set default properties
*/
// default forrest properties
- Node defaultVariables = org.apache.forrest.dispatcher.util.SourceUtil.readDOM(
- "cocoon://test-props", this.manager);
+ Node defaultVariables = org.apache.forrest.dispatcher.util.SourceUtil
+ .readDOM("cocoon://test-props", this.manager);
transformer.setParameter("defaultVariables",
defaultVariables);
transformer.setOutputProperty(
@@ -298,7 +298,12 @@
+ "\n"
+ "Could not transform the result data in contractBean."
+ "\n"
- + "You need to invoke first the transfomer and the rawData.");
+ + "You need to invoke first the transfomer and the rawData."
+ + "\n"
+ + "If you see \"The contract \"null\" has thrown thrown an exception...\"
"
+ + "that can mean you nested contracts, which is forbidden!"
+
+ );
} else {
DOMSource source = new DOMSource(contractRawData);
DOMResult result = new DOMResult();
|