java.lang.RuntimeException: 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]

GitHub | AmsterdamJK | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Word2VecUptrainingExample gives JsonMappingException when trying to update the model

    GitHub | 10 months ago | AmsterdamJK
    java.lang.RuntimeException: 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]
  2. 0

    How to read subtype?

    GitHub | 3 years ago | gaydenko
    com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate abstract type [simple type, class scala.runtime.Nothing$] (need to add/enable type information?) at [Source: {"i":42}; line: 1, column: 2]
  3. 0

    Deserializing nested json's with jackson

    Stack Overflow | 5 years ago | labbyfrost
    com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class JsonPath.Cpld] from JSON String; no single-String constructor/factory method (through reference chain: JsonPath.mainbean["clientPayload"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Injecting ObjectMapper into a deserialized object using @JacksonInject and @JsonCreator

    Stack Overflow | 2 years ago | JadN
    com.fasterxml.jackson.databind.JsonMappingException: Conflicting setter definitions for property "config": com.fasterxml.jackson.databind.ObjectMapper#setConfig(1 params) vs com.fasterxml.jackson.databind.ObjectMapper#setConfig(1 params)
  6. 0

    Reading an object of inner class throws MarkLogicIOException

    GitHub | 3 years ago | sravanr
    com.marklogic.client.MarkLogicIOException: com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class com.marklogic.javaclient.TestPOJOsample1$Student]: can not instantiate from JSON object (need to add/enable type information?) at [Source: java.io.InputStreamReader@37e4320e; line: 1, column: 54]
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. 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()
  2. Jackson
    ObjectMapper.readValue
    1. com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
    2. com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:843)
    3. com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromDouble(StdValueInstantiator.java:336)
    4. com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromDouble(BeanDeserializerBase.java:1172)
    5. com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:157)
    6. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:144)
    7. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3562)
    8. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2578)
    8 frames
  3. org.deeplearning4j.models
    WordVectorSerializer.loadFullModel
    1. org.deeplearning4j.models.embeddings.loader.VectorsConfiguration.fromJson(VectorsConfiguration.java:93)
    2. org.deeplearning4j.models.embeddings.loader.WordVectorSerializer.loadFullModel(WordVectorSerializer.java:787)
    2 frames
  4. org.deeplearning4j.examples
    Word2VecUptrainingExample.main
    1. org.deeplearning4j.examples.nlp.word2vec.Word2VecUptrainingExample.main(Word2VecUptrainingExample.java:86)
    1 frame