Petals CDK

Invalid error message if the jbilistener classname of the JBI descriptor contains a CR/NL

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 5.0.3
  • Fix Version/s: 5.1.2, 5.2.0
  • Component/s: configuration
  • Security Level: Public
  • Description:
    Hide

    If I add the character CR just after my JBI listener class name in the JBI desriptor, I get the following error that is not very clear.

    Can you change the trace message for a proper message.

    SEVERE 2011-02-16 09:01:19,020 [Petals.Container.ComponentLifeCycle.petals-bc-jms]
        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: javax.jbi.JBIException: org.ow2.petals.component.framework.api.exception.PEtALSCDKException: Can't find JBIListener class : org.ow2.petals.bc.jms.listener.JBIListener
    		
    	at org.ow2.petals.component.framework.process.JBIProcessorManager.start(JBIProcessorManager.java:268)
    	at org.ow2.petals.component.framework.AbstractComponent.start(AbstractComponent.java:568)
    	at org.ow2.petals.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:103)
    	... 1 more
    Caused by: org.ow2.petals.component.framework.api.exception.PEtALSCDKException: Can't find JBIListener class : org.ow2.petals.bc.jms.listener.JBIListener
    		
    	at org.ow2.petals.component.framework.process.JBIProcessorManager$MessageExchangeProcessorObjectFactory.createAndInitJBIListener(JBIProcessorManager.java:222)
    	at org.ow2.petals.component.framework.process.JBIProcessorManager$MessageExchangeProcessorObjectFactory.makeObject(JBIProcessorManager.java:181)
    	at org.apache.commons.pool.impl.GenericObjectPool.addObject(GenericObjectPool.java:1276)
    	at org.apache.commons.pool.PoolUtils.prefill(PoolUtils.java:277)
    	at org.ow2.petals.component.framework.process.JBIProcessorManager.start(JBIProcessorManager.java:263)
    	... 3 more
    Caused by: java.lang.ClassNotFoundException: org.ow2.petals.bc.jms.listener.JBIListener
    		
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    	at org.ow2.petals.system.classloader.ComponentClassLoader.loadClass(ComponentClassLoader.java:129)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	at org.ow2.petals.component.framework.process.JBIProcessorManager$MessageExchangeProcessorObjectFactory.createAndInitJBIListener(JBIProcessorManager.java:213)
    Show
    If I add the character CR just after my JBI listener class name in the JBI desriptor, I get the following error that is not very clear. Can you change the trace message for a proper message.
    SEVERE 2011-02-16 09:01:19,020 [Petals.Container.ComponentLifeCycle.petals-bc-jms]
        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: javax.jbi.JBIException: org.ow2.petals.component.framework.api.exception.PEtALSCDKException: Can't find JBIListener class : org.ow2.petals.bc.jms.listener.JBIListener
    		
    	at org.ow2.petals.component.framework.process.JBIProcessorManager.start(JBIProcessorManager.java:268)
    	at org.ow2.petals.component.framework.AbstractComponent.start(AbstractComponent.java:568)
    	at org.ow2.petals.container.thread.ComponentLifeCycleThread.doTask(ComponentLifeCycleThread.java:103)
    	... 1 more
    Caused by: org.ow2.petals.component.framework.api.exception.PEtALSCDKException: Can't find JBIListener class : org.ow2.petals.bc.jms.listener.JBIListener
    		
    	at org.ow2.petals.component.framework.process.JBIProcessorManager$MessageExchangeProcessorObjectFactory.createAndInitJBIListener(JBIProcessorManager.java:222)
    	at org.ow2.petals.component.framework.process.JBIProcessorManager$MessageExchangeProcessorObjectFactory.makeObject(JBIProcessorManager.java:181)
    	at org.apache.commons.pool.impl.GenericObjectPool.addObject(GenericObjectPool.java:1276)
    	at org.apache.commons.pool.PoolUtils.prefill(PoolUtils.java:277)
    	at org.ow2.petals.component.framework.process.JBIProcessorManager.start(JBIProcessorManager.java:263)
    	... 3 more
    Caused by: java.lang.ClassNotFoundException: org.ow2.petals.bc.jms.listener.JBIListener
    		
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    	at org.ow2.petals.system.classloader.ComponentClassLoader.loadClass(ComponentClassLoader.java:129)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	at org.ow2.petals.component.framework.process.JBIProcessorManager$MessageExchangeProcessorObjectFactory.createAndInitJBIListener(JBIProcessorManager.java:213)
  • Environment:
    -
  1. PETALSCDK-57.patch
    (2 kB)
    Christophe DENEUX
    Wed, 16 Feb 2011 - 17:09:47 +0100

Issue Links

Activity

Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
42m 26s
1
Christophe DENEUX
Wed, 16 Feb 2011 - 17:02:13 +0100
Open Open In Progress In Progress
202d 23h 40m
1
Olivier Fabre
Wed, 7 Sep 2011 - 17:43:01 +0200
In Progress In Progress Resolved Resolved
10m 24s
1
Olivier Fabre
Wed, 7 Sep 2011 - 17:53:25 +0200

People

Dates

  • Created:
    Wed, 16 Feb 2011 - 16:19:47 +0100
    Updated:
    Wed, 7 Sep 2011 - 17:53:25 +0200
    Resolved:
    Wed, 7 Sep 2011 - 17:53:25 +0200