On 11/09/2007, sebb <[EMAIL PROTECTED]> wrote: > On 10/09/2007, Alf Høgemark <[EMAIL PROTECTED]> wrote: > > I think the JMS warnings is there because you have not installed the > > activation.jar and mail jar files. > > > > You can find them at > > http://java.sun.com/products/javamail/downloads/index.html > > http://java.sun.com/products/javabeans/jaf/downloads/index.html > > > > They should be placed in the lib directory. > > Or just ignore the messages - they are only warnings, and I don't > think they are related to the NPEs. > > SaveService will be fixed in the next release so it does not > instantiate classes merely to create aliases for them. > > > It is because of licensing issues these are not included in the JMeter > > distributables. > > Yes. > > > Ronan Klyne wrote: > > > Hi all, > > > > > > I've got a problem that only shows up in non-gui mode, and I can't make > > > any sense of it. > > > There is an exception printed in the command window, and four warnings > > > in the log - all included below. It's the JMS warnings that really > > > bother me, but I don't know how to sort them out.... > > > > > > Your help would be help greatly appreciated.... > > > > > > > > > At the command prompt: > > > > > > C:\jakarta-jmeter-2.3RC4>bin\jmeter -n -t projects\BC\BC.jmx -l c:\jm.log > > > Created the tree successfully > > > Starting the test @ Mon Sep 10 14:23:32 BST 2007 (1189430612015) > > > Exception in thread "Thread-2" java.lang.NullPointerException > > > at > > > org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973) > > > at > > > org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973) > > > at > > > org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973) > > > at > > > org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973) > > > at > > > org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:973) > > > at > > > org.apache.jorphan.collections.HashTree.traverse(HashTree.java:956) > > > at > > > org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:306) > > > at java.lang.Thread.run(Unknown Source) > > > > > Seems to be some kind of problem with the test plan processing - looks > like the test plan is null. > > This obviously should not happen. > > Could you send me the test-plan privately by e-mail?
Further investigation shows that the problem was related to the Module Controller. The target controllers must be either on the Workbench, or must be contained in a ThreadGroup. In this case the top-level controller was directly under the Test Plan. This works for some simple cases, but does not seem to work for more complicated cases with nested Module Controllers. The solution in this case (which had multiple thread groups) was to put the target controllers under a new Thread Group and disable the ThreadGroup. Equally, the target controllers can be stored under a disabled Simple Controller in any other ThreadGroup - does not have to be in the same one as the Module Controller. The Module Controller can also target active controllers, e.g. if you want to repeat a part of a ThreadGroup. N.B. When a test plan is saved to a file, the target controller is identified by its name and the names of its parents - e.g. Test Plan / ThreadGroup / Simple Controller / Target. This needs to be unique within a test plan or the wrong target may be chosen when the plan is reloaded. JMeter documentation will be updated accordingly. > > > In the log file: > > > > > > 2007/09/10 14:23:03 WARN - jmeter.save.SaveService: Could not set up > > > alias MailerModel java.lang.NoClassDefFoundError: javax/mail/Message > > > > > > 2007/09/10 14:23:03 WARN - jmeter.save.SaveService: Could not set up > > > alias JMSSampler java.lang.NoClassDefFoundError: javax/jms/JMSException > > > 2007/09/10 14:23:03 WARN - jmeter.save.SaveService: Could not set up > > > alias SubscriberSampler java.lang.NoClassDefFoundError: > > > javax/jms/MessageListener > > > 2007/09/10 14:23:03 WARN - jmeter.save.SaveService: Could not set up > > > alias MailerVisualizer java.lang.NoClassDefFoundError: > > > javax/mail/MessagingException > > > > > > > > > > > > Ronan > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

