RE: lifecycle exceptions
"Thomas, Mary" <[email protected]>
| Newsgroups | gmane.linux.redhat.ccm.general |
|---|---|
| Message-ID | <6C6B73040F8CD411AA5600508B6D5F120D767F2F@strnynt2.strny.starwoodhotels.com> |
Hi Alan,
I modified the schedularTask.java
to the following..
class SchedulerTask extends TimerTask {
public static final String versionId = "$Id:
//cms/6.0/src/com/arsdigita/cms/lifecycle/SchedulerTask.java#1 $ by $Author:
dennis $, $DateTime: 2003/08/18 23:54:14 $";
public void run() {
try{
System.err.println("the lifecycle thread started at
*****"+System.currentTimeMillis()+" **** time");
Scheduler.run();
}catch(Exception e){
e.printStackTrace();
System.err.println("the lifecycle thread broke at
*****"+System.currentTimeMillis()+" **** time");
}
}
}
I noticed that a new thread keeps generating on every minute.
Is this expected...??
-----Original Message-----
From: Alan Pevec [mailto:[email protected]]
Sent: Monday, April 26, 2004 4:07 AM
To: Thomas, Mary
Cc: '[email protected]'
Subject: Re: [redhat-ccm-list] lifecycle exceptions
Hi
a quick fix would be to wrap Scheduler.run call in
c.a.cms.lifecycle.SchedulerTask
with a try-catch(Throwable) block. Log the exception in the catch block,
so that it does not fail silently.
Hope this helps,
Alan Pevec
Thomas, Mary wrote:
>Hi
>Noticed that lifecycle in redhat cms breaks when an assertion throws the
>exception and it is not caught.
>And then one has to restart the server . This is not acceptable in
>production environment.
>Could you offer recommendations/modifications wherein errors are caught and
>does not break the lifecycle during publishing of an item.
>
>Thanks
>Mary
>
>public class AssertionError extends Error {
>
> public AssertionError(String msg) {
> super(msg);
> }
>}
>
>
This electronic message transmission contains information from the Company that may be proprietary, confidential and/or privileged.
The information is intended only for the use of the individual(s) or entity named above. If you are not the intended recipient, be
aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received
this electronic transmission in error, please notify the sender immediately by replying to the address listed in the "From:" field.
--
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/