Hi,

I'm attempting to use JMeter 2.3.4 with Jython 2.5 (also tried Jython 2.2.1) 
running from WinXP. I created a standalone Jython jar (per Jython website's 
instrs), and placed it in JMeter's lib dir. I started with an empty test plan, 
and created a ThreadGroup and a BSF Sampler. From the drop-down menu, I chose 
the script language to be "jython". In the big text box at the bottom of the 
sampler, I wrote the jython command:

print 5

I then added a "View Results Tree" listener.  I ran this test plan, and got an 
error in the <Sampler result> tab of the listener:

Response code: 500
Response message: org.apache.bsf.BSFException: exception from Jython:
Traceback (innermost last):
  (no code object) at line 0
SyntaxError: ('invalid syntax', ('<string>', 1, 1, 'print 5'))

I've googled this but couldn't find any useful info or fix. Is this a bug?

By comparison, if I use a BSF Preprocessor or BSF Postprocessor (again 
specifying jython and "print 5"), then it works... it just doesn't work as a 
sampler.

Thank you.

Cheers,
Will

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to