Petals SE JSR181

Error message on class name error is not clear

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.1.2, 1.1.3
  • Fix Version/s: 1.3.0
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    If the class name defined in the JBI descriptor does not exist, the error message is not clear:

    [Petals.Container.ServiceAssemblyLifeCycle.sa-jsr181]-SEVERE 2010-08-17 18:30:49,250 Failed to start the Service Unit 'su-jsr181-network-provide'
    javax.jbi.management.DeploymentException: Failed to start the Service Unit 'su-jsr181-network-provide'
    at org.ow2.petals.component.framework.su.AbstractServiceUnitManager.start(AbstractServiceUnitManager.java:617)
    at org.ow2.petals.container.lifecycle.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:161)
    at org.ow2.petals.container.lifecycle.ServiceAssemblyLifeCycle.doStart(ServiceAssemblyLifeCycle.java:166)
    at org.ow2.petals.container.lifecycle.LifeCycleAbstract.start(LifeCycleAbstract.java:185)
    at org.ow2.petals.jbi.management.deployment.DeploymentServiceImpl.start(DeploymentServiceImpl.java:533)
    at org.objectweb.fractal.julia.generated.C7949fad8_0.start(INTERCEPTOR[DeploymentServiceMBean])
    at org.objectweb.fractal.julia.generated.C7566203_0.start(INTERFACE[DeploymentServiceMBean])
    at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.performDeploySA(AutoLoaderServiceImpl.java:450)
    at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.install(AutoLoaderServiceImpl.java:169)
    at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(InstallDirectoryScanner.java:81)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
    Caused by: org.ow2.petals.component.framework.api.exception.PEtALSCDKException: An Axis service could not be created from the JAX-WS class.
    at org.ow2.petals.se.jsr181.model.JaxConfigurationHandler.start(JaxConfigurationHandler.java:141)
    at org.ow2.petals.se.jsr181.Jsr181SuManager.doStart(Jsr181SuManager.java:147)
    at org.ow2.petals.component.framework.su.AbstractServiceUnitManager.start(AbstractServiceUnitManager.java:615)
    ... 11 more

    Please add a check on the class existing, and display an understandable error mesage as 'The class 'aaa.bbb.ccc.ddd' is not found', and remove the stack trace.

    Show
    If the class name defined in the JBI descriptor does not exist, the error message is not clear: [Petals.Container.ServiceAssemblyLifeCycle.sa-jsr181]-SEVERE 2010-08-17 18:30:49,250 Failed to start the Service Unit 'su-jsr181-network-provide' javax.jbi.management.DeploymentException: Failed to start the Service Unit 'su-jsr181-network-provide' at org.ow2.petals.component.framework.su.AbstractServiceUnitManager.start(AbstractServiceUnitManager.java:617) at org.ow2.petals.container.lifecycle.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:161) at org.ow2.petals.container.lifecycle.ServiceAssemblyLifeCycle.doStart(ServiceAssemblyLifeCycle.java:166) at org.ow2.petals.container.lifecycle.LifeCycleAbstract.start(LifeCycleAbstract.java:185) at org.ow2.petals.jbi.management.deployment.DeploymentServiceImpl.start(DeploymentServiceImpl.java:533) at org.objectweb.fractal.julia.generated.C7949fad8_0.start(INTERCEPTOR[DeploymentServiceMBean]) at org.objectweb.fractal.julia.generated.C7566203_0.start(INTERFACE[DeploymentServiceMBean]) at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.performDeploySA(AutoLoaderServiceImpl.java:450) at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.install(AutoLoaderServiceImpl.java:169) at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(InstallDirectoryScanner.java:81) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: org.ow2.petals.component.framework.api.exception.PEtALSCDKException: An Axis service could not be created from the JAX-WS class. at org.ow2.petals.se.jsr181.model.JaxConfigurationHandler.start(JaxConfigurationHandler.java:141) at org.ow2.petals.se.jsr181.Jsr181SuManager.doStart(Jsr181SuManager.java:147) at org.ow2.petals.component.framework.su.AbstractServiceUnitManager.start(AbstractServiceUnitManager.java:615) ... 11 more Please add a check on the class existing, and display an understandable error mesage as 'The class 'aaa.bbb.ccc.ddd' is not found', and remove the stack trace.
  • Environment:
    petals-se-jsr181 v1.1.3-SNAPSHOT

Activity

Hide
Christophe DENEUX added a comment - Tue, 17 Aug 2010 - 18:48:36 +0200

Please update the field 'affects version/s' with the right values

Show
Christophe DENEUX added a comment - Tue, 17 Aug 2010 - 18:48:36 +0200 Please update the field 'affects version/s' with the right values
Hide
Vincent Zurczak added a comment - Tue, 17 Aug 2010 - 19:10:28 +0200

We talked about it, and it is all about our logging rules.
Once they are defined, I will fix this bug.

Show
Vincent Zurczak added a comment - Tue, 17 Aug 2010 - 19:10:28 +0200 We talked about it, and it is all about our logging rules. Once they are defined, I will fix this bug.
Hide
Vincent Zurczak added a comment - Tue, 10 Apr 2012 - 17:26:51 +0200

Commit #32019
Test the class existence in the class path.
Add better error messages on exceptions.

Show
Vincent Zurczak added a comment - Tue, 10 Apr 2012 - 17:26:51 +0200 Commit #32019 Test the class existence in the class path. Add better error messages on exceptions.

People

Dates

  • Created:
    Tue, 17 Aug 2010 - 18:43:00 +0200
    Updated:
    Tue, 10 Apr 2012 - 19:21:21 +0200
    Resolved:
    Tue, 10 Apr 2012 - 17:26:50 +0200