{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/Hystrix/issues/381","labels_url":"https://api.github.com/repos/Netflix/Hystrix/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/Hystrix/issues/381/comments","events_url":"https://api.github.com/repos/Netflix/Hystrix/issues/381/events","html_url":"https://github.com/Netflix/Hystrix/issues/381","id":53167487,"number":381,"title":"NullPointerException occurs when poller pauses in hystrix-metrics-event-stream-1.4.0-RC5.jar","user":{"login":"kbsivacse","id":10349185,"avatar_url":"https://avatars.githubusercontent.com/u/10349185?v=3","gravatar_id":"","url":"https://api.github.com/users/kbsivacse","html_url":"https://github.com/kbsivacse","followers_url":"https://api.github.com/users/kbsivacse/followers","following_url":"https://api.github.com/users/kbsivacse/following{/other_user}","gists_url":"https://api.github.com/users/kbsivacse/gists{/gist_id}","starred_url":"https://api.github.com/users/kbsivacse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbsivacse/subscriptions","organizations_url":"https://api.github.com/users/kbsivacse/orgs","repos_url":"https://api.github.com/users/kbsivacse/repos","events_url":"https://api.github.com/users/kbsivacse/events{/privacy}","received_events_url":"https://api.github.com/users/kbsivacse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Netflix/Hystrix/milestones/10","labels_url":"https://api.github.com/repos/Netflix/Hystrix/milestones/10/labels","id":909572,"number":10,"title":"1.4.0-RC6","description":"Next RC for 1.4.0.  Mostly bugfixes","creator":{"login":"mattrjacobs","id":205579,"avatar_url":"https://avatars.githubusercontent.com/u/205579?v=3","gravatar_id":"","url":"https://api.github.com/users/mattrjacobs","html_url":"https://github.com/mattrjacobs","followers_url":"https://api.github.com/users/mattrjacobs/followers","following_url":"https://api.github.com/users/mattrjacobs/following{/other_user}","gists_url":"https://api.github.com/users/mattrjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/mattrjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattrjacobs/subscriptions","organizations_url":"https://api.github.com/users/mattrjacobs/orgs","repos_url":"https://api.github.com/users/mattrjacobs/repos","events_url":"https://api.github.com/users/mattrjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/mattrjacobs/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":12,"state":"open","created_at":"2014-12-19T00:33:51Z","updated_at":"2015-01-07T06:24:49Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2014-12-31T05:03:32Z","updated_at":"2015-01-07T06:56:49Z","closed_at":null,"body":"Hi,\r\n\r\nI'm getting below exception when I try to access /hystrix.stream. Please check and let me know\r\n\r\njava.lang.NullPointerException\r\nat com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsPoller.pause(HystrixMetricsPoller.java:98)\r\nat com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsPoller.shutdown(HystrixMetricsPoller.java:108)\r\nat com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet.handleRequest(HystrixMetricsStreamServlet.java:168)\r\nat com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet.doGet(HystrixMetricsStreamServlet.java:74)\r\nat javax.servlet.http.HttpServlet.service(HttpServlet.java:621)\r\nat javax.servlet.http.HttpServlet.service(HttpServlet.java:722)\r\nat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)\r\nat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\nat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)\r\nat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)\r\nat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)\r\nat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)\r\nat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)\r\nat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)\r\nat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)\r\nat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)\r\nat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)\r\nat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)\r\nat org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)\r\nat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\nat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\nat java.lang.Thread.run(Thread.java:744)"},"comment":{"url":"https://api.github.com/repos/Netflix/Hystrix/issues/comments/68985767","html_url":"https://github.com/Netflix/Hystrix/issues/381#issuecomment-68985767","issue_url":"https://api.github.com/repos/Netflix/Hystrix/issues/381","id":68985767,"user":{"login":"mattrjacobs","id":205579,"avatar_url":"https://avatars.githubusercontent.com/u/205579?v=3","gravatar_id":"","url":"https://api.github.com/users/mattrjacobs","html_url":"https://github.com/mattrjacobs","followers_url":"https://api.github.com/users/mattrjacobs/followers","following_url":"https://api.github.com/users/mattrjacobs/following{/other_user}","gists_url":"https://api.github.com/users/mattrjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/mattrjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattrjacobs/subscriptions","organizations_url":"https://api.github.com/users/mattrjacobs/orgs","repos_url":"https://api.github.com/users/mattrjacobs/repos","events_url":"https://api.github.com/users/mattrjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/mattrjacobs/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T06:56:49Z","updated_at":"2015-01-07T06:56:49Z","body":"@kbsivacse Can you share some more context around this?  This NPE suggests that ```scheduledTask``` in ```HystrixMetricsPoller``` is null and ```running``` is true, which is an invalid state.  That's clearly a bug, so anything you can provide to help me replicate would be appreciated.  Specifically, what methods on ```HystrixMetricsPoller``` are you calling, and at what point in your server lifecycle are you calling them?"}}