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

GitHub | kahd1993 | 4 months ago
  1. 0

    GitHub comment 1116#168360814

    GitHub | 11 months ago | zhugw
    java.lang.NumberFormatException: For input string: ""
  2. 0

    GitHub comment 1116#237159837

    GitHub | 4 months ago | kahd1993
    java.lang.NumberFormatException: For input string: ""
  3. 0

    Reg Swagger-UI

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

    Automated exception search integrated into your IDE

  5. 0

    Error in console during protractor tests

    GitHub | 9 months ago | deepu105
    java.lang.NumberFormatException: For input string: ""
  6. 0

    Swagger Docs are throwing a NumberFormatException

    GitHub | 9 months ago | mraible
    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: ""

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Long.valueOf
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)[na:1.8.0_65]
    2. java.lang.Long.parseLong(Long.java:601)[na:1.8.0_65]
    3. java.lang.Long.valueOf(Long.java:803)[na:1.8.0_65]
    3 frames
  3. io.swagger.models
    AbstractSerializableParameter.getDefault
    1. io.swagger.models.parameters.AbstractSerializableParameter.getDefault(AbstractSerializableParameter.java:161)[swagger-models-1.5.4.jar:1.5.4]
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_65]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_65]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_65]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_65]
    4 frames
  5. Jackson
    ObjectMapper.writeValueAsString
    1. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:654)[jackson-databind-2.6.4.jar:2.6.4]
    2. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:675)[jackson-databind-2.6.4.jar:2.6.4]
    3. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157)[jackson-databind-2.6.4.jar:2.6.4]
    4. com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:119)[jackson-databind-2.6.4.jar:2.6.4]
    5. com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:79)[jackson-databind-2.6.4.jar:2.6.4]
    6. com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:18)[jackson-databind-2.6.4.jar:2.6.4]
    7. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:693)[jackson-databind-2.6.4.jar:2.6.4]
    8. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:675)[jackson-databind-2.6.4.jar:2.6.4]
    9. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157)[jackson-databind-2.6.4.jar:2.6.4]
    10. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:693)[jackson-databind-2.6.4.jar:2.6.4]
    11. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:675)[jackson-databind-2.6.4.jar:2.6.4]
    12. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157)[jackson-databind-2.6.4.jar:2.6.4]
    13. com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:561)[jackson-databind-2.6.4.jar:2.6.4]
    14. com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:469)[jackson-databind-2.6.4.jar:2.6.4]
    15. com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:29)[jackson-databind-2.6.4.jar:2.6.4]
    16. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:693)[jackson-databind-2.6.4.jar:2.6.4]
    17. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:675)[jackson-databind-2.6.4.jar:2.6.4]
    18. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157)[jackson-databind-2.6.4.jar:2.6.4]
    19. com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:130)[jackson-databind-2.6.4.jar:2.6.4]
    20. com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3559)[jackson-databind-2.6.4.jar:2.6.4]
    21. com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:2927)[jackson-databind-2.6.4.jar:2.6.4]
    21 frames
  6. springfox.documentation.spring
    JsonSerializer.toJson
    1. springfox.documentation.spring.web.json.JsonSerializer.toJson(JsonSerializer.java:38)[springfox-spring-web-2.3.0.jar:2.3.0]
    1 frame
  7. springfox.documentation.swagger2
    Swagger2Controller.getDocumentation
    1. springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(Swagger2Controller.java:80)[springfox-swagger2-2.3.0.jar:2.3.0]
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_65]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_65]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_65]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_65]
    4 frames
  9. Spring
    InvocableHandlerMethod.invokeForRequest
    1. org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2 frames
  10. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:814)[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:737)[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:969)[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    8. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:860)[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    8 frames
  11. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:622)[tomcat-embed-core-8.0.30.jar:8.0.30]
    1 frame
  12. Spring MVC
    FrameworkServlet.service
    1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845)[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    1 frame
  13. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)[tomcat-embed-core-8.0.30.jar:8.0.30]
    1 frame
  14. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2 frames
  15. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)[tomcat-embed-websocket-8.0.30.jar:8.0.30]
    1 frame
  16. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2 frames
  17. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2 frames
  18. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2 frames
  19. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2 frames
  20. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2 frames
  21. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2 frames
  22. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2 frames
  23. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2 frames
  24. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.30.jar:8.0.30]
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)[tomcat-embed-core-8.0.30.jar:8.0.30]
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)[tomcat-embed-core-8.0.30.jar:8.0.30]
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)[tomcat-embed-core-8.0.30.jar:8.0.30]
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)[tomcat-embed-core-8.0.30.jar:8.0.30]
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[tomcat-embed-core-8.0.30.jar:8.0.30]
    8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)[tomcat-embed-core-8.0.30.jar:8.0.30]
    9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)[tomcat-embed-core-8.0.30.jar:8.0.30]
    9 frames
  25. Grizzly HTTP
    NioEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)[tomcat-embed-core-8.0.30.jar:8.0.30]
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)[tomcat-embed-core-8.0.30.jar:8.0.30]
    3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)[tomcat-embed-core-8.0.30.jar:8.0.30]
    4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)[tomcat-embed-core-8.0.30.jar:8.0.30]
    4 frames
  26. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_65]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_65]
    2 frames
  27. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-embed-core-8.0.30.jar:8.0.30]
    1 frame
  28. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_65]
    1 frame