On 29/01/2010, sebb <seb...@gmail.com> wrote: > On 29/01/2010, Andrey Pohilko <a...@fininfor.ru> wrote: > > Hello! > > > > > There's first exception after first try to stop test, then second exception > > in following stop commands. > > > > First: 2010/01/27 21:22:55 ERROR - jmeter.threads.JMeterThread: Error > while > > processing sampler 'HTTP Request 3' : java.lang.RuntimeException: > > java.lang.NullPointerException > > at > > sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) > > at > > sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) > > at > > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.disconnect(HTTPSampler.j > > ava:602) > > at > > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java: > > 595) > > at ... > > > Not quite sure what is going on here yet. > > The NPE is generated in the JVM code, which suggests there may be a > bug in the Java library, probably triggered by the disconnect. > > It looks like there are some places where savedConn should be set to > null to prevent interrupt() from trying to disconnect a connection > that is in the process of being disconnected, but I'm not sure that is > the whole story.
I have not been able to reproduce the problem, but I have fixed the sampler to prevent interrupt() from attempting to disconnect a connection that is about to be disconnected, see: URL: http://svn.apache.org/viewvc?rev=904918&view=rev Log: Stop interrupt() from attempting disconnect whilst we are already disconnecting It would be a great help if you could try your test again with the current code (or any nightly build after r904918). > > > Second: 2010/01/27 21:23:19 ERROR - jmeter.gui.action.ActionRouter: > > java.lang.NullPointerException > > at > > > org.apache.jmeter.engine.StandardJMeterEngine.askThreadsToStop(StandardJMete > > rEngine.java:581) > > at org.apache.jmeter.gui.action.Start.doAction(Start.java:82) > > at ... > > > This one is fixed by the following patch: > > URL: http://svn.apache.org/viewvc?rev=904514&view=rev > Log: > Prevent NPE in askThreadsToStop() > > > > I also uploaded my test plan and full test log to > > http://apc.kg/jmeter-except.zip > > > > > > > > С уважением, > > > > Андрей Похилько > > > > > > -----Original Message----- > > From: sebb [mailto:seb...@gmail.com] > > Sent: Wednesday, January 27, 2010 9:17 PM > > To: JMeter Users List > > Subject: Re: Latest Jmeter 2.4 cannot stop test? > > > > On 27/01/2010, Andrey Pohilko <a...@fininfor.ru> wrote: > > > Hello! > > > > > > I've built Jmeter from latest trunk source > > > > You could also use a recent nightly build. > > > > > and trying to run my infinite > > > test with 1000 threads. After some time I try to stop the test, but > > nothing > > > happens. I see a NullPointerException in jmeter.log. > > > > > > A bug? > > > > Probably, but without the full stack trace it's impossible to tell. > > > > > Good luck, > > > > > > > > > Andrey > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org