Skip to content

ignoreErrors seems to be ignored #158

@tbe

Description

@tbe

With jolokia-1.2.2, "config":{"ignoreErrors":"true"} does not work anymore:

POST http://localhost:8778/jolokia/

{"attribute":["LastGcInfo","LastCollectionStartTime","LastCollectionEndTime","CollectionTime","CollectionCount"],"type":"READ","config":{"ignoreErrors":"true"},"mbean":"java.lang:name=PS MarkSweep,type=GarbageCollector"}
===========================================================
HTTP/1.1 200 OK
Cache-Control: no-cache
Date: Wed, 03 Sep 2014 11:51:05 GMT
Pragma: no-cache
Content-Length: 2890
Content-Type: text/plain; charset=utf-8
Expires: Wed, 03 Sep 2014 10:51:05 GMT
Client-Date: Wed, 03 Sep 2014 11:51:05 GMT
Client-Peer: 127.0.0.1:8778
Client-Response-Num: 1

{"error_type":"javax.management.AttributeNotFoundException","error":"javax.management.AttributeNotFoundException : No such attribute: LastCollectionStartTime","status":404,"request":{"mbean":"java.lang:name=PS MarkSweep,type=GarbageCollector","attribute":["LastGcInfo","LastCollectionStartTime","LastCollectionEndTime","CollectionTime","CollectionCount"],"type":"read"},"stacktrace":"javax.management.AttributeNotFoundException: No such attribute: LastCollectionStartTime\n\tat com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:81)\n\tat com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:206)\n\tat javax.management.StandardMBean.getAttribute(StandardMBean.java:372)\n\tat com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647)\n\tat com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)\n\tat org.jolokia.handler.ReadHandler$2.execute(ReadHandler.java:60)\n\tat org.jolokia.backend.executor.AbstractMBeanServerExecutor.call(AbstractMBeanServerExecutor.java:90)\n\tat org.jolokia.handler.ReadHandler.getAttribute(ReadHandler.java:233)\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.JsonRequestHandler.handleRequest(JsonRequestHandler.java:160)\n\tat org.jolokia.backend.MBeanServerHandler.dispatchRequest(MBeanServerHandler.java:97)\n\tat org.jolokia.backend.LocalRequestDispatcher.dispatchRequest(LocalRequestDispatcher.java:98)\n\tat org.jolokia.backend.BackendManager.callRequestDispatcher(BackendManager.java:410)\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.handlePostRequest(HttpRequestHandler.java:137)\n\tat org.jolokia.jvmagent.JolokiaHttpHandler.executePostRequest(JolokiaHttpHandler.java:261)\n\tat org.jolokia.jvmagent.JolokiaHttpHandler.doHandle(JolokiaHttpHandler.java:201)\n\tat org.jolokia.jvmagent.JolokiaHttpHandler.handle(JolokiaHttpHandler.java:175)\n\tat com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)\n\tat sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)\n\tat com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)\n\tat sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:677)\n\tat com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)\n\tat sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:649)\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)\n"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions