random exception during parallel run

41 views
Skip to first unread message

slawom...@gmail.com

unread,
Jan 14, 2016, 8:33:24 AM1/14/16
to REST assured
Hi,

I'm using ScalaTest as a testing framework and sbt as a build tool - I guess this is not standard environment but also not a source of my problem. I run my test in parallel. From time to time (about once per 20 runs) I get following exception during test initialization:

[info]   java.lang.NullPointerException:
[info]   at java.lang.Class.isAssignableFrom(Native Method)
[info]   at java_lang_Class$isAssignableFrom$0.call(Unknown Source)
[info]   at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
[info]   at java_lang_Class$isAssignableFrom$0.call(Unknown Source)
[info]   at com.jayway.restassured.internal.RequestSpecificationImpl$_applyPathParamsAndSendRequest_closure29.doCall(RequestSpecificationImpl.groovy:1567)
[info]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[info]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[info]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[info]   at java.lang.reflect.Method.invoke(Method.java:497)
[info]   at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)

Do you know what could be a reason?

Regards,
Slawek

Johan Haleby

unread,
Jan 17, 2016, 12:35:56 PM1/17/16
to rest-a...@googlegroups.com
REST Assured is currently not thread safe. I'd really like to change this though. It would be great if you could help out and pinpoint where you find issues and maybe we can solve the problems together?

/Johan

--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages