Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    Your json input might be invalid. Try checking it in a validator like https://jsonlint.com

  2. ,

    Your custom gson deserializer might have a bug. Try to write a unit test that checks proper deserialization of only that class by forging a json that contains a single field of that type.

Solutions on the web

via GitHub by aerickson
, 1 year ago
java.lang.NumberFormatException: empty String |
via Stack Overflow by Artem Shevchenko
, 2 years ago
via GitHub by thrillfall
, 2 years ago
java.lang.NumberFormatException: Invalid int: ""
via GitHub by thrillfall
, 2 years ago
java.lang.NumberFormatException: Invalid int: ""
via Stack Overflow by prem
, 1 year ago
java.lang.NumberFormatException: Expected an int but was 1035.16 at line 1 column 138 path $.list[0].main.pressure
via GitHub by thrillfall
, 1 year ago
java.lang.NumberFormatException: Invalid double: ""
com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: empty String                                                                      |	at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:249)	at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:239)	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:116)	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:216)	at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)	at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72)	at com.google.gson.Gson.fromJson(Gson.java:879)	at com.google.gson.Gson.fromJson(Gson.java:844)	at com.google.gson.Gson.fromJson(Gson.java:793)	at com.google.gson.Gson.fromJson(Gson.java:765)	at com.bwssystems.HABridge.hue.HueMulator.changeState(HueMulator.java:750)	at com.bwssystems.HABridge.hue.HueMulator.lambda$21(HueMulator.java:260)	at spark.RouteImpl$1.handle(RouteImpl.java:58)	at spark.webserver.MatcherFilter.doFilter(MatcherFilter.java:162)	at spark.webserver.JettyHandler.doHandle(JettyHandler.java:61)	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)	at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)	at org.eclipse.jetty.server.Server.handle(Server.java:517)	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:302)	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:245)	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)	at java.lang.Thread.run(Thread.java:745)