mhjort / trombi

Load testing library for testing stateful apps with Clojure
Eclipse Public License 1.0
236 stars 19 forks source link

Problems with Ring and http-kit versions #6

Closed lokori closed 9 years ago

lokori commented 9 years ago

Added this to dependencies. Before writing any code which actually invokes the library the compile started failing.

Caused by: java.lang.NoSuchMethodError: clojure.lang.Reflector.invokeNoArgInstanceMember(Ljava/lang/Object;Ljava/lang/String;Z)Ljava/lang/Object;
    at clout.core$route_compile$fn__685.invoke(core.clj:134)

I have not been able to pinpoint the specific combination of library versions which are required. This is related to Ring and http-kit versions. It seems to work fine if you can use the same versions which are used in clj-gatling but may require much tweaking if other versions are required.

mhjort commented 9 years ago

I can take away all ring related stuff and remove ring dependency if that helps. The code is related to my experiment on creating a distributed version of this tool. I will move that stuff to separate branch

lokori commented 9 years ago

jepa..

paskoin tuon nyt siihen omaan clojure-template appikseeni, eli tänne: https://github.com/lokori/clj-weba

Toimii ihan ok nyt tuossa template-projektissa kun veivasin ne project.clj:ssa olevat depsut sopiviin versioihin. Oikeassa isommassa projektissa voi olla melko savotta saada ne toimimaan siististi.

Mutta jos toi ei oikeasti tarvitse niitä ringejä niin sitten ne voisi tosiaan napata pois siitä. Periaatteessa perffitestit voisi shipata irrallaan sovelluksesta omassa haarassaan, mutta mielummin paketoin ne mukaan sinne muiden testien joukkoon. Testi kun testi :)

Antti Virtanen Software Architect puh. 044-507 0050 Solita Oy | Åkerlundinkatu 11, 6. krs | 33100 Tampere

From: mhjort notifications@github.com<mailto:notifications@github.com> Reply-To: mhjort/clj-gatling reply@reply.github.com<mailto:reply@reply.github.com> Date: Friday 12 December 2014 12:30 To: mhjort/clj-gatling clj-gatling@noreply.github.com<mailto:clj-gatling@noreply.github.com> Cc: Antti Virtanen antti.virtanen@iki.fi<mailto:antti.virtanen@iki.fi> Subject: Re: [clj-gatling] Problems with Ring and http-kit versions (#6)

I can take away all ring related stuff and remove ring dependency if that helps. The code is related to my experiment on creating a distributed version of this tool. I will move that stuff to separate branch

— Reply to this email directly or view it on GitHubhttps://github.com/mhjort/clj-gatling/issues/6#issuecomment-66756202.

mhjort commented 9 years ago

Released version 0.4.1 which does not include Ring anymore. Could you check whether it works better now?

lokori commented 9 years ago

Works. It is still necessary to specify clojure.core/cache version in the project.clj as our dependencies import 0.6.0 which will not work with clj-gatling, but this is a minor thing. Latest cache (0.6.4) seems to work fine.