com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: ".0"

ambari-user | Henning Kropp | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Re: Changing the Alert Definitions

    ambari-user | 1 year ago | Henning Kropp
    com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: ".0"
  2. 0

    Exception while converting String to BigInteger in Java

    Stack Overflow | 2 years ago | deepclue
    java.lang.NumberFormatException: Illegal embedded sign character
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    getting number format exception in JsonToBeanConverter when json entry is a double value

    GitHub | 2 years ago | michaelssun
    java.lang.NumberFormatException: For input string: ".5"
  5. 0

    1.4 LOAD DATA INFILE出错

    GitHub | 2 years ago | ggggggggod
    java.lang.NumberFormatException: For input string: "09 142674"

  1. musketyr 1 times, last 2 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: ".0"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    BigInteger.<init>
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    2. java.lang.Integer.parseInt(Integer.java:569)
    3. java.math.BigInteger.<init>(BigInteger.java:461)
    4. java.math.BigInteger.<init>(BigInteger.java:597)
    4 frames
  3. Gson
    Gson$2.deserialize
    1. com.google.gson.internal.LazilyParsedNumber.intValue(LazilyParsedNumber.java:41)
    2. com.google.gson.JsonPrimitive.getAsInt(JsonPrimitive.java:255)
    3. com.google.gson.internal.bind.JsonTreeReader.nextInt(JsonTreeReader.java:197)
    4. com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:230)
    5. com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:222)
    6. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
    7. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
    8. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
    9. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
    10. com.google.gson.Gson.fromJson(Gson.java:795)
    11. com.google.gson.Gson.fromJson(Gson.java:859)
    12. com.google.gson.Gson$2.deserialize(Gson.java:131)
    12 frames
  4. org.apache.ambari
    AlertDefinitionFactory$AlertDefinitionSourceAdapter.deserialize
    1. org.apache.ambari.server.state.alert.AlertDefinitionFactory$AlertDefinitionSourceAdapter.deserialize(AlertDefinitionFactory.java:350)
    2. org.apache.ambari.server.state.alert.AlertDefinitionFactory$AlertDefinitionSourceAdapter.deserialize(AlertDefinitionFactory.java:294)
    2 frames
  5. Gson
    Gson.fromJson
    1. com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)
    2. com.google.gson.Gson.fromJson(Gson.java:795)
    3. com.google.gson.Gson.fromJson(Gson.java:761)
    4. com.google.gson.Gson.fromJson(Gson.java:710)
    5. com.google.gson.Gson.fromJson(Gson.java:682)
    5 frames
  6. org.apache.ambari
    AlertHashInvalidationListener.onAmbariEvent
    1. org.apache.ambari.server.state.alert.AlertDefinitionFactory.coerce(AlertDefinitionFactory.java:195)
    2. org.apache.ambari.server.state.alert.AlertDefinitionHash.getAlertDefinitions(AlertDefinitionHash.java:240)
    3. org.apache.ambari.server.state.alert.AlertDefinitionHash.enqueueAgentCommands(AlertDefinitionHash.java:490)
    4. org.apache.ambari.server.state.alert.AlertDefinitionHash.enqueueAgentCommands(AlertDefinitionHash.java:460)
    5. org.apache.ambari.server.events.listeners.alerts.AlertHashInvalidationListener.onAmbariEvent(AlertHashInvalidationListener.java:94)
    5 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor225.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    3 frames
  8. Guava
    AsyncEventBus$1.run
    1. com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    2. com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    3. com.google.common.eventbus.AsyncEventBus.access$001(AsyncEventBus.java:34)
    4. com.google.common.eventbus.AsyncEventBus$1.run(AsyncEventBus.java:100)
    4 frames
  9. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames