Wildfly16: jboss.as mbean не обнаружен, когда я скручиваю прослушиватель ajp

Я использую jolokia на wildfly 16, чтобы получить метрики jmx. когда я запускаю приведенную ниже команду curl, она выдает ошибку, поскольку mbean jboss.as не найден. Та же команда отлично работает в wildfly10.

Команда:curl http://xxxxxxx:1234/jolokia/read/jboss.as:subsystem=undertow,server=default-server,ajp-listener=ajp/requestCount,errorCount.

ОШИБКА:

{"request":{"mbean":"jboss.as:ajp-listener=ajp,server=default-server,subsystem=undertow","attribute":["requestCount","errororCount"pting,"type":"read"},"stacktrace":"javax.management.InstanceNotFoundException: WFLYJMX0017: MBean не найден с именем jboss.as:subsystem=undertow,server=default-server,ajp-listener=ajp\n\tat org.jboss.as.jmx.model.ResourceAccessControlUtil.getResourceAccessWithInstanceNotFoundExceptionIfNotAccessible(ResourceAccessControlUtil.java:72)\n\tat org.jboss.as.jmx.model.ModelControllerMBeanHelper.jmx.model.ModelControllerMBeanServerPlugin.getAttribute(ModelControllerMBeanServerPlugin.java:142)\n\tat org.jboss.as.jmx.PluggableMBeanServerImpl.getAttribute(PluggableMBeanServerImpl.java:388)\n\tat org.jolokia.handler.ReadHandler$2.execute(ReadHandler.java:60)\n\tat org.jolokia.backend.executor.AbstractMBeanServerExecuteor.callServerExecutor.call)\n\tat org.jolokia.handler.ReadHandler.getAttribute(ReadHandler.java:235)\n\tat org.jolokia.handler.ReadHandler.fetchAttributes(ReadHandler.java:189)\n\tat org.jolokia.handler.ReadHandler.doHandleRequest(ReadHandler.java:118)\n\tat org.jolokia.handler.ReadHandler.doHandleRequest(ReadHandler.java:37)\n\tat org.jolokia.handler.JsonRequestHandler16.handleRequest()\n\tat org.jolokia.backend.MBeanServerHandler.dispatchRequest(MBeanServerHandler.java:156)\n\tat org.jolokia.backend.LocalRequestDispatcher.dispatchRequest(LocalRequestDispatcher.dispatchRequest(LocalRequestDispatcher) \ noloka.java:.BackendManager.callRequestDispatcher(BackendManager.java:429)\n\tat org.jolokia.backend.BackendManager.handleRequest(BackendManager.java:158)\n\tat org.jolokia.http.HttpRequestHandler.executep.Request(Handler.executep). \tat org.jolokia.http.HttpRequestHandler.handleGetRequest(HttpRequestHandler.java:86)\n\tat org.jolokia.http.AgentServlet$4.handleRequest(AgentServlet.java:470)\npletAgent..handleSecurely(AgentServlet.java:350)\n\tat org.jolokia.http.AgentServlet.handle(AgentServlet.java:321)\n\tat org.jolokia.http.AgentServlet.doGet(AgentServlet)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:686)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:791)\n\tat io.undertow.servlet..ServletHandler.handleRequest(ServletHandler.java:74)\n\tat io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)\n\tat io.undertow.servlet.handlers.ServletChain$1..java.)\n\tat io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)\n\tat io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.javaRequest(n\tat io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)\n\tat io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)\n\tat io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.vletConfidentialityConstraintHandler.handleConfidentialityConstraintHandler.HandleConfidentialityConstraintHandler. \tat io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)\n\tat io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedHatlerAuthenticatedSessionHandler.handleRequest(CachedHatlerAutlericated) \ n undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)\ п \ тат io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)\ п \ тат io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)\n\tat org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)\n\tat io.undertow.servericateHandler.Predhandler. PredicateHandler.java:43)\n\tat org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)\n\tat io.undertow.server.handlers.PredicateRequestHandler.handlers.PredicateRequestHandler.43)\n\tat io.undertow.server.handlers.MetricsHandler.handleRequest(MetricsHandler.java:64)\n\tat io.undertow.servlet.core.MetricsChainHandler.handleRequest(MetricsChainHandler.java:59)\n\tat io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)\n\tat io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)\n\tat io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)\n\tat io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler) \ n135\tat io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)\n\tat io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoader).wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105) \ n \ tat org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowAction.deployment.UndertowDeploymentInfoService $ UndertowAction. \n\tat org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)\n\tat org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)\n\tat org.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$ create $0(UndertowDeploymentInfoService.java:1502) \ n \ tat io.undertow.servlet.handlers.ServletInitialHandler.displetInfoService \ tundertow.InfoService..handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)\n\tat io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)\n\tat serio.undertowctors. (Connectors.java:364)\n\tat io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)\n\tat org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)\n\tat org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)\n\tathancee.DecDorDue.jpgjava:1486)\n\tat org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)\n\tat java.lang.Thread.run(Thread.java:748)\n","error_type":"javax.management.InstanceNotFoundException","error":"javax.management.InstanceNotFoundException: WFLYJMX0017: не найден MBean с именем jboss.as:subsystem=undertow,server=default-server,ajp-listener=ajp ", статус:: 404java: 1982) \ n \ tat org.jboss.threads.EnhancedQueueExecutor $ ThreadBody.doRunTask (EnhancedQueueExecutor.java:1486) \ n \ tat org.jboss.threads.EnhancedQueueExecutor $ ThreadBody.ruejava (EnhancedQueueExecutor $ ThreadBody.ruejava: \ tat java.lang.Thread.run (Thread.java:748) \ n "," error_type ":" javax.management.InstanceNotFoundException "," error ":" javax.management.InstanceNotFoundException: WFLYJMX0017: MBean с именем не найден jboss.as:subsystem=undertow,server=default-server,ajp-listener=ajp","status::404java: 1982) \ n \ tat org.jboss.threads.EnhancedQueueExecutor $ ThreadBody.doRunTask (EnhancedQueueExecutor.java:1486) \ n \ tat org.jboss.threads.EnhancedQueueExecutor $ ThreadBody.ruejava (EnhancedQueueExecutor $ ThreadBody.ruejava: \ tat java.lang.Thread.run (Thread.java:748) \ n "," error_type ":" javax.management.InstanceNotFoundException "," error ":" javax.management.InstanceNotFoundException: WFLYJMX0017: MBean с именем не найден jboss.as:subsystem=undertow,server=default-server,ajp-listener=ajp","status::404InstanceNotFoundException "," error ":" javax.management.InstanceNotFoundException: WFLYJMX0017: не найден MBean с именем jboss.as:subsystem=undertow,server=default-server,ajp-listener=ajp","status::404InstanceNotFoundException "," error ":" javax.management.InstanceNotFoundException: WFLYJMX0017: не найден MBean с именем jboss.as:subsystem=undertow,server=default-server,ajp-listener=ajp","status::404

То же отлично работает в wildfly10.

0 ответов

Другие вопросы по тегам