Howdy,

I have some custom functions in a JAR file, e.g., I use ${__getFullQuery()}
as a URL parameter in some requests.

Everything works fine under OS X, both JDK 7 and JDK 8.

On a CentOS box user JDK 1.7.0_65 the functions do not get picked up.

The package/class meets the default ".functions." naming convention.

JMeter Info:

    $ ./bin/jmeter -v
    Copyright (c) 1998-2014 The Apache Software Foundation
    Version 2.11 r1554548

Java Info:

    $ java -version
    java version "1.7.0_65"
    OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
    OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

CentOS Info:

    $ cat /etc/centos-release
    CentOS release 6.5 (Final)
    $ cat /proc/version
    Linux version 2.6.32-431.23.3.el6.x86_64 (
[email protected]) (gcc version 4.4.7 20120313 (Red Hat
4.4.7-4) (GCC) ) #1 SMP Thu Jul 31 17:20:51 UTC 2014

Under OS X with DEBUG logs I see:

    INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names
must contain the string: '.functions.'
    INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names
must not contain the string: '.gui.'
    DEBUG - jmeter.functions.StringFromFile: ++++++++ Construct
org.apache.jmeter.functions.StringFromFile@ee8259c
    DEBUG - jmeter.engine.util.CompoundVariable: Function count: 43

(This is the correct count, I add five functions.)

Under CentOS:

    INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names
must contain the string: '.functions.'
    INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names
must not contain the string: '.gui.'
    DEBUG - jmeter.functions.StringFromFile: ++++++++ Construct
org.apache.jmeter.functions.StringFromFile@ee8259c
    DEBUG - jmeter.engine.util.CompoundVariable: Function count: 38

I've tried liberal jar droppings, including lib and lib/ext, using
user.classpath and/or search_paths, with no joy.

I was unable to find any information regarding potential issues during a
relatively naive Google search, and I have not yet looked into the code
JMeter uses to load up its functions.

Other info available, although I'm running out of interesting bits.

Has anybody seen this or have a clue what could be going wrong? Or how to
mitigate the issue?

Thanks,
Dave

-- 
e: [email protected]
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton <https://twitter.com/dave_newton>
b: Bucky Bits <http://buckybits.blogspot.com/>
g: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>

Reply via email to