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

Hide
Christophe DENEUX added a comment - Thu, 12 Jun 2014 - 16:41:10 +0200

Merged in trunk

Show
Christophe DENEUX added a comment - Thu, 12 Jun 2014 - 16:41:10 +0200 Merged in trunk
Hide
Christophe DENEUX added a comment - Thu, 12 Jun 2014 - 14:22:13 +0200

Reopen to be merged in main line

Show
Christophe DENEUX added a comment - Thu, 12 Jun 2014 - 14:22:13 +0200 Reopen to be merged in main line
Hide
Christophe DENEUX added a comment - Thu, 12 Jun 2014 - 14:21:53 +0200

Fix in branch petals-esb-enterprise-edition-4.2.x

Show
Christophe DENEUX added a comment - Thu, 12 Jun 2014 - 14:21:53 +0200 Fix in branch petals-esb-enterprise-edition-4.2.x

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