Skip to content

ignoreErrors seems to be ignored #158

Closed

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"}

Activity

  1. rhuss commented on Sep 3, 2014

    @rhuss
    Member

    I see the issue, but I wonder whether this ever worked. Can you please give me the last version of Jolokia that worked for you ?

  2. rhuss commented on Sep 3, 2014

    @rhuss
    Member

    Ok, found it. The issue was introduced in 1.1.0 (2013-2-28). Still checking whether this was a 'feature', but probably in fact a bug (over-agressive refactoring). Stay tuned ...

  3. rhuss commented on Sep 3, 2014

    @rhuss
    Member

    Fixed it. Thanks for reporting this ....

  4. added a commit that references this issue on Sep 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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