moodlehq / moodle-performance-comparison

Set of shell scripts to run Moodle performance tests using different hardware and configurations and compare results.
GNU General Public License v2.0
75 stars 39 forks source link

Typed variable declaration : Object constructor #57

Open kstefanini opened 8 years ago

kstefanini commented 8 years ago

Hello,

After user warmup, i've many of them:

2016/07/11 12:10:18 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: source Sourced file: /home/killian/Documents/moodle/moodle-performance-comparison-master/recorder.bsf : Typed variable declaration : Object constructor 
2016/07/11 12:10:18 WARN  - jmeter.visualizers.BeanShellListener: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: source    Sourced file: /home/killian/Documents/moodle/moodle-performance-comparison-master/recorder.bsf : Typed variable declaration : Object constructor 
2016/07/11 12:10:18 INFO  - jmeter.threads.JMeterThread: Thread finished: Moodle Test 2-407 
2016/07/11 12:10:18 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: source Sourced file: /home/killian/Documents/moodle/moodle-performance-comparison-master/recorder.bsf : Typed variable declaration : Object constructor 
2016/07/11 12:10:18 WARN  - jmeter.visualizers.BeanShellListener: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: source    Sourced file: /home/killian/Documents/moodle/moodle-performance-comparison-master/recorder.bsf : Typed variable declaration : Object constructor 
2016/07/11 12:10:18 INFO  - jmeter.threads.JMeterThread: Thread finished: Moodle Test 2-643 
2016/07/11 12:10:18 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: source Sourced file: /home/killian/Documents/moodle/moodle-performance-comparison-master/recorder.bsf : Typed variable declaration : Object constructor 
2016/07/11 12:10:18 WARN  - jmeter.visualizers.BeanShellListener: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: source    Sourced file: /home/killian/Documents/moodle/moodle-performance-comparison-master/recorder.bsf : Typed variable declaration : Object constructor 
2016/07/11 12:10:18 INFO  - jmeter.threads.JMeterThread: Thread finished: Moodle Test 2-375 

Can you help me with that please? :)

I'm using ubuntu 15.10 & jmeter 3.0 from editor downloadable archive (not package). My test plan: testplan_201607111203_1807.jmx.tar.gz

Thanks for your time !

matcho commented 8 years ago

Hi,

Experiencing the exact same bug, using :

Any help would be greatly appreciated. Thank you.

matcho commented 8 years ago

Solved.

In my case the error was caused by FileWriter fstream = new FileWriter(filenamepath, true); not being able to open runs/tmpfilename.php for writing.

This is because I wasn't running JMeter from the moodle-performance-comparison folder.

Not a bug, my mistake. But the beanshell errors are clearly hard to understand - doesn't even give the source code line :-/

Mathias

anuragkumar490 commented 7 years ago

I also got the same Error: Object constructor: SOLVED

But Thanks to @matcho, I got a clue from the comment posted by @matcho above and in my case the problem was that the file in which I was trying to write data was "Already Open" in WPS Office.

So, make sure that the file into which you are trying to write data is Not Already Open or Being Accessed by Some other program or Editor.

dmonllao commented 6 years ago

Sorry guys for not responding to this before. It seems that both @kstefanini and @matcho use jmeter 3.0. This tool has not been tested using that jmeter version so there is probably a not backwards compatible change. As a short term solution I would recommend you to use one of the jmeter versions the tool was tested on (https://github.com/moodlehq/moodle-performance-comparison/blob/master/TROUBLESHOOTING.md#jmeter-dependencies)

You are very welcomed to send a fix to add jmeter 3.x compatibility