java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String; This method was added to the Servlet 2.5 APIs, which is what SJSAS 9.1 bundles. Do you by any chance have an earlier version of the Servlet APIs somewhere in your classpath? Jan

Oracle Community | harmeets | 8 years ago
  1. 0

    Not able to start server, exception is coming

    Oracle Community | 8 years ago | harmeets
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String; This method was added to the Servlet 2.5 APIs, which is what SJSAS 9.1 bundles. Do you by any chance have an earlier version of the Servlet APIs somewhere in your classpath? Jan
  2. 0

    Admin console does not open

    Oracle Community | 9 years ago | 843833
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
  3. 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)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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(Separat edValuesParser.scala:46) at io.gatling.core.feeder.SeparatedValuesParser$.io$gatling$ core$feeder$SeparatedValuesParser$$$anonfun$1(SeparatedValue sParser.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)
  6. 0

    ClassNotFoundExceptions using jaxp-1.1 with WebSphere 3.5

    Google Groups | 2 decades ago | cirvine
    java.lang.NoSuchMethodError: org.w3c.dom.Node: method getLocalName()Ljava/lang/String; not found This looks like I'm inadvertantly accessing an old dom class. I guess what I really need at this point is a pointer to the right way of integrating jaxp-1.1 with WebSphere 3.5 under OS390. At this point, any help is immensely appreciated. Thanks Chuck PS: latest exception stack trace:

    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

      javax.servlet.ServletContext.getContextPath()Ljava/lang/String; This method was added to the Servlet 2.5 APIs, which is what SJSAS 9.1 bundles. Do you by any chance have an earlier version of the Servlet APIs somewhere in your classpath? Jan

      at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage()
    2. Glassfish Core
      FormAuthenticator.authenticate
      1. org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:423)
      2. org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:240)
      2 frames
    3. Security
      RealmAdapter.invokeAuthenticateDelegate
      1. com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1146)
      1 frame
    4. Glassfish Core
      StandardPipeline.doInvoke
      1. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:627)
      2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:609)
      3. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      3 frames
    5. Glassfish
      WebPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      1 frame
    6. Glassfish Core
      ContainerBase.invoke
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
      2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      3. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      4. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
      5. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
      6. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
      7. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      8. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
      10. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
      10 frames
    7. org.apache.coyote
      CoyoteAdapter.service
      1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
      1 frame
    8. Glassfish Core
      WorkerThreadImpl.run
      1. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
      2. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
      3. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
      4. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      5. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
      6. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
      7. com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
      8. com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
      8 frames