Petals CDK

An error occurs when restarting monitoring probes

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 5.4.0
  • Fix Version/s: 5.4.1
  • Component/s: runtime
  • Security Level: Public
  • Description:
    Hide

    The following error occurs restarting a JBI component because TimerTask are reused on scheduling instead of creating new ones:

    sample-0 2014/06/11 10:14:04,872 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component initialized
    sample-0 2014/06/11 10:14:04,874 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Start component...
    sample-0 2014/06/11 10:14:04,956 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component started
    sample-0 2014/06/11 10:14:52,503 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Stop component...
    sample-0 2014/06/11 10:14:52,528 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component stopped
    sample-0 2014/06/11 10:43:11,313 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Start component...
    sample-0 2014/06/11 10:43:11,384 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component started
    sample-0 2014/06/11 10:43:11,386 GMT+0200 SEVERE [Petals.Container.Lifecycle.ComponentLifeCycle] : Life cycle exception on START
    javax.jbi.JBIException: Life cycle exception on START
    	at org.ow2.petals.microkernel.api.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:118)
    	at org.ow2.petals.microkernel.api.container.thread.AbstractThread.run(AbstractThread.java:106)
    Caused by: java.lang.IllegalStateException: Task already scheduled or cancelled
    	at java.util.Timer.sched(Timer.java:358)
    	at java.util.Timer.schedule(Timer.java:222)
    	at org.ow2.petals.probes.impl.DurationProbeImpl.doStart(DurationProbeImpl.java:392)
    	at org.ow2.petals.probes.impl.AbstractProbe.start(AbstractProbe.java:102)
    	at org.ow2.petals.component.framework.monitoring.Monitoring.start(Monitoring.java:311)
    	at org.ow2.petals.component.framework.AbstractComponent.start(AbstractComponent.java:558)
    	at org.ow2.petals.microkernel.api.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:103)
    	... 1 more
    Show
    The following error occurs restarting a JBI component because TimerTask are reused on scheduling instead of creating new ones:
    sample-0 2014/06/11 10:14:04,872 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component initialized
    sample-0 2014/06/11 10:14:04,874 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Start component...
    sample-0 2014/06/11 10:14:04,956 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component started
    sample-0 2014/06/11 10:14:52,503 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Stop component...
    sample-0 2014/06/11 10:14:52,528 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component stopped
    sample-0 2014/06/11 10:43:11,313 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Start component...
    sample-0 2014/06/11 10:43:11,384 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component started
    sample-0 2014/06/11 10:43:11,386 GMT+0200 SEVERE [Petals.Container.Lifecycle.ComponentLifeCycle] : Life cycle exception on START
    javax.jbi.JBIException: Life cycle exception on START
    	at org.ow2.petals.microkernel.api.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:118)
    	at org.ow2.petals.microkernel.api.container.thread.AbstractThread.run(AbstractThread.java:106)
    Caused by: java.lang.IllegalStateException: Task already scheduled or cancelled
    	at java.util.Timer.sched(Timer.java:358)
    	at java.util.Timer.schedule(Timer.java:222)
    	at org.ow2.petals.probes.impl.DurationProbeImpl.doStart(DurationProbeImpl.java:392)
    	at org.ow2.petals.probes.impl.AbstractProbe.start(AbstractProbe.java:102)
    	at org.ow2.petals.component.framework.monitoring.Monitoring.start(Monitoring.java:311)
    	at org.ow2.petals.component.framework.AbstractComponent.start(AbstractComponent.java:558)
    	at org.ow2.petals.microkernel.api.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:103)
    	... 1 more
  • Environment:
    -

Issue Links

Activity

Christophe DENEUX made changes - Thu, 12 Jun 2014 - 11:29:33 +0200
Field Original Value New Value
Link This issue blocks PETALSDISTRIB-76 [ PETALSDISTRIB-76 ]
Christophe DENEUX made changes - Thu, 12 Jun 2014 - 11:29:49 +0200
Status New [ 10000 ] Open [ 10002 ]
Priority Blocker [ 1 ]
Christophe DENEUX made changes - Thu, 12 Jun 2014 - 11:30:32 +0200
Description The following error occurs restarting a JBI component because {{TimerTask}}s are reused on scheduling instead of creating new ones:
{code}
sample-0 2014/06/11 10:14:04,872 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component initialized
sample-0 2014/06/11 10:14:04,874 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Start component...
sample-0 2014/06/11 10:14:04,956 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component started
sample-0 2014/06/11 10:14:52,503 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Stop component...
sample-0 2014/06/11 10:14:52,528 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component stopped
sample-0 2014/06/11 10:43:11,313 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Start component...
sample-0 2014/06/11 10:43:11,384 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component started
sample-0 2014/06/11 10:43:11,386 GMT+0200 SEVERE [Petals.Container.Lifecycle.ComponentLifeCycle] : Life cycle exception on START
javax.jbi.JBIException: Life cycle exception on START
at org.ow2.petals.microkernel.api.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:118)
at org.ow2.petals.microkernel.api.container.thread.AbstractThread.run(AbstractThread.java:106)
Caused by: java.lang.IllegalStateException: Task already scheduled or cancelled
at java.util.Timer.sched(Timer.java:358)
at java.util.Timer.schedule(Timer.java:222)
at org.ow2.petals.probes.impl.DurationProbeImpl.doStart(DurationProbeImpl.java:392)
at org.ow2.petals.probes.impl.AbstractProbe.start(AbstractProbe.java:102)
at org.ow2.petals.component.framework.monitoring.Monitoring.start(Monitoring.java:311)
at org.ow2.petals.component.framework.AbstractComponent.start(AbstractComponent.java:558)
at org.ow2.petals.microkernel.api.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:103)
... 1 more
{code}
The following error occurs restarting a JBI component because {{TimerTask}} are reused on scheduling instead of creating new ones:
{code}
sample-0 2014/06/11 10:14:04,872 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component initialized
sample-0 2014/06/11 10:14:04,874 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Start component...
sample-0 2014/06/11 10:14:04,956 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component started
sample-0 2014/06/11 10:14:52,503 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Stop component...
sample-0 2014/06/11 10:14:52,528 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component stopped
sample-0 2014/06/11 10:43:11,313 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Start component...
sample-0 2014/06/11 10:43:11,384 GMT+0200 INFO [Petals.Container.Components.petals-se-activitibpmn] : Component started
sample-0 2014/06/11 10:43:11,386 GMT+0200 SEVERE [Petals.Container.Lifecycle.ComponentLifeCycle] : Life cycle exception on START
javax.jbi.JBIException: Life cycle exception on START
at org.ow2.petals.microkernel.api.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:118)
at org.ow2.petals.microkernel.api.container.thread.AbstractThread.run(AbstractThread.java:106)
Caused by: java.lang.IllegalStateException: Task already scheduled or cancelled
at java.util.Timer.sched(Timer.java:358)
at java.util.Timer.schedule(Timer.java:222)
at org.ow2.petals.probes.impl.DurationProbeImpl.doStart(DurationProbeImpl.java:392)
at org.ow2.petals.probes.impl.AbstractProbe.start(AbstractProbe.java:102)
at org.ow2.petals.component.framework.monitoring.Monitoring.start(Monitoring.java:311)
at org.ow2.petals.component.framework.AbstractComponent.start(AbstractComponent.java:558)
at org.ow2.petals.microkernel.api.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:103)
... 1 more
{code}
Christophe DENEUX made changes - Thu, 12 Jun 2014 - 11:31:22 +0200
Assignee Christophe DENEUX [ cdeneux ]
Christophe DENEUX made changes - Thu, 12 Jun 2014 - 11:31:26 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Thu, 12 Jun 2014 - 11:33:35 +0200
Fix Version/s 5.4.1 [ 10470 ]
Christophe DENEUX made changes - Thu, 12 Jun 2014 - 14:21:53 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Thu, 12 Jun 2014 - 14:22:13 +0200
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Thu, 12 Jun 2014 - 16:40:50 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Thu, 12 Jun 2014 - 16:41:10 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 5.4.2 [ 10406 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Thu, 12 Jun 2014 - 16:41:32 +0200
Fix Version/s 5.4.2 [ 10406 ]

People

Dates

  • Created:
    Thu, 12 Jun 2014 - 10:22:38 +0200
    Updated:
    Thu, 12 Jun 2014 - 16:41:32 +0200
    Resolved:
    Thu, 12 Jun 2014 - 16:41:10 +0200