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

Christophe DENEUX made changes - Wed, 16 Feb 2011 - 17:02:13 +0100
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Minor [ 4 ]
Christophe DENEUX made changes - Wed, 16 Feb 2011 - 17:02:33 +0100
Link This issue blocks PETALSBCJMS-10 [ PETALSBCJMS-10 ]
Christophe DENEUX made changes - Wed, 16 Feb 2011 - 17:09:47 +0100
Attachment PETALSCDK-57.patch [ 10524 ]
Olivier Fabre made changes - Wed, 7 Sep 2011 - 17:42:59 +0200
Assignee Sandra Trino [ strino ] Olivier Fabre [ ofabre ]
Olivier Fabre made changes - Wed, 7 Sep 2011 - 17:43:01 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Olivier Fabre made changes - Wed, 7 Sep 2011 - 17:53:25 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 5.2.0_4.0M1 [ 10267 ]
Resolution Fixed [ 1 ]

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