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. ,
    Expert tip

    Try indicating constructor to use @JsonCreator annotation.

  2. ,

    The easiest solution is to provide a default constructor for the class you want to convert from/to json.

Solutions on the web

via GitHub by AmsterdamJK
, 1 year ago
com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class org.deeplearning4j.models.embeddings.loader.VectorsConfiguration] from Floating-point number (0.0024726231566347748); no one-double/Double-arg constructor/factory method at [Source: java.io.StringReader@6c372fe6; line: 1, column: 1]
via GitHub by locuslin
, 1 year ago
com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class org.deeplearning4j.models.embeddings.loader.VectorsConfiguration] from Floating-point number (0.0024726231566347748); no one-double/Double-arg constructor/factory method at [Source: java.io.StringReader@ce5a68e; line: 1, column: 1]
com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class org.deeplearning4j.models.embeddings.loader.VectorsConfiguration] from Floating-point number (0.0024726231566347748); no one-double/Double-arg constructor/factory method
 at [Source: java.io.StringReader@6c372fe6; line: 1, column: 1]	at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)	at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:843)	at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromDouble(StdValueInstantiator.java:336)	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromDouble(BeanDeserializerBase.java:1172)	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:157)	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:144)	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3562)	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2578)	at org.deeplearning4j.models.embeddings.loader.VectorsConfiguration.fromJson(VectorsConfiguration.java:93)	at org.deeplearning4j.models.embeddings.loader.WordVectorSerializer.loadFullModel(WordVectorSerializer.java:787)	at org.deeplearning4j.examples.nlp.word2vec.Word2VecUptrainingExample.main(Word2VecUptrainingExample.java:86)