Error NumberFormatException

230 views
Skip to first unread message

Hou Marina

unread,
May 12, 2015, 7:45:56 AM5/12/15
to gat...@googlegroups.com
Hello,

I am using gatling 2.1.5, and I got a java.lang.NumberFormatException: For input string: "09-icedtea"
Could you please tell me what it means ?

Thank you for your answers.

Regards

Pierre DAL-PRA

unread,
May 12, 2015, 7:47:33 AM5/12/15
to gat...@googlegroups.com
Somewhere, you're trying to convert a string which is not a valid number to a number.

Can you post your simulation please?
--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hou Marina

unread,
May 12, 2015, 8:12:17 AM5/12/15
to gat...@googlegroups.com
Thanks for your help. Here is my scenario file.

val Scenario = scenario("New post")
.exec(
   http("new-user")
       .post("/users")
       .body(RawFileBody("${requestBody}")).asJSON
       .check(jsonPath('$..id').exists.saveAs("userID")
       .check(status.is(202))
)
.pause(10)
.exec(
   http("user-${userID}")
      .get("/users/${userID}").asJSON
      .check(jsonPath("$..status").exists.saveAs("state"))
      .check(status.in(Seq(200, 304))
    )
.asLongAs(session => session("state").as[String] != "done" && session("state").as[String] != "error", "counterName") {
    exec(
    http("get-${userID}-number-${counterName}")
          .get("/user/${userID}").asJSON
          .check(jsonPath("$..status").saveAs("states"))
          .check(status.in(Seq(200, 304)))
     )

}

Le mardi 12 mai 2015 13:47:33 UTC+2, Pierre DAL-PRA a écrit :
Somewhere, you're trying to convert a string which is not a valid number to a number.

Can you post your simulation please?

On Tuesday, May 12, 2015, Hou Marina <marina...@gmail.com> wrote:
Hello,

I am using gatling 2.1.5, and I got a java.lang.NumberFormatException: For input string: "09-icedtea"
Could you please tell me what it means ?

Thank you for your answers.

Regards

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.

Stéphane LANDELLE

unread,
May 12, 2015, 1:42:14 PM5/12/15
to gat...@googlegroups.com
Could you provide with the full stacktrace please?
And also the output the "java -version"?

It seems the OpenJDK people found very funny to give special versions for the ones built for Fedora, Gentoo and Debian and that Boon doesn't properly parse them...

Stéphane Landelle
Lead developer


To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.

Hou Marina

unread,
May 13, 2015, 4:20:46 AM5/13/15
to gat...@googlegroups.com
Thanks for your help.

My java version is "1.7.0_09-icedtea"
OpenJDK Runtime Environment (rhel-2.3.4.1.el6_3-x86_64)
OpenJDK 64 Bit server VM (build 23.2-b09, mixed mode)

Here is my stacktrace :
java.lang.NumberFormatException: For input string: "09-icedtea"

        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

        at java.lang.Integer.parseInt(Integer.java:492)

        at java.lang.Integer.parseInt(Integer.java:527)

        at org.boon.core.Sys.<clinit>(Sys.java:108)

        at org.boon.core.value.LazyValueMap.buildMap(LazyValueMap.java:225)

        at org.boon.core.value.LazyValueMap.entrySet(LazyValueMap.java:214)

        at io.gatling.jsonpath.JsonPathWalker.io$gatling$jsonpath$JsonPathWalker$$_recFieldFilter$1(JsonPath.scala:156)

        at io.gatling.jsonpath.JsonPathWalker.recFieldFilter(JsonPath.scala:164)

        at io.gatling.jsonpath.JsonPathWalker.walk1(JsonPath.scala:68)

        at io.gatling.jsonpath.JsonPathWalker.io$gatling$jsonpath$JsonPathWalker$$walk(JsonPath.scala:52)

        at io.gatling.jsonpath.JsonPathWalker$$anonfun$io$gatling$jsonpath$JsonPathWalker$$walk$1.apply(JsonPath.scala:52)

        at io.gatling.jsonpath.JsonPathWalker$$anonfun$io$gatling$jsonpath$JsonPathWalker$$walk$1.apply(JsonPath.scala:52)

        at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:396)

        at scala.collection.Iterator$$anon$1.hasNext(Iterator.scala:870)

        at scala.collection.Iterator$$anon$14.skip(Iterator.scala:476)

        at scala.collection.Iterator$$anon$14.hasNext(Iterator.scala:477)

        at scala.collection.Iterator$class.toStream(Iterator.scala:1188)

        at scala.collection.AbstractIterator.toStream(Iterator.scala:1202)

        at scala.collection.TraversableOnce$class.toSeq(TraversableOnce.scala:283)

        at scala.collection.AbstractIterator.toSeq(Iterator.scala:1202)

        at io.gatling.core.check.extractor.jsonpath.SingleJsonPathExtractor$$anonfun$extract$1.apply(JsonPathExtractor.scala:53)

        at io.gatling.core.check.extractor.jsonpath.SingleJsonPathExtractor$$anonfun$extract$1.apply(JsonPathExtractor.scala:53)

        at io.gatling.core.validation.Success.map(Validation.scala:32)

        at io.gatling.core.check.extractor.jsonpath.SingleJsonPathExtractor.extract(JsonPathExtractor.scala:53)

        at io.gatling.core.check.extractor.CriterionExtractor.apply(Extractor.scala:33)

        at io.gatling.core.check.CheckBase$$anonfun$check$2$$anonfun$apply$2$$anonfun$apply$4.apply(Check.scala:84)

        at io.gatling.core.check.CheckBase$$anonfun$check$2$$anonfun$apply$2$$anonfun$apply$4.apply(Check.scala:83)

        at io.gatling.core.validation.Success.flatMap(Validation.scala:33)

        at io.gatling.core.check.CheckBase$$anonfun$check$2$$anonfun$apply$2.apply(Check.scala:83)

        at io.gatling.core.check.CheckBase$$anonfun$check$2$$anonfun$apply$2.apply(Check.scala:82)

        at io.gatling.core.validation.Success.flatMap(Validation.scala:33)

        at io.gatling.core.check.CheckBase$$anonfun$check$2.apply(Check.scala:82)

        at io.gatling.core.check.CheckBase$$anonfun$check$2.apply(Check.scala:81)

        at io.gatling.core.validation.Success.flatMap(Validation.scala:33)

        at io.gatling.core.check.CheckBase.check(Check.scala:81)

        at io.gatling.http.check.HttpCheck.check(HttpCheck.scala:35)

        at io.gatling.http.check.HttpCheck.check(HttpCheck.scala:32)

        at io.gatling.core.check.Check$.checkRec$1(Check.scala:37)

        at io.gatling.core.check.Check$.check(Check.scala:59)

        at io.gatling.http.ahc.AsyncHandlerActor.checkAndProceed$1(AsyncHandlerActor.scala:281)

        at io.gatling.http.ahc.AsyncHandlerActor.io$gatling$http$ahc$AsyncHandlerActor$$processResponse(AsyncHandlerActor.scala:322)

        at io.gatling.http.ahc.AsyncHandlerActor$$anonfun$receive$1.applyOrElse(AsyncHandlerActor.scala:89)

        at akka.actor.Actor$class.aroundReceive(Actor.scala:465)

        at io.gatling.core.akka.BaseActor.aroundReceive(BaseActor.scala:22)

        at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)

        at akka.actor.ActorCell.invoke(ActorCell.scala:487)

        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)

        at akka.dispatch.Mailbox.run(Mailbox.scala:221)

        at akka.dispatch.Mailbox.exec(Mailbox.scala:231)

        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)

        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)

        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)

        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Unable to determine build number or version
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Stéphane LANDELLE

unread,
May 14, 2015, 3:40:46 AM5/14/15
to gat...@googlegroups.com
Note that this stacktrace is probably not blocking.

Stéphane Landelle
Lead developer


To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages