com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of boolean from String value '1': only "true" or "false" recognized at [Source: {"gtfsRouteId":"1","agencyId":"3088eaeb-2e4b-44ed-aac5-3b24e0525457","feedId":"edc577ab-100b-4d26-8673-0126f32b2b14","routeBrandingUrl":null,"publiclyVisible":"1","status":"APPROVED","routeShortName":"H-H","routeLongName":"Har-H","routeDesc":null,"gtfsRouteType":4,"routeUrl":"http://example.com","routeColor":null,"routeTextColor":null,"id":"515c48dc-fe37-452a-bccc-3d84fc5c7599"}; line: 1, column: 141] (through reference chain: com.conveyal.datatools.editor.models.transit.Route["publiclyVisible"])

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

Solutions on the web

via GitHub by smsm1
, 7 months ago
Can not construct instance of boolean from String value '1': only "true" or "false" recognized at [Source: {"gtfsRouteId":"1","agencyId":"3088eaeb-2e4b-44ed-aac5-3b24e0525457","feedId":"edc577ab-100b-4d26-8673-0126f32b2b14","routeBrandingUrl":null
via GitHub by valentinul
, 9 months ago
Can not construct instance of java.lang.Boolean from String value ("default"): only "true" or "false" recognized at [Source: [B@76927b58; line: 1, column: 238] (through reference chain: com.spotify.heroic.rpc.grpc.GroupedQuery["query"]->com.spotify.heroic.metric.Request["options"]->com.spotify.heroic.QueryOptions["tracing"])
via GitHub by spordin
, 1 year ago
Can not construct instance of long from String value 'test_1': not a valid Long value at [Source: java.io.StringReader@4923ab24; line: 2, column: 9] (through reference chain: Test1["value2"])
via Stack Overflow by Anadi Misra
, 2 years ago
Can not construct instance of java.util.Date from String value '16-08-2015': not a valid representation (error: Failed to parse Date value '16-08-2015': Can not parse date "16-08-2015": not compatible with any of standard forms ("yyyy-MM
via GitHub by moguli
, 2 years ago
Can not construct instance of long from String value 'auth': not a valid Long value at [Source: {"id": "auth", "method": "mining.authorize", "params": ["username", "password"]}; line: 1, column: 2] (through reference chain: strat.mining.stratum.proxy.json.JsonRpcRequest["id"])
via GitHub by jayanderson
, 2 months ago
format 'yyyy-MM-dd'T'HH:mm:ss.SSSZ', parsing fails (leniency? null)) at [Source: (String)"{"date":"1970-01-01 00:00:00.000"}"; line: 1, column: 9] (through reference chain: TestJsonDateFormatError$TestJsonFormatDate["date"])
com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of boolean from String value '1': only "true" or "false" recognized at [Source: {"gtfsRouteId":"1","agencyId":"3088eaeb-2e4b-44ed-aac5-3b24e0525457","feedId":"edc577ab-100b-4d26-8673-0126f32b2b14","routeBrandingUrl":null,"publiclyVisible":"1","status":"APPROVED","routeShortName":"H-H","routeLongName":"Har-H","routeDesc":null,"gtfsRouteType":4,"routeUrl":"http://example.com","routeColor":null,"routeTextColor":null,"id":"515c48dc-fe37-452a-bccc-3d84fc5c7599"}; line: 1, column: 141] (through reference chain: com.conveyal.datatools.editor.models.transit.Route["publiclyVisible"])
at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:55)
at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:883)
at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseBoolean(StdDeserializer.java:201)
at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$BooleanDeserializer.deserialize(NumberDeserializers.java:163)
at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$BooleanDeserializer.deserialize(NumberDeserializers.java:145)
at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:523)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:101)
at com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.findDeserializeAndSet(BeanPropertyMap.java:285)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:248)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:136)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3564)
at com.conveyal.datatools.editor.controllers.api.RouteController.updateRoute(RouteController.java:137)
at spark.ResponseTransformerRouteImpl$1.handle(ResponseTransformerRouteImpl.java:47)
at spark.http.matching.Routes.execute(Routes.java:61)
at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:126)
at spark.embeddedserver.jetty.JettyHandler.doHandle(JettyHandler.java:50)
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.HandlerWrapper.handle(HandlerWrapper.java:119)
at org.eclipse.jetty.server.Server.handle(Server.java:517)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261)
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 java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 10 months ago
2 times, 3 months ago
6 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.