Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typed variable declaration : Object constructor #57

Open
kstefanini opened this issue Jul 11, 2016 · 4 comments
Open

Typed variable declaration : Object constructor #57

kstefanini opened this issue Jul 11, 2016 · 4 comments

Comments

@kstefanini
Copy link

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
Copy link

matcho commented Aug 16, 2016

Hi,

Experiencing the exact same bug, using :

  • Java version "1.8.0_91"
  • jmeter-3.0.
  • Ubuntu 16.04

Any help would be greatly appreciated.
Thank you.

@matcho
Copy link

matcho commented Aug 16, 2016

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
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants