dims 01/04/23 12:06:51
Modified: src/org/apache/cocoon/sitemap Tag: xml-cocoon2 Handler.java
Log:
Fix potential problem in Handler.
Revision Changes Path
No revision
No revision
1.1.2.28 +8 -2
xml-cocoon/src/org/apache/cocoon/sitemap/Attic/Handler.java
Index: Handler.java
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/Handler.java,v
retrieving revision 1.1.2.27
retrieving revision 1.1.2.28
diff -u -r1.1.2.27 -r1.1.2.28
--- Handler.java 2001/04/23 17:53:01 1.1.2.27
+++ Handler.java 2001/04/23 19:06:45 1.1.2.28
@@ -42,7 +42,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
- * @version CVS $Revision: 1.1.2.27 $ $Date: 2001/04/23 17:53:01 $
+ * @version CVS $Revision: 1.1.2.28 $ $Date: 2001/04/23 19:06:45 $
*/
public class Handler extends AbstractLoggable implements Runnable,
Configurable, Composable, Contextualizable, Processor, Disposable {
private Context context;
@@ -139,6 +139,11 @@
regeneration.setContextClassLoader(this.getClass().getClassLoader());
} catch (Exception e){}
this.environment = environment;
+
+ /* clear old exception if any */
+ this.exception = null;
+
+ /* start the thread */
regeneration.start();
}
}
@@ -222,7 +227,8 @@
}
public void throwEventualException() throws Exception {
- if (this.exception != null) throw new ProcessingException("Exception
in Handler",this.exception);
+ if (this.exception != null)
+ throw new ProcessingException("Exception in
Handler",this.exception);
}
public Exception getException() {
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]