Unable to fetch info for certain beans (jolokia-war-1.3.3)

classic Classic list List threaded Threaded
1 message Options
Tester Tester
Reply | Threaded
Open this post in threaded view
|

Unable to fetch info for certain beans (jolokia-war-1.3.3)

<a href="http://server:port/jolokia-war/read/Catalina:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=!/!/localhost!/jolokia-war">http://server:port/jolokia-war/read/Catalina:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=!/!/localhost!/jolokia-war

results in this backtrace:

{"error_type":"java.lang.IllegalStateException","error":"java.lang.IllegalStateException : Error while extracting nameInNamespace from org.apache.naming.NamingContext@335c92b3","status":500,"stacktrace":"java.lang.IllegalStateException: Error while extracting nameInNamespace from org.apache.naming.NamingContext@335c92b3\n\tat org.jolokia.converter.json.BeanExtractor.extractBeanPropertyValue(BeanExtractor.java:276)\n\tat org.jolokia.converter.json.BeanExtractor.extractJsonifiedPropertyValue(BeanExtractor.java:184)\n\tat org.jolokia.converter.json.BeanExtractor.extractBeanValues(BeanExtractor.java:168)\n\tat org.jolokia.converter.json.BeanExtractor.exctractJsonifiedValue(BeanExtractor.java:155)\n\tat org.jolokia.converter.json.BeanExtractor.extractObject(BeanExtractor.java:89)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.callHandler(ObjectToJsonConverter.java:330)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.extractObject(ObjectToJsonConverter.java:181)\n\tat org.jolokia.converter.json.BeanExtractor.extractJsonifiedPropertyValue(BeanExtractor.java:200)\n\tat org.jolokia.converter.json.BeanExtractor.extractBeanValues(BeanExtractor.java:168)\n\tat org.jolokia.converter.json.BeanExtractor.exctractJsonifiedValue(BeanExtractor.java:155)\n\tat org.jolokia.converter.json.BeanExtractor.extractObject(BeanExtractor.java:89)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.callHandler(ObjectToJsonConverter.java:330)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.extractObject(ObjectToJsonConverter.java:181)\n\tat org.jolokia.converter.json.BeanExtractor.extractJsonifiedPropertyValue(BeanExtractor.java:200)\n\tat org.jolokia.converter.json.BeanExtractor.extractBeanValues(BeanExtractor.java:168)\n\tat org.jolokia.converter.json.BeanExtractor.exctractJsonifiedValue(BeanExtractor.java:155)\n\tat org.jolokia.converter.json.BeanExtractor.extractObject(BeanExtractor.java:89)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.callHandler(ObjectToJsonConverter.java:330)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.extractObject(ObjectToJsonConverter.java:181)\n\tat org.jolokia.converter.json.MapExtractor.extractMapValues(MapExtractor.java:75)\n\tat org.jolokia.converter.json.MapExtractor.extractObject(MapExtractor.java:65)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.callHandler(ObjectToJsonConverter.java:330)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.extractObject(ObjectToJsonConverter.java:181)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.extractObjectWithContext(ObjectToJsonConverter.java:207)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.convertToJson(ObjectToJsonConverter.java:111)\n\tat org.jolokia.backend.BackendManager.callRequestDispatcher(BackendManager.java:425)\n\tat org.jolokia.backend.BackendManager.handleRequest(BackendManager.java:158)\n\tat org.jolokia.http.HttpRequestHandler.executeRequest(HttpRequestHandler.java:197)\n\tat org.jolokia.http.HttpRequestHandler.handleGetRequest(HttpRequestHandler.java:86)\n\tat org.jolokia.http.AgentServlet$4.handleRequest(AgentServlet.java:411)\n\tat org.jolokia.http.AgentServlet.handleSecurely(AgentServlet.java:290)\n\tat org.jolokia.http.AgentServlet.handle(AgentServlet.java:261)\n\tat org.jolokia.http.AgentServlet.doGet(AgentServlet.java:221)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:621)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:728)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)\n\tat org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat java.lang.Thread.run(Thread.java:745)\nCaused by: java.lang.reflect.InvocationTargetException\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:606)\n\tat org.jolokia.converter.json.BeanExtractor.extractBeanPropertyValue(BeanExtractor.java:271)\n\t... 50 more\nCaused by: javax.naming.OperationNotSupportedException: Can''t generate an absolute name for this namespace\n\tat org.apache.naming.NamingContext.getNameInNamespace(NamingContext.java:789)\n\t... 55 more\n"}



However, the following request poses no problems? =>
<a href="http://server:port/jolokia-war/search/Catalina:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=!/!/localhost!/jolokia-war">http://server:port/jolokia-war/search/Catalina:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=!/!/localhost!/jolokia-war

{"timestamp":1466173755,"status":200,"request":{"mbean":"Catalina:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=\/\/localhost\/jolokia-war","type":"search"},"value":["Catalina:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=\/\/localhost\/jolokia-war"]}

And I can also read attributes of that bean:
<a href="http://server:port/jolokia-war/read/Catalina:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=!/!/localhost!/jolokia-war/displayName">http://server:port/jolokia-war/read/Catalina:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=!/!/localhost!/jolokia-war/displayName

And this works and returns all attributes?
<a href="http://server:port/jolokia-war/read/Catalina:context=!/jolokia-war,host=localhost,type=Manager">http://server:port/jolokia-war/read/Catalina:context=!/jolokia-war,host=localhost,type=Manager

What am I doing wrong in the first case and why does it work in the second?