java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper. readerFor(Ljava/lang/Class;)Lcom/fasterxml/jackson/databind/ObjectReader; means "the JVM could find the ObjectMapper class but it's missing the readFor <https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java#L3351-L3360> method". You've done something (that's for you to figure out) that causes your project to ship a jackson-databind version that's older than the one expected by Gatling 2.2.2. *Stéphane Landelle* *GatlingCorp CEO* slan...@gatling.io On Thu, Aug 11, 2016 at 3:41 AM, Jonathan Vaughn <jona...@creatuity.com> wrote: This is in Gatling 2.2.2 I have a simple CSV I'm trying to use in the user-files/data directory, in the format of: loginEmail,loginPassword "test+s...@example.com","password" "test+s...@example.com","password2" ... (etc) Trying to create the feeder gives an error: Code: package example import io.gatling.core.Predef._ import io.gatling.http.Predef._ import io.gatling.jdbc.Predef._ import io.gatling.http.HeaderNames._ import io.gatling.http.check.HttpCheck import scala.concurrent.duration._ import util.Random import io.gatling.jsonpath.JsonPath object Login { val loginFeeder = csv("customer_accounts.csv") ... Removing / commenting the csv line (and anything referencing it) will prevent the error from occurring, though I then have to hard code the values it's meant to replace for the script to actually work. If I put the file somewhere else or otherwise make the path to the file wrong, I get a corresponding error about the CSV file not being found, so it at least gets as far as trying to read the file. Nothing in the CSV file is outside the range of [0-9a-zA-Z] except for the '@' in the email field, and the commas and quotation marks formatting the CSV file itself. This is the error I get: Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.readerFor(Ljava/lang/Class;) Lcom/fasterxml/jackson/databind/ObjectReader; at io.gatling.core.feeder.SeparatedValuesParser$.stream( SeparatedValuesParser.scala:46) at io.gatling.core.feeder.SeparatedValuesParser$.io$ gatling$core$feeder$SeparatedValuesParser$$$anonfun$1( SeparatedValuesParser.scala:38) at io.gatling.core.feeder.SeparatedValuesParser$lambda$$ parse$1.apply(SeparatedValuesParser.scala:37) at io.gatling.core.feeder.SeparatedValuesParser$lambda$$ parse$1.apply(SeparatedValuesParser.scala:37)

Google Groups | Jonathan Vaughn | 4 months ago
  1. 0

    Trying to create feeder causes java.lang.NoSuchMethodError

    Google Groups | 4 months ago | Jonathan Vaughn
    java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper. readerFor(Ljava/lang/Class;)Lcom/fasterxml/jackson/databind/ObjectReader; means "the JVM could find the ObjectMapper class but it's missing the readFor <https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java#L3351-L3360> method". You've done something (that's for you to figure out) that causes your project to ship a jackson-databind version that's older than the one expected by Gatling 2.2.2. *Stéphane Landelle* *GatlingCorp CEO* slan...@gatling.io On Thu, Aug 11, 2016 at 3:41 AM, Jonathan Vaughn <jona...@creatuity.com> wrote: This is in Gatling 2.2.2 I have a simple CSV I'm trying to use in the user-files/data directory, in the format of: loginEmail,loginPassword "test+s...@example.com","password" "test+s...@example.com","password2" ... (etc) Trying to create the feeder gives an error: Code: package example import io.gatling.core.Predef._ import io.gatling.http.Predef._ import io.gatling.jdbc.Predef._ import io.gatling.http.HeaderNames._ import io.gatling.http.check.HttpCheck import scala.concurrent.duration._ import util.Random import io.gatling.jsonpath.JsonPath object Login { val loginFeeder = csv("customer_accounts.csv") ... Removing / commenting the csv line (and anything referencing it) will prevent the error from occurring, though I then have to hard code the values it's meant to replace for the script to actually work. If I put the file somewhere else or otherwise make the path to the file wrong, I get a corresponding error about the CSV file not being found, so it at least gets as far as trying to read the file. Nothing in the CSV file is outside the range of [0-9a-zA-Z] except for the '@' in the email field, and the commas and quotation marks formatting the CSV file itself. This is the error I get: Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.readerFor(Ljava/lang/Class;) Lcom/fasterxml/jackson/databind/ObjectReader; at io.gatling.core.feeder.SeparatedValuesParser$.stream( SeparatedValuesParser.scala:46) at io.gatling.core.feeder.SeparatedValuesParser$.io$ gatling$core$feeder$SeparatedValuesParser$$$anonfun$1( SeparatedValuesParser.scala:38) at io.gatling.core.feeder.SeparatedValuesParser$lambda$$ parse$1.apply(SeparatedValuesParser.scala:37) at io.gatling.core.feeder.SeparatedValuesParser$lambda$$ parse$1.apply(SeparatedValuesParser.scala:37)
  2. 0

    Trying to create feeder causes java.lang.NoSuchMethodError

    Google Groups | 4 months ago | Jonathan Vaughn
    java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.readerFor(Ljava/lang/Class;)Lcom/fasterxml/jackson/databind/ObjectReader;
  3. 0

    NoSuchMethodError on POST/PATCH in 2.2.0

    GitHub | 10 months ago | hamiller
    java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.readerFor(Ljava/lang/Class;)Lcom/fasterxml/jackson/databind/ObjectReader;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NoSuchMethodError when serializing Guava types

    GitHub | 1 year ago | jorool
    java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.type.TypeFactory.constructParametrizedType(Ljava/lang/Class;Ljava/lang/Class;[Lcom/fasterxml/jackson/databind/JavaType;)Lcom/fasterxml/jackson/databind/JavaType;
  6. 0

    NoSuchMethodError when casting body to a specific type

    Stack Overflow | 1 year ago | ashur
    java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.findAndRegisterModules()Lcom/fasterxml/jackson/databind/ObjectMapper;

    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.NoSuchMethodError

      com.fasterxml.jackson.databind.ObjectMapper. readerFor(Ljava/lang/Class;)Lcom/fasterxml/jackson/databind/ObjectReader; means "the JVM could find the ObjectMapper class but it's missing the readFor <https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java#L3351-L3360> method". You've done something (that's for you to figure out) that causes your project to ship a jackson-databind version that's older than the one expected by Gatling 2.2.2. *Stéphane Landelle* *GatlingCorp CEO* slan...@gatling.io On Thu, Aug 11, 2016 at 3:41 AM, Jonathan Vaughn <jona...@creatuity.com> wrote: This is in Gatling 2.2.2 I have a simple CSV I'm trying to use in the user-files/data directory, in the format of: loginEmail,loginPassword "test+s...@example.com","password" "test+s...@example.com","password2" ... (etc) Trying to create the feeder gives an error: Code: package example import io.gatling.core.Predef._ import io.gatling.http.Predef._ import io.gatling.jdbc.Predef._ import io.gatling.http.HeaderNames._ import io.gatling.http.check.HttpCheck import scala.concurrent.duration._ import util.Random import io.gatling.jsonpath.JsonPath object Login { val loginFeeder = csv("customer_accounts.csv") ... Removing / commenting the csv line (and anything referencing it) will prevent the error from occurring, though I then have to hard code the values it's meant to replace for the script to actually work. If I put the file somewhere else or otherwise make the path to the file wrong, I get a corresponding error about the CSV file not being found, so it at least gets as far as trying to read the file. Nothing in the CSV file is outside the range of [0-9a-zA-Z] except for the '@' in the email field, and the commas and quotation marks formatting the CSV file itself. This is the error I get: Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.readerFor(Ljava/lang/Class;) Lcom/fasterxml/jackson/databind/ObjectReader; at io.gatling.core.feeder.SeparatedValuesParser$.stream( SeparatedValuesParser.scala:46) at io.gatling.core.feeder.SeparatedValuesParser$.io$ gatling$core$feeder$SeparatedValuesParser$$$anonfun$1( SeparatedValuesParser.scala:38) at io.gatling.core.feeder.SeparatedValuesParser$lambda$$ parse$1.apply(SeparatedValuesParser.scala:37) at io.gatling.core.feeder.SeparatedValuesParser$lambda$$ parse$1.apply(SeparatedValuesParser.scala:37)

      at io.gatling.commons.util.Io$.withCloseable()
    2. io.gatling.commons
      Io$.withCloseable
      1. io.gatling.commons.util.Io$.withCloseable(Io.scala:146)
      1 frame