You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by John Lussmyer <Jo...@amdocs.com> on 2011/10/27 20:40:05 UTC

Odd probably calling method in jar file

I have a jar file with some utility methods I use in my scripts.
There is just one method that JMeter refuses to call.
The error I get is:

Response message: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval                Sourced file: inline evaluation of: ``import com.qpass.jmeter.WebServiceUtilityForJmeter; import com.qpass.utility.CAP . . . '' : Typed variable declaration : Error in method invocation: Method substituteParams( java.lang.String, java.lang.String ) not found in class'com.qpass.utility.CAPDataLoad'

The method is declared as:
    public String substituteParams(String line, String target)

The script that invokes it is:
CAPDataLoad cdl = new CAPDataLoad();
String primaryID = cdl.substituteParams("{PrimaryConsumerIdentifier{IdData}}", xml);

I've tried calling a different method from the same class that only has 1 string param, and that works just fine.

Any suggestions on what (incredibly obvious) thing I'm doing wrong?


This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

RE: Odd probably calling method in jar file

Posted by John Lussmyer <Jo...@amdocs.com>.
And your suggestion helped!
I went digging around in the lib dir, and found another old .jar with an old version of the class in it.
Thanks!
(I figured I had to be missing something obvious.)

-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com] 
Sent: Thursday, October 27, 2011 11:53 AM
To: JMeter Users List
Subject: Re: Odd probably calling method in jar file

without the jar file , tough to say (perhaps your class file isnt the latest
or you have multiple versions of the same class available to Jmeter)


On Thu, Oct 27, 2011 at 11:40 AM, John Lussmyer <Jo...@amdocs.com>wrote:

> I have a jar file with some utility methods I use in my scripts.
> There is just one method that JMeter refuses to call.
> The error I get is:
>
> Response message: org.apache.jorphan.util.JMeterException: Error invoking
> bsh method: eval                Sourced file: inline evaluation of: ``import
> com.qpass.jmeter.WebServiceUtilityForJmeter; import com.qpass.utility.CAP .
> . . '' : Typed variable declaration : Error in method invocation: Method
> substituteParams( java.lang.String, java.lang.String ) not found in
> class'com.qpass.utility.CAPDataLoad'
>
> The method is declared as:
>    public String substituteParams(String line, String target)
>
> The script that invokes it is:
> CAPDataLoad cdl = new CAPDataLoad();
> String primaryID =
> cdl.substituteParams("{PrimaryConsumerIdentifier{IdData}}", xml);
>
> I've tried calling a different method from the same class that only has 1
> string param, and that works just fine.
>
> Any suggestions on what (incredibly obvious) thing I'm doing wrong?
>
>
> This message and the information contained herein is proprietary and
> confidential and subject to the Amdocs policy statement,
> you may review at http://www.amdocs.com/email_disclaimer.asp
>
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Odd probably calling method in jar file

Posted by Deepak Shetty <sh...@gmail.com>.
without the jar file , tough to say (perhaps your class file isnt the latest
or you have multiple versions of the same class available to Jmeter)


On Thu, Oct 27, 2011 at 11:40 AM, John Lussmyer <Jo...@amdocs.com>wrote:

> I have a jar file with some utility methods I use in my scripts.
> There is just one method that JMeter refuses to call.
> The error I get is:
>
> Response message: org.apache.jorphan.util.JMeterException: Error invoking
> bsh method: eval                Sourced file: inline evaluation of: ``import
> com.qpass.jmeter.WebServiceUtilityForJmeter; import com.qpass.utility.CAP .
> . . '' : Typed variable declaration : Error in method invocation: Method
> substituteParams( java.lang.String, java.lang.String ) not found in
> class'com.qpass.utility.CAPDataLoad'
>
> The method is declared as:
>    public String substituteParams(String line, String target)
>
> The script that invokes it is:
> CAPDataLoad cdl = new CAPDataLoad();
> String primaryID =
> cdl.substituteParams("{PrimaryConsumerIdentifier{IdData}}", xml);
>
> I've tried calling a different method from the same class that only has 1
> string param, and that works just fine.
>
> Any suggestions on what (incredibly obvious) thing I'm doing wrong?
>
>
> This message and the information contained herein is proprietary and
> confidential and subject to the Amdocs policy statement,
> you may review at http://www.amdocs.com/email_disclaimer.asp
>