Bug 41568 - Problem when running tests remotely when using a 'Counter'
Summary: Problem when running tests remotely when using a 'Counter'
Status: RESOLVED WORKSFORME
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.2
Hardware: Sun Solaris
: P2 blocker (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-08 06:54 UTC by Cian Doyle
Modified: 2007-08-14 14:54 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cian Doyle 2007-02-08 06:54:21 UTC
I have a test which is sending requests via tcp to my test plant.
The test has some Counter's defined. when I run the test from my PC/Windows
the test completes successfully.

Also when I run it from Jmeter on a Unix machine with Solaris, 
the test also completes successfully.

BUT when I try to run the test remotely on the Unix machine (from the PC)
there seems to a problem with the 'Counter' below is the debug:

2007/02/08 14:22:07 DEBUG - jmeter.protocol.tcp.sampler.TCPSampler: Created 
org.apache.jmeter.protocol.tcp.sampler.TCPSampler@1697b67 
2007/02/08 14:22:07 INFO  - jmeter.protocol.tcp.sampler.TCPClientImpl: Using 
eolByte=59 
2007/02/08 14:22:07 DEBUG - jmeter.protocol.tcp.sampler.TCPSampler: 
org.apache.jmeter.protocol.tcp.sampler.TCPSampler@1697b67Created: 
TCPClientImpl@24c4a3 
2007/02/08 14:22:07 DEBUG - jmeter.protocol.tcp.sampler.TCPSampler: Using 
Protocol Handler: org.apache.jmeter.protocol.tcp.sampler.TCPClientImpl 
2007/02/08 14:22:07 DEBUG - jmeter.threads.TestCompiler: Subtracting node, 
stack size = 2 
2007/02/08 14:22:07 DEBUG - jmeter.threads.TestCompiler: Subtracting node, 
stack size = 2 
2007/02/08 14:22:07 DEBUG - jmeter.threads.TestCompiler: Subtracting node, 
stack size = 3 
2007/02/08 14:22:07 DEBUG - jmeter.threads.TestCompiler: Subtracting node, 
stack size = 2 
2007/02/08 14:22:07 DEBUG - jmeter.threads.TestCompiler: adding controller: 
org.apache.jmeter.threads.ThreadGroup@31f2a7 to sampler config 
2007/02/08 14:22:07 DEBUG - jmeter.threads.SamplePackage: configs is null: 
false 
2007/02/08 14:22:07 DEBUG - jmeter.threads.TestCompiler: Subtracting node, 
stack size = 2 
2007/02/08 14:22:07 DEBUG - jmeter.threads.TestCompiler: Subtracting node, 
stack size = 2 
2007/02/08 14:22:07 DEBUG - jmeter.threads.TestCompiler: Subtracting node, 
stack size = 2 
2007/02/08 14:22:07 DEBUG - jmeter.threads.TestCompiler: Subtracting node, 
stack size = 2 
2007/02/08 14:22:07 DEBUG - jmeter.threads.TestCompiler: Subtracting node, 
stack size = 1 
2007/02/08 14:22:07 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 
One 1-1 started 
2007/02/08 14:22:07 DEBUG - jmeter.protocol.tcp.sampler.TCPSampler: Thread 
Started 
2007/02/08 14:22:07 ERROR - jmeter.threads.JMeterThread: Test failed! 
java.lang.NullPointerException
	at org.apache.jmeter.modifiers.CounterConfig.iterationStart
(CounterConfig.java:74)
	at org.apache.jmeter.control.GenericController.fireIterationStart
(GenericController.java:224)
	at org.apache.jmeter.control.GenericController.fireIterEvents
(GenericController.java:214)
	at org.apache.jmeter.control.GenericController.next
(GenericController.java:83)
	at org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:233)
	at java.lang.Thread.run(Thread.java:534)

2007/02/08 14:22:07 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 
One 1-1 is done 
2007/02/08 14:22:07 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread 
0 
2007/02/08 14:22:07 INFO  - jmeter.engine.StandardJMeterEngine: Stopping test 
2007/02/08 14:22:07 DEBUG - jmeter.protocol.tcp.sampler.TCPSampler: Thread 
Finished 
2007/02/08 14:22:07 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test 
listeners of end of test 
2007/02/08 14:22:07 INFO  - jmeter.samplers.StandardSampleSender: Test Ended 
on 192.168.5.212:1599 
2007/02/08 14:22:07 INFO  - jmeter.samplers.StandardSampleSender: Test Ended 
on 192.168.5.212:1599 
2007/02/08 14:22:07 INFO  - jmeter.samplers.StandardSampleSender: Test Ended 
on 192.168.5.212:1599 
2007/02/08 14:22:07 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended 



ALSO, I know it is something to do with the counter because when I Disable
the Counter and hard code the values the counter was used by, the test 
then works remotely.
Comment 1 Sebb 2007-02-08 13:53:39 UTC
Already fixed, but not yet in a release, sorry.

If you want to try it, there are recent nightly builds here:

http://people.apache.org/builds/jakarta-jmeter/nightly/
Comment 2 Bill Gosse 2007-07-03 13:28:10 UTC
This bug still seems to exit in the latest nightly build -r552369 for 01-Jul-
2007.
Comment 3 Sebb 2007-07-03 13:39:26 UTC
Please can you provide a test-case, because it works OK in my tests.
Comment 4 Sebb 2007-08-14 14:54:57 UTC
Please re-open with full details if this is still a problem with 2.3RC3 or the 
current nightlies
Comment 5 The ASF infrastructure team 2022-09-24 20:37:38 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1862