i am facing one problem with the session.set within the session itself i am unable to set the attribute to session . pls find out the below code snippet.
val request = VehicleUtilizationProxy.createEmissionRequest(pids, from, to, ms)
println("session attributes contains requestbody is "+session.contains("requestbody"))
problem is showing like this.
at io.gatling.app.Gatling.main(Gatling.scala)
05:14:43.494 [INFO ] i.g.h.a.HttpEngine - Warm up done
Simulation simulations.BiodieselPerformance started...
body value is :{"from":"2016-08-23","to":"2016-08-24","VehicleIdAndProfileIdMap":{"entry":[{"key":"00000000000000000000002000161712","value":"00000000000000000000000000000499"},{"key":"00000000000000000000002000173404","value":"00000000000000000000000000000498"},{"key":"00000000000000000000002000161143","value":"00000000000000000000000000000497"},{"key":"00000000000000000000002000095133","value":"00000000000000000000000000000496"}]},"measurementSystem":"METRIC","parameters":null}
session attributes contains requestbody is false
05:14:44.095 [ERROR] i.g.h.a.s.HttpRequestAction - 'httpRequest-19' failed to execute: No attribute named 'requestbody' is defined
body value is :{"from":"2016-08-23","to":"2016-08-24","VehicleIdAndProfileIdMap":{"entry":[{"key":"00000000000000000000002000207698","value":"00000000000000000000000000000499"},{"key":"00000000000000000000002000093500","value":"00000000000000000000000000000498"},{"key":"00000000000000000000002000119144","value":"00000000000000000000000000000497"},{"key":"00000000000000000000002000044227","value":"00000000000000000000000000000496"}]},"measurementSystem":"METRIC","parameters":null}
session attributes contains requestbody is false
05:14:44.098 [ERROR] i.g.h.a.s.HttpRequestAction - 'httpRequest-19' failed to execute: No attribute named 'requestbody' is defined
body value is :{"from":"2016-08-17","to":"2016-08-24","VehicleIdAndProfileIdMap":{"entry":[{"key":"00000000000000000000002000106521","value":"00000000000000000000000000000499"},{"key":"00000000000000000000002000154340","value":"00000000000000000000000000000498"},{"key":"00000000000000000000002000223423","value":"00000000000000000000000000000497"},{"key":"00000000000000000000002000159801","value":"00000000000000000000000000000496"}]},"measurementSystem":"METRIC","parameters":null}
session attributes contains requestbody is false
05:14:44.207 [ERROR] i.g.h.a.s.HttpRequestAction - 'httpRequest-19' failed to execute: No attribute named 'requestbody' is defined
05:14:44.406 [ERROR] i.g.c.a.b.SessionHookBuilder$$anon$1 - 'hook-20' crashed with 'java.lang.IndexOutOfBoundsException: 4', forwarding to the next one
05:14:44.407 [ERROR] i.g.h.a.s.HttpRequestAction - 'httpRequest-19' failed to execute: No attribute named 'requestbody' is defined
Thanks in advance for your cooperation.