Petals Ant Tasks

Unable to get list of JBI components

Details

  • Description:
    Hide

    Using the Petals Ant tasks jbi-list-binding-components or jbi-list-service-engines to get the list of all components installed into a Petals container, I get the following error:

    org.ow2.petals.jmx.api.api.exception.ComponentDoesNotExistException
    	at org.ow2.petals.ant.AbstractJBIAntTask.execute(AbstractJBIAntTask.java:91)
    	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    	at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    	at org.apache.tools.ant.Task.perform(Task.java:348)
    	at org.apache.tools.ant.Target.execute(Target.java:392)
    	at org.apache.tools.ant.Target.performTasks(Target.java:413)
    	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    	... 46 more
    Caused by: org.ow2.petals.jmx.api.api.exception.ComponentDoesNotExistException
    	at org.ow2.petals.jmx.api.impl.JMXClientImpl.getComponentClient(JMXClientImpl.java:281)
    	at org.ow2.petals.ant.task.ListBindingComponentsTask.doTask(ListBindingComponentsTask.java:105)
    	at org.ow2.petals.ant.AbstractJBIAntTask.execute(AbstractJBIAntTask.java:88)
    	... 58 more
    Show
    Using the Petals Ant tasks jbi-list-binding-components or jbi-list-service-engines to get the list of all components installed into a Petals container, I get the following error:
    org.ow2.petals.jmx.api.api.exception.ComponentDoesNotExistException
    	at org.ow2.petals.ant.AbstractJBIAntTask.execute(AbstractJBIAntTask.java:91)
    	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    	at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    	at org.apache.tools.ant.Task.perform(Task.java:348)
    	at org.apache.tools.ant.Target.execute(Target.java:392)
    	at org.apache.tools.ant.Target.performTasks(Target.java:413)
    	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    	... 46 more
    Caused by: org.ow2.petals.jmx.api.api.exception.ComponentDoesNotExistException
    	at org.ow2.petals.jmx.api.impl.JMXClientImpl.getComponentClient(JMXClientImpl.java:281)
    	at org.ow2.petals.ant.task.ListBindingComponentsTask.doTask(ListBindingComponentsTask.java:105)
    	at org.ow2.petals.ant.AbstractJBIAntTask.execute(AbstractJBIAntTask.java:88)
    	... 58 more
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Mon, 12 Jan 2015 - 12:12:55 +0100

The error occurs into the Petals JMX API because of an erroneous check about JMX domain of the JMX bean associated to a JBI component. The JMX domain of a Petals JBI component is 'org.ow2.petals', not 'Petals'.

Show
Christophe DENEUX added a comment - Mon, 12 Jan 2015 - 12:12:55 +0100 The error occurs into the Petals JMX API because of an erroneous check about JMX domain of the JMX bean associated to a JBI component. The JMX domain of a Petals JBI component is 'org.ow2.petals', not 'Petals'.
Hide
Christophe DENEUX added a comment - Mon, 12 Jan 2015 - 12:15:49 +0100

Fix in trunk, svn#36659

Show
Christophe DENEUX added a comment - Mon, 12 Jan 2015 - 12:15:49 +0100 Fix in trunk, svn#36659

People

Dates

  • Created:
    Mon, 12 Jan 2015 - 12:10:46 +0100
    Updated:
    Mon, 12 Jan 2015 - 12:15:49 +0100
    Resolved:
    Mon, 12 Jan 2015 - 12:15:49 +0100