Petals CDK

Invalid error message and missing documentation when configuring processor pool size of JBI components

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Duplicate
  • Affects Version/s: 5.1
  • Fix Version/s: None
  • Component/s: configuration
  • Security Level: Public
  • Description:
    Hide

    Hello,

    When configuring JBI components, it's possible to customize these fields:

    petalsCDK:acceptor-pool-size
    petalsCDK:processor-pool-size
    petalsCDK:processor-max-pool-size

    If the value for "processor pool size" is greater than "processor max pool size", one get this exception:

    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:143)
            at org.ow2.petals.component.framework.process.JBIProcessorManager.start(JBIProcessorManager.java:280)
            at org.ow2.petals.component.framework.AbstractComponent.start(AbstractComponent.java:509)
            at org.ow2.petals.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:103)
            ... 1 more

    Is it possible to improve this error message ?

    I can't find the user guide for CDK parameters, is this documented somewhere?

    Thank you

    Show
    Hello, When configuring JBI components, it's possible to customize these fields:
    petalsCDK:acceptor-pool-size
    petalsCDK:processor-pool-size
    petalsCDK:processor-max-pool-size
    If the value for "processor pool size" is greater than "processor max pool size", one get this exception:
    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:143)
            at org.ow2.petals.component.framework.process.JBIProcessorManager.start(JBIProcessorManager.java:280)
            at org.ow2.petals.component.framework.AbstractComponent.start(AbstractComponent.java:509)
            at org.ow2.petals.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:103)
            ... 1 more
    Is it possible to improve this error message ? I can't find the user guide for CDK parameters, is this documented somewhere? Thank you
  • Environment:
    All

Issue Links

Activity

Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Resolved Resolved
14d 23h 56m
1
Christophe DENEUX
Tue, 19 Jul 2011 - 11:45:03 +0200

People

Dates

  • Created:
    Mon, 4 Jul 2011 - 11:48:13 +0200
    Updated:
    Mon, 10 Oct 2011 - 10:17:20 +0200
    Resolved:
    Tue, 19 Jul 2011 - 11:45:03 +0200