Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignoreErrors seems to be ignored #158

Closed
tbe opened this issue Sep 3, 2014 · 3 comments
Closed

ignoreErrors seems to be ignored #158

tbe opened this issue Sep 3, 2014 · 3 comments

Comments

@tbe
Copy link

tbe commented Sep 3, 2014

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"}
@rhuss
Copy link
Member

rhuss commented Sep 3, 2014

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 ?

@rhuss
Copy link
Member

rhuss commented Sep 3, 2014

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 ...

@rhuss
Copy link
Member

rhuss commented Sep 3, 2014

Fixed it. Thanks for reporting this ....

@rhuss rhuss closed this as completed in 9a7bbdd Sep 3, 2014
rhuss added a commit that referenced this issue Sep 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants