Re: If anyone is out there - help!
Darren Ball <[email protected]> Mon, 13 Apr 2015 14:20:58 -0400
| Newsgroups | gmane.comp.java.grinder.devel |
|---|---|
| Message-ID | <CA+YPNhcj7uT93M2Ujaqgd5U64q2frsyp1nf02yGMdSuWhgtavA@mail.gmail.com> |
--===============8213813729778143485==
Content-Type: multipart/alternative; boundary=089e0112d06a2eb8b505139f2e70
--089e0112d06a2eb8b505139f2e70
Content-Type: text/plain; charset=UTF-8
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 <[email protected]> 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 <[email protected]>
> wrote:
>
>>
>> On 13 April 2015 at 18:10, Darren Ball <[email protected]> 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
>>
>
>
--089e0112d06a2eb8b505139f2e70
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">I've tried this with even the most basic of scripts as=
well, and it still fails.<div>The classpath I am introducing contains jars=
built on jdk8, and this is likely the issue.=C2=A0 Having built grinder wi=
th jdk8, the issue still persists though.</div><div><br></div><div>The basi=
c script attempted as well:</div><div><div class=3D"gmail_extra"><div>from =
net.grinder.script import Test</div><div>from net.grinder.script.Grinder im=
port grinder</div><div>=C2=A0=C2=A0</div><div>test1 =3D Test(1, "Log m=
ethod")</div><div>=C2=A0=C2=A0</div><div># Instrument the info() metho=
d with our Test.</div><div>test1.record(<a href=3D"http://grinder.logger.in=
fo">grinder.logger.info</a>)</div><div>=C2=A0=C2=A0</div><div>class TestRun=
ner:</div><div>=C2=A0 =C2=A0 def __call__(self):</div><div>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 log("Hello World")</div><div><br></div><div><br></d=
iv><div><br></div><div><br></div><div class=3D"gmail_quote">On Mon, Apr 13,=
2015 at 2:07 PM, Darren Ball <span dir=3D"ltr"><<a href=3D"mailto:balld=
[email protected]" target=3D"_blank">[email protected]</a>></span> wr=
ote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex=
;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style=
:solid;padding-left:1ex"><div dir=3D"ltr">I can not use JRE 7.=C2=A0 The li=
braries I am pulling in require jdk8.<div>I have tried with the standalone =
jython (2.5.3) that exists in the lib directory.</div><div><br></div><div>R=
unning jython using the following:</div><div><br></div><div>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.ut=
il.jython -v<br></div><div><br></div><div>I can run my code fine.</div><div=
><br></div><div>When using the agent, this all falls apart.=C2=A0 I believe=
this is specific to grinder's libraries given that I can easily launch=
my code form the jython console.</div><div><br></div><div>Recompiling with=
the correct jdk does not help at the moment.</div><div><div class=3D"h5"><=
div><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Mon, A=
pr 13, 2015 at 1:37 PM, Gary Mulder <span dir=3D"ltr"><<a href=3D"mailto=
:[email protected]" target=3D"_blank">[email protected]</a>>=
</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-=
left-style:solid;padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_ext=
ra"><br><div class=3D"gmail_quote"><span>On 13 April 2015 at 18:10, Darren =
Ball <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>></span> wrote:<br><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;b=
order-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"=
>Well,<br>
Even after building locally with jdk8, I still have this issue:<br></blockq=
uote><div><br></div></span>Just to confirm you have tried JRE 7 and Jython =
as provided in ./lib in Grinder?<div><br></div><div>Can you include another=
library or is it specific to your library?</div><div><br></div><div>Gary=
=C2=A0</div></div></div><img width=3D"0" height=3D"0" src=3D"https://mailtr=
ack.io/trace/mail/50ceac5e043a011f21701c50e7f606b991d9c3ac.png"><img width=
=3D"0" height=3D"0" src=3D"https://mailtrack.io/trace/mail/8d8586966d131a31=
59a2f2b8ebe43e5756540ada.png"></div>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div></div>
--089e0112d06a2eb8b505139f2e70--
--===============8213813729778143485==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
--===============8213813729778143485==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Grinder-development mailing list
Grinder-development-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/grinder-development
--===============8213813729778143485==--