Re: [Grinder-development] If anyone is out there - help!
Distributed load testing framework - Java, Jython, or Clojure scripts.
Brought to you by:
philipa
|
From: Darren B. <bal...@gm...> - 2015-04-13 18:21:27
|
I've tried this with even the most basic of scripts as well, and it still
fails.
The classpath I am introducing contains jars built on jdk8, and this is
likely the issue. Having built grinder with jdk8, the issue still persists
though.
The basic script attempted as well:
from net.grinder.script import Test
from net.grinder.script.Grinder import grinder
test1 = Test(1, "Log method")
# Instrument the info() method with our Test.
test1.record(grinder.logger.info)
class TestRunner:
def __call__(self):
log("Hello World")
On Mon, Apr 13, 2015 at 2:07 PM, Darren Ball <bal...@gm...> wrote:
> I can not use JRE 7. The libraries I am pulling in require jdk8.
> I have tried with the standalone jython (2.5.3) that exists in the lib
> directory.
>
> Running jython using the following:
>
> java -classpath
> "/home/grinder/uber/*":/home/grinder/myapp-uber.jar:/opt/grinder/lib/grinder.jar:/opt/grinder/lib/jython-standalone-2.5.3.jar
> org.python.util.jython -v
>
> I can run my code fine.
>
> When using the agent, this all falls apart. I believe this is specific to
> grinder's libraries given that I can easily launch my code form the jython
> console.
>
> Recompiling with the correct jdk does not help at the moment.
>
>
> On Mon, Apr 13, 2015 at 1:37 PM, Gary Mulder <fly...@gm...>
> wrote:
>
>>
>> On 13 April 2015 at 18:10, Darren Ball <bal...@gm...> wrote:
>>
>>> Well,
>>> Even after building locally with jdk8, I still have this issue:
>>>
>>
>> Just to confirm you have tried JRE 7 and Jython as provided in ./lib in
>> Grinder?
>>
>> Can you include another library or is it specific to your library?
>>
>> Gary
>>
>
>
|