jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: User function loading issues under OpenJDK 1.7.0_65 under CentOS?
Date Tue, 07 Oct 2014 20:59:19 GMT
On 7 October 2014 16:27, Dave Newton <davelnewton@gmail.com> wrote:
> 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 (
> mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat
> 4.4.7-4) (GCC) ) #1 SMP Thu Jul 31 17:20:51 UTC 2014

I note that CentOS is running Java 6 whereas on OSX you used Java 7.
Are you sure the code is compiled to run on Java 6?

> 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.)

Do the added functions actually work?

> 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.

Do you have any other OSes you can try?
Other JVMs - e.g. Java 7 - on CentOS?

> 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: davelnewton@gmail.com
> 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>

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


Mime
View raw message