jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lichen970 <lichen...@hotmail.com>
Subject Help: Error in NonGUIDriver java.lang.NullPointerException
Date Tue, 18 Sep 2012 14:49:09 GMT
Hi, guys,

I just encountered a very weird problem, i.e. when I tried to execute jmter
-n -t testplan.jmx, it complains "Error in NonGUIDriver
java.lang.NullPointerException". I've used jmeter on other linux machines
and mac, but first see this kind of issue. I noticed there was a posts in
the mailing list which is about old java version. but it seems not the
reason for my problem. Below is the full content from jmeter.log.  Any
suggestions?


-bash-3.2# cat jmeter.log 
2012/09/18 10:31:30 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: Loading user properties from:
/root/apache-jmeter-2.7/bin/user.properties 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: Loading system properties from:
/root/apache-jmeter-2.7/bin/system.properties 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: Copyright (c) 1998-2012 The
Apache Software Foundation 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: Version 2.7 r1342410 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: java.version=1.6.0_0 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: java.vm.name=OpenJDK 64-Bit
Server VM 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: os.name=Linux 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: os.arch=amd64 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: os.version=2.6.29.6 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: file.encoding=ANSI_X3.4-1968 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: Default Locale=English (United
States) 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: JMeter  Locale=English (United
States) 
2012/09/18 10:31:31 INFO  - jmeter.JMeter:
JMeterHome=/root/apache-jmeter-2.7 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: user.dir 
=/root/apache-jmeter-2.7/bin 
2012/09/18 10:31:31 INFO  - jmeter.JMeter: PWD      
=/root/apache-jmeter-2.7/bin 
2012/09/18 10:31:31 ERROR - jmeter.util.JMeterUtils: Unable to get local
host IP address. 
2012/09/18 10:31:31 ERROR - jmeter.util.JMeterUtils: Unable to get local
host IP address. 
2012/09/18 10:31:32 ERROR - jmeter.util.JMeterUtils: Unable to get local
host IP address. 
2012/09/18 10:31:32 INFO  - jmeter.JMeter: IP: null Name: null FullName:
null 
2012/09/18 10:31:32 INFO  - jmeter.services.FileServer: Default
base='/root/apache-jmeter-2.7/bin' 
2012/09/18 10:31:32 INFO  - jmeter.services.FileServer: Set new
base='/root/apache-jmeter-2.7/bin' 
2012/09/18 10:31:32 INFO  - jmeter.JMeter: Loading file: basic.jmx 
2012/09/18 10:31:33 INFO  - jmeter.save.SaveService: Testplan (JMX) version:
2.2. Testlog (JTL) version: 2.2 
2012/09/18 10:31:33 INFO  - jmeter.save.SaveService: Using SaveService
properties file encoding UTF-8 
2012/09/18 10:31:33 INFO  - jmeter.save.SaveService: Using SaveService
properties file version 1332608 
2012/09/18 10:31:33 INFO  - jmeter.save.SaveService: Using SaveService
properties version 2.3 
2012/09/18 10:31:33 INFO  - jmeter.save.SaveService: All converter versions
present and correct 
2012/09/18 10:31:33 INFO  - jmeter.protocol.http.control.CookieManager:
Settings: Delete null: true Check: true Allow variable: true Save: false
Prefix: COOKIE_ 
2012/09/18 10:31:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Cannot find .className property for htmlParser, using default 
2012/09/18 10:31:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for text/html is  
2012/09/18 10:31:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for application/xhtml+xml is  
2012/09/18 10:31:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for application/xml is  
2012/09/18 10:31:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for text/xml is  
2012/09/18 10:31:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for text/vnd.wap.wml is
org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 
2012/09/18 10:31:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Reuse SSL session context on subsequent iterations: true 
2012/09/18 10:31:33 ERROR - jmeter.save.SaveService: Conversion error
com.thoughtworks.xstream.converters.ConversionException:
kg.apc.jmeter.vizualizers.CorrectedResultCollector :
kg.apc.jmeter.vizualizers.CorrectedResultCollector
---- Debugging information ----
message             : kg.apc.jmeter.vizualizers.CorrectedResultCollector
cause-exception     :
com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : kg.apc.jmeter.vizualizers.CorrectedResultCollector
class               : org.apache.jorphan.collections.ListedHashTree
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
path                :
/jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[5]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number         : 461
------------------------------- :
kg.apc.jmeter.vizualizers.CorrectedResultCollector :
kg.apc.jmeter.vizualizers.CorrectedResultCollector
---- Debugging information ----
message             : kg.apc.jmeter.vizualizers.CorrectedResultCollector
cause-exception     :
com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : kg.apc.jmeter.vizualizers.CorrectedResultCollector
class               : org.apache.jorphan.collections.ListedHashTree
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
path                :
/jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[5]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number         : 461
-------------------------------
message             : kg.apc.jmeter.vizualizers.CorrectedResultCollector :
kg.apc.jmeter.vizualizers.CorrectedResultCollector
---- Debugging information ----
message             : kg.apc.jmeter.vizualizers.CorrectedResultCollector
cause-exception     :
com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : kg.apc.jmeter.vizualizers.CorrectedResultCollector
class               : org.apache.jorphan.collections.ListedHashTree
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
path                :
/jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[5]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number         : 461
-------------------------------
cause-exception     :
com.thoughtworks.xstream.converters.ConversionException
cause-message       : kg.apc.jmeter.vizualizers.CorrectedResultCollector :
kg.apc.jmeter.vizualizers.CorrectedResultCollector
first-jmeter-class  :
org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:65)
class               : org.apache.jmeter.save.ScriptWrapper
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.ScriptWrapperConverter
path                :
/jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[5]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number         : 461
version             : 2.7 r1342410
------------------------------- 
2012/09/18 10:31:33 ERROR - jmeter.JMeter: Error in NonGUIDriver
java.lang.NullPointerException
	at
org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:93)
	at org.apache.jmeter.JMeter.runNonGui(JMeter.java:747)
	at org.apache.jmeter.JMeter.startNonGui(JMeter.java:725)
	at org.apache.jmeter.JMeter.start(JMeter.java:386)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.apache.jmeter.NewDriver.main(NewDriver.java:216)




--
View this message in context: http://jmeter.512774.n5.nabble.com/Help-Error-in-NonGUIDriver-java-lang-NullPointerException-tp5714847.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Mime
View raw message