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

Hide
Christophe DENEUX added a comment - Wed, 30 Mar 2011 - 10:17:04 +0200

to merge in trunk (see comments of PETALSCDK-58)

Show
Christophe DENEUX added a comment - Wed, 30 Mar 2011 - 10:17:04 +0200 to merge in trunk (see comments of PETALSCDK-58)
Hide
strino added a comment - Tue, 29 Mar 2011 - 16:40:25 +0200 - edited

Fix patch in the branch 3.1.X

Show
strino added a comment - Tue, 29 Mar 2011 - 16:40:25 +0200 - edited Fix patch in the branch 3.1.X
Hide
Christophe DENEUX added a comment - Wed, 16 Feb 2011 - 17:09:47 +0100

A patch containing the fix for PETALSCDK-57 and PETALSCDK-58

Show
Christophe DENEUX added a comment - Wed, 16 Feb 2011 - 17:09:47 +0100 A patch containing the fix for PETALSCDK-57 and PETALSCDK-58
Hide
Christophe DENEUX added a comment - Wed, 16 Feb 2011 - 17:02:13 +0100

According to the XSD associated to the CDK fields, CR is a valid character for the JBI listener, but not for a class name. Just removed spaces and CR/LF around the JBI listener class name.

Show
Christophe DENEUX added a comment - Wed, 16 Feb 2011 - 17:02:13 +0100 According to the XSD associated to the CDK fields, CR is a valid character for the JBI listener, but not for a class name. Just removed spaces and CR/LF around the JBI listener class name.

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