Petals CDK

IllegalArgumentException when starting a component

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 5.1.2
  • Fix Version/s: 5.1.3, 5.3.0
  • Component/s: configuration
  • Security Level: Public
  • Description:
    Hide

    If the JBI descriptor of a component defines a value of 'processor-pool-size' greater than the value of 'processor-max-pool-size' (or its default one if absent), the following exception occurs when starting the component installed by the autoloader:

    [Petals.Container.Components.petals-bc-soap]-INFO 2012-02-15 10:29:35,487 Start component...
    [Petals.Container.ComponentLifeCycle.petals-bc-soap]-SEVERE 2012-02-15 10:29:35,523 Life cycle exception on START
    javax.jbi.JBIException: Life cycle exception on START
    	at org.ow2.petals.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:117)
    	at org.ow2.petals.container.thread.AbstractThread.run(AbstractThread.java:110)
    Caused by: java.lang.IllegalArgumentException
    	at java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:589)
    	at org.ow2.petals.component.framework.process.JBIProcessorManager$MessageExchangeProcessorThreadPoolExecutor.<init>(JBIProcessorManager.java:150)
    	at org.ow2.petals.component.framework.process.JBIProcessorManager.start(JBIProcessorManager.java:302)
    	at org.ow2.petals.component.framework.AbstractComponent.start(AbstractComponent.java:509)
    	at org.ow2.petals.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:103)
    	... 1 more

    Please add a clearer message as : WARNING "The value of 'processor-pool-size' is invalid (greater than 'processor-max-pool-size'). The value of 'processor-max-pool-size' is set to the value of 'processor-pool-size'".

    Show
    If the JBI descriptor of a component defines a value of 'processor-pool-size' greater than the value of 'processor-max-pool-size' (or its default one if absent), the following exception occurs when starting the component installed by the autoloader:
    [Petals.Container.Components.petals-bc-soap]-INFO 2012-02-15 10:29:35,487 Start component...
    [Petals.Container.ComponentLifeCycle.petals-bc-soap]-SEVERE 2012-02-15 10:29:35,523 Life cycle exception on START
    javax.jbi.JBIException: Life cycle exception on START
    	at org.ow2.petals.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:117)
    	at org.ow2.petals.container.thread.AbstractThread.run(AbstractThread.java:110)
    Caused by: java.lang.IllegalArgumentException
    	at java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:589)
    	at org.ow2.petals.component.framework.process.JBIProcessorManager$MessageExchangeProcessorThreadPoolExecutor.<init>(JBIProcessorManager.java:150)
    	at org.ow2.petals.component.framework.process.JBIProcessorManager.start(JBIProcessorManager.java:302)
    	at org.ow2.petals.component.framework.AbstractComponent.start(AbstractComponent.java:509)
    	at org.ow2.petals.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:103)
    	... 1 more
    Please add a clearer message as : WARNING "The value of 'processor-pool-size' is invalid (greater than 'processor-max-pool-size'). The value of 'processor-max-pool-size' is set to the value of 'processor-pool-size'".
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Mon, 12 Mar 2012 - 16:30:18 +0100

Merged in trunk, svn#31622

Show
Christophe DENEUX added a comment - Mon, 12 Mar 2012 - 16:30:18 +0100 Merged in trunk, svn#31622
Hide
Christophe DENEUX added a comment - Wed, 15 Feb 2012 - 11:22:38 +0100

To merge in trunk

Show
Christophe DENEUX added a comment - Wed, 15 Feb 2012 - 11:22:38 +0100 To merge in trunk
Hide
Christophe DENEUX added a comment - Wed, 15 Feb 2012 - 11:22:25 +0100

Fixed in branch petals-enterprise-3.1.x

Show
Christophe DENEUX added a comment - Wed, 15 Feb 2012 - 11:22:25 +0100 Fixed in branch petals-enterprise-3.1.x

People

Dates

  • Created:
    Wed, 15 Feb 2012 - 10:41:24 +0100
    Updated:
    Mon, 12 Mar 2012 - 16:30:18 +0100
    Resolved:
    Mon, 12 Mar 2012 - 16:30:18 +0100