java.lang.NumberFormatException: For input string: "0.0"

GitHub | guser11 | 4 months ago
  1. 0

    Incorrect default values is generated for integer type parameters

    GitHub | 4 months ago | guser11
    java.lang.NumberFormatException: For input string: "0.0"
  2. 0

    Exception when generating Perl SDK

    GitHub | 10 months ago | HipZena
    java.lang.NumberFormatException: For input string: "6.0"
  3. 0

    Error handling default value for Integer

    GitHub | 10 months ago | wing328
    java.lang.NumberFormatException: For input string: "6.0"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    not using default values causes stacktrace for integers

    GitHub | 12 months ago | imod
    java.lang.NumberFormatException: For input string: ""

  1. marcbouvierdav 2 times, last 3 months ago
  2. kuldeep 4 times, last 3 months ago
  3. Piz 2 times, last 4 months ago
  4. mortalman7 4 times, last 5 months ago
  5. bpbhat77 681 times, last 8 months ago
14 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.0"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Long.valueOf
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    2. java.lang.Long.parseLong(Long.java:589)
    3. java.lang.Long.valueOf(Long.java:803)
    3 frames
  3. io.swagger.models
    AbstractSerializableParameter.getDefault
    1. io.swagger.models.parameters.AbstractSerializableParameter.getDefault(AbstractSerializableParameter.java:193)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  5. Jackson
    ObjectWriter.writeValueAsString
    1. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:466)
    2. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639)
    3. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152)
    4. com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:128)
    5. com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:800)
    6. com.fasterxml.jackson.databind.ObjectWriter.writeValueAsString(ObjectWriter.java:676)
    6 frames
  6. io.swagger.util
    Json.pretty
    1. io.swagger.util.Json.pretty(Json.java:23)
    1 frame
  7. io.swagger.codegen
    SwaggerCodegen.main
    1. io.swagger.codegen.DefaultCodegen.fromParameter(DefaultCodegen.java:2002)
    2. io.swagger.codegen.DefaultCodegen.fromOperation(DefaultCodegen.java:1835)
    3. io.swagger.codegen.DefaultGenerator.processOperation(DefaultGenerator.java:733)
    4. io.swagger.codegen.DefaultGenerator.processPaths(DefaultGenerator.java:677)
    5. io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:365)
    6. io.swagger.codegen.cmd.Generate.run(Generate.java:223)
    7. io.swagger.codegen.SwaggerCodegen.main(SwaggerCodegen.java:36)
    7 frames