{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6115","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6115/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6115/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6115/events","html_url":"https://github.com/spring-projects/spring-boot/issues/6115","id":158346240,"number":6115,"title":"Nullpointer in SimpleInMemoryRepository","user":{"login":"pcornelissen","id":1177440,"avatar_url":"https://avatars.githubusercontent.com/u/1177440?v=3","gravatar_id":"","url":"https://api.github.com/users/pcornelissen","html_url":"https://github.com/pcornelissen","followers_url":"https://api.github.com/users/pcornelissen/followers","following_url":"https://api.github.com/users/pcornelissen/following{/other_user}","gists_url":"https://api.github.com/users/pcornelissen/gists{/gist_id}","starred_url":"https://api.github.com/users/pcornelissen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcornelissen/subscriptions","organizations_url":"https://api.github.com/users/pcornelissen/orgs","repos_url":"https://api.github.com/users/pcornelissen/repos","events_url":"https://api.github.com/users/pcornelissen/events{/privacy}","received_events_url":"https://api.github.com/users/pcornelissen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/64","html_url":"https://github.com/spring-projects/spring-boot/milestones/1.3.6","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/64/labels","id":1755816,"number":64,"title":"1.3.6","description":"","creator":{"login":"snicoll","id":490484,"avatar_url":"https://avatars.githubusercontent.com/u/490484?v=3","gravatar_id":"","url":"https://api.github.com/users/snicoll","html_url":"https://github.com/snicoll","followers_url":"https://api.github.com/users/snicoll/followers","following_url":"https://api.github.com/users/snicoll/following{/other_user}","gists_url":"https://api.github.com/users/snicoll/gists{/gist_id}","starred_url":"https://api.github.com/users/snicoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snicoll/subscriptions","organizations_url":"https://api.github.com/users/snicoll/orgs","repos_url":"https://api.github.com/users/snicoll/repos","events_url":"https://api.github.com/users/snicoll/events{/privacy}","received_events_url":"https://api.github.com/users/snicoll/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":33,"state":"open","created_at":"2016-05-09T16:05:14Z","updated_at":"2016-06-16T10:36:39Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-06-03T11:23:44Z","updated_at":"2016-06-16T10:58:14Z","closed_at":null,"body":"We're using spring boot 1.3.2 with Angel.SR6 for spring cloud. The service is a reverse proxy with zuul and occasionally we get this exception in the log:\r\n\r\n```\r\n2016-05-26T13:33:09.221+0200;1.3;0.0.0;http-nio-10.5.31.21-8080-exec-74:140;-;-;WARN ;org.springframework.boot.actuate.autoconfigure.MetricsFilter;[Unable to submit counter metric 'status.500.userservice-rest.star-star']\r\n\tjava.lang.NullPointerException: null\r\n\tat org.springframework.boot.actuate.metrics.util.SimpleInMemoryRepository.update(SimpleInMemoryRepository.java:44)\r\n\tat org.springframework.boot.actuate.metrics.repository.InMemoryMetricRepository.increment(InMemoryMetricRepository.java:51)\r\n\tat org.springframework.boot.actuate.metrics.writer.DefaultCounterService.increment(DefaultCounterService.java:44)\r\n\tat org.springframework.boot.actuate.autoconfigure.MetricsFilter.incrementCounter(MetricsFilter.java:205)\r\n\tat org.springframework.boot.actuate.autoconfigure.MetricsFilter.recordMetrics(MetricsFilter.java:138)\r\n\tat org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:110)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)\r\n\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)\r\n\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```\r\n\r\nIt usually occurs at night on a test system with not much traffic.\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/226453563","html_url":"https://github.com/spring-projects/spring-boot/issues/6115#issuecomment-226453563","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6115","id":226453563,"user":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T10:58:14Z","updated_at":"2016-06-16T10:58:14Z","body":"I guess maybe you are right. You are sometimes willing to forgo metric accuracy in return for not crashing the app. But what we have now is inaccurate and crashes, so not really a great compromise. What would be better would be an active map with TTL expiry, so maybe we could make the map instance configurable (injectable) and go with a normal map as the default."}}
{"actor":{"display_login":"dsyer"}}