6 Replies Latest reply on Jun 21, 2012 2:32 PM by Eduardo de Vera Toquero

    Error when requesting metrics for a Camel Route based service

    Eduardo de Vera Toquero Newbie

      When requesting metrics for a Camel Route based service, I get an error with the following stacktrace:

       

      16:11:00,364 ERROR [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 3) JBAS014612: Operation ("show-metrics") failed - address: ({"subsystem" => "switchyard"}): java.lang.NullPointerException

                at org.switchyard.as7.extension.admin.ModelNodeCreationUtil.createServiceMetricsNode(ModelNodeCreationUtil.java:504) [switchyard-deploy-jboss-as7-0.4.0.Final.jar:0.4.0.Final]

                at org.switchyard.as7.extension.admin.SwitchYardSubsystemShowMetrics$1.execute(SwitchYardSubsystemShowMetrics.java:79) [switchyard-deploy-jboss-as7-0.4.0.Final.jar:0.4.0.Final]

                at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.switchyard.as7.extension.admin.SwitchYardSubsystemShowMetrics.execute(SwitchYardSubsystemShowMetrics.java:93) [switchyard-deploy-jboss-as7-0.4.0.Final.jar:0.4.0.Final]

                at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:466) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:121) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:309) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:299) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.domain.http.server.DomainApiHandler.processRequest(DomainApiHandler.java:294)

                at org.jboss.as.domain.http.server.DomainApiHandler.doHandle(DomainApiHandler.java:201)

                at org.jboss.as.domain.http.server.DomainApiHandler.handle(DomainApiHandler.java:208)

                at org.jboss.as.domain.http.server.security.SubjectAssociationHandler.handle(SubjectAssociationHandler.java:51)

                at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)

                at org.jboss.sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:69)

                at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)

                at org.jboss.sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:710)

                at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)

                at org.jboss.as.domain.http.server.RealmReadinessFilter.doFilter(RealmReadinessFilter.java:54)

                at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)

                at org.jboss.sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:682)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_33]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_33]

                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_33]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122)

       

      The service works but the metrics seem not to.