On line 301 the line String msg = "QueueConnectionFactory expected, but got " + obj.getClass().getName(); can cause a NullPointerException if the object returned from JNDI is null.
Thanks for the report. Fixed in SVN trunk: URL: http://svn.apache.org/viewvc?rev=706313&view=rev Log: Bug 46016 - avoid possible NPE in JMSSampler Replace inefficient iterator usage
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2165