Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-124

java.lang.NumberFormatException: multiple points when accessing /metrics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • MP Metrics
    • None

      When accessing http://127.0.0.1:9990/metrics I see java.lang.NumberFormatException: multiple points
      Using build from WFLY-10712_microprofile_metrics-smallrye branch.

      15:38:26,657 INFO  [stdout] (management I/O-2) metricName = /socket-binding-group/standard-sockets/socket-binding/management-http.bound-address
      15:38:26,661 ERROR [stderr] (management I/O-2) java.lang.NumberFormatException: multiple points
      15:38:26,662 ERROR [stderr] (management I/O-2) 	at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
      15:38:26,662 ERROR [stderr] (management I/O-2) 	at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
      15:38:26,662 ERROR [stderr] (management I/O-2) 	at java.base/java.lang.Double.parseDouble(Double.java:543)
      15:38:26,663 ERROR [stderr] (management I/O-2) 	at org.jboss.dmr@1.5.0.Final//org.jboss.dmr.StringModelValue.asDouble(StringModelValue.java:173)
      15:38:26,663 ERROR [stderr] (management I/O-2) 	at org.jboss.dmr@1.5.0.Final//org.jboss.dmr.ModelNode.asDouble(ModelNode.java:405)
      15:38:26,663 ERROR [stderr] (management I/O-2) 	at org.wildfly.extension.microprofile.metrics-smallrye@15.0.0.Alpha1-SNAPSHOT//org.wildfly.extension.microprofile.metrics.WildFlyMetricsRegistrationService$1.getValue(WildFlyMetricsRegistrationService.java:139)
      15:38:26,664 ERROR [stderr] (management I/O-2) 	at org.wildfly.extension.microprofile.metrics-smallrye@15.0.0.Alpha1-SNAPSHOT//org.wildfly.extension.microprofile.metrics.WildFlyMetricsRegistrationService$1.getValue(WildFlyMetricsRegistrationService.java:129)
      15:38:26,664 ERROR [stderr] (management I/O-2) 	at io.smallrye.metrics//io.smallrye.metrics.exporters.PrometheusExporter.createSimpleValueLine(PrometheusExporter.java:334)
      15:38:26,664 ERROR [stderr] (management I/O-2) 	at io.smallrye.metrics//io.smallrye.metrics.exporters.PrometheusExporter.exposeEntries(PrometheusExporter.java:137)
      15:38:26,664 ERROR [stderr] (management I/O-2) 	at io.smallrye.metrics//io.smallrye.metrics.exporters.PrometheusExporter.getEntriesForScope(PrometheusExporter.java:116)
      15:38:26,665 ERROR [stderr] (management I/O-2) 	at io.smallrye.metrics//io.smallrye.metrics.exporters.PrometheusExporter.exportAllScopes(PrometheusExporter.java:85)
      15:38:26,665 ERROR [stderr] (management I/O-2) 	at io.smallrye.metrics//io.smallrye.metrics.MetricsRequestHandler.handleRequest(MetricsRequestHandler.java:83)
      15:38:26,666 ERROR [stderr] (management I/O-2) 	at org.wildfly.extension.microprofile.metrics-smallrye@15.0.0.Alpha1-SNAPSHOT//org.wildfly.extension.microprofile.metrics.MetricsContextService$1.handleRequest(MetricsContextService.java:82)
      15:38:26,666 ERROR [stderr] (management I/O-2) 	at org.jboss.as.domain-http-interface@7.0.0.Alpha2//org.jboss.as.domain.http.server.security.RealmReadinessHandler.handleRequest(RealmReadinessHandler.java:51)
      15:38:26,667 ERROR [stderr] (management I/O-2) 	at org.jboss.as.domain-http-interface@7.0.0.Alpha2//org.jboss.as.domain.http.server.security.ServerErrorReadinessHandler.handleRequest(ServerErrorReadinessHandler.java:35)
      15:38:26,667 ERROR [stderr] (management I/O-2) 	at io.undertow.core@2.0.13.Final//io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:94)
      15:38:26,667 ERROR [stderr] (management I/O-2) 	at io.undertow.core@2.0.13.Final//io.undertow.server.handlers.ChannelUpgradeHandler.handleRequest(ChannelUpgradeHandler.java:211)
      15:38:26,667 ERROR [stderr] (management I/O-2) 	at io.undertow.core@2.0.13.Final//io.undertow.server.handlers.cache.CacheHandler.handleRequest(CacheHandler.java:92)
      15:38:26,668 ERROR [stderr] (management I/O-2) 	at io.undertow.core@2.0.13.Final//io.undertow.server.handlers.error.SimpleErrorPageHandler.handleRequest(SimpleErrorPageHandler.java:78)
      15:38:26,668 ERROR [stderr] (management I/O-2) 	at io.undertow.core@2.0.13.Final//io.undertow.server.handlers.CanonicalPathHandler.handleRequest(CanonicalPathHandler.java:49)
      15:38:26,668 ERROR [stderr] (management I/O-2) 	at org.jboss.as.domain-http-interface@7.0.0.Alpha2//org.jboss.as.domain.http.server.ManagementHttpRequestHandler.handleRequest(ManagementHttpRequestHandler.java:57)
      15:38:26,668 ERROR [stderr] (management I/O-2) 	at org.jboss.as.domain-http-interface@7.0.0.Alpha2//org.jboss.as.domain.http.server.cors.CorsHttpHandler.handleRequest(CorsHttpHandler.java:75)
      15:38:26,669 ERROR [stderr] (management I/O-2) 	at org.jboss.as.domain-http-interface@7.0.0.Alpha2//org.jboss.as.domain.http.server.ManagementHttpServer$UpgradeFixHandler.handleRequest(ManagementHttpServer.java:662)
      15:38:26,669 ERROR [stderr] (management I/O-2) 	at io.undertow.core@2.0.13.Final//io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)
      15:38:26,669 ERROR [stderr] (management I/O-2) 	at io.undertow.core@2.0.13.Final//io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:255)
      15:38:26,670 ERROR [stderr] (management I/O-2) 	at io.undertow.core@2.0.13.Final//io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
      15:38:26,670 ERROR [stderr] (management I/O-2) 	at io.undertow.core@2.0.13.Final//io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:147)
      15:38:26,670 ERROR [stderr] (management I/O-2) 	at io.undertow.core@2.0.13.Final//io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:93)
      15:38:26,671 ERROR [stderr] (management I/O-2) 	at io.undertow.core@2.0.13.Final//io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:52)
      15:38:26,671 ERROR [stderr] (management I/O-2) 	at org.jboss.xnio@3.6.5.Final//org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      15:38:26,671 ERROR [stderr] (management I/O-2) 	at org.jboss.xnio@3.6.5.Final//org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:291)
      15:38:26,671 ERROR [stderr] (management I/O-2) 	at org.jboss.xnio@3.6.5.Final//org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:286)
      15:38:26,672 ERROR [stderr] (management I/O-2) 	at org.jboss.xnio@3.6.5.Final//org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      15:38:26,672 ERROR [stderr] (management I/O-2) 	at org.jboss.xnio.nio@3.6.5.Final//org.xnio.nio.QueuedNioTcpServer$1.run(QueuedNioTcpServer.java:131)
      15:38:26,672 ERROR [stderr] (management I/O-2) 	at org.jboss.xnio.nio@3.6.5.Final//org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612)
      15:38:26,672 ERROR [stderr] (management I/O-2) 	at org.jboss.xnio.nio@3.6.5.Final//org.xnio.nio.WorkerThread.run(WorkerThread.java:479)
      

      This happens with every hit of metrics endpoint, marking as Blocker. We need to have "clear" logs.

              jmesnil1@redhat.com Jeff Mesnil
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: