New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jmeter.JMeter: Error in NonGUIDriver java.lang.NullPointerException #113
Comments
How are you running it? Sounds like a duplicate of #97 |
I am running from mvn(mvn verify). Tests are created using websocket sampler(this is a plugin), is this an issue? |
I checked the issue 97, but it sounded different than this. I am trying to run a sample Jmeter test file(jmx file) created using websocket sampler. I created tests from HTTP sampler and ran, this works fine. Having issues in running tests created by websocket sampler. Do we have to provide any parameters in the POM if we are using customized plugins for jmeter? Please suggest |
Yes you need to add them as a dependency for the plugin and then if you want them copied into the /lib/ext directory you need to specify this in your configuration. Have a look at https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Adding%20Additional%20Libraries%20To%20The%20Classpath jmeter-plugins used to have a transitive dependency issue that could affect you if you use maven 2, I don't know if they have fixed it yet or not. |
Jmeter plugins does not contain the websocket sampler plugin(https://github.com/maciejzaleski/JMeter-WebSocketSampler). What should we do in this case? I have added websocket jmeter plugin and dependencies to target\jmeter\lib\ext |
then you will need to specify the maven dependency for WebSocketSampler. Use the documentation above as an example of the information required, just replace jmeter plugins artefact information with WebSocketSampler artefact information |
Thank you so much Ardesco. I am able to run my tests |
Excellent :) |
Hi All, Even though after I have added the kg.apc plugin and dependency in the pom.xml .still getting the NoNGUIDriver issue through the mvn See the attached jmx file.I am using JMter Latest version 2.13.
It's a roadblock for me.! Please help me! Thanks, |
Please read this again: You need to add the dependency to the plugin, you cant just add it as a general dependency in your POM. All the general dependencies you have added to your POM look to be redundant. |
Hi Mark, Exactly I did the same thing shows in the link which you have provided(2nd one). I have attached the JMX file, Error file & POM file and also I have attached the bin & lib screenshots from the target folder which generates after mvn install Please guide me where I am missing. error.txt Thanks, |
Hi Rajani, |
Or in other words copy/paste this from the wiki: +---+
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>1.10.1</version>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>verify</phase>
<goals>
<goal>jmeter</goal>
</goals>
<configuration>
<jmeterPlugins>
<plugin>
<groupId>kg.apc</groupId>
<artifactId>jmeter-plugins</artifactId>
</plugin>
</jmeterPlugins>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>kg.apc</groupId>
<artifactId>jmeter-plugins</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
[...]
</project>
+---+ |
Hi Mark & Arne, Even though POM configured correctly when I goggled it seems plug- in/mvn 2 issue. I saw your response in the following links. I couldn't find solution any where nor I even did not see any examples who have tried with the Stepping Thread Group .I don't know what else to do where to go. I have tried the same JMX with normal Thread Group executed successfully, If I use Stepping Thread Group throws error. Error is specific to the Stepping Thread Group [debug] JMeter is called with the following command line arguments: -n -t C:\gitrepository\cc-rest-perf\src\test\jmeter\CC_REST.jmx -l C:\gitrepository\cc-rest-perf\target\jmeter\results\20151213-CC_R Thanks, |
Where Can I find the Stepping Thread Group Project Repository in the Githiub |
When I looked at top of the error I see this [WARNING] The POM for kg.apc:perfmon:jar:1.0.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details #92 There is no solution? Thanks, |
To make sure that the solution is clear: |
Thanks to Mark, Frank & Ardesco! I have realized where I did a mistake! Thanks, |
hi raj, I'm having the same issue, can you provide me the solution which resolved your problem? thank you |
I am trying to execute Jmeter websocket sampler (https://github.com/maciejzaleski/JMeter-WebSocketSampler) tests. I get the following error. Could anyone please help?
2015/01/28 15:35:23 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: JMeter.plugins.functional.samplers.websocket.WebSocketSampler : JMeter.plugins.functional.samplers.websocket.WebSocketSampler
---- Debugging information ----
message : JMeter.plugins.functional.samplers.websocket.WebSocketSampler
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : JMeter.plugins.functional.samplers.websocket.WebSocketSampler
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/JMeter.plugins.functional.samplers.websocket.WebSocketSampler
line number : 29
------------------------------- : JMeter.plugins.functional.samplers.websocket.WebSocketSampler : JMeter.plugins.functional.samplers.websocket.WebSocketSampler
---- Debugging information ----
message : JMeter.plugins.functional.samplers.websocket.WebSocketSampler
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : JMeter.plugins.functional.samplers.websocket.WebSocketSampler
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/JMeter.plugins.functional.samplers.websocket.WebSocketSampler
line number : 29
message : JMeter.plugins.functional.samplers.websocket.WebSocketSampler : JMeter.plugins.functional.samplers.websocket.WebSocketSampler
---- Debugging information ----
message : JMeter.plugins.functional.samplers.websocket.WebSocketSampler
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : JMeter.plugins.functional.samplers.websocket.WebSocketSampler
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/JMeter.plugins.functional.samplers.websocket.WebSocketSampler
line number : 29
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message : JMeter.plugins.functional.samplers.websocket.WebSocketSampler : JMeter.plugins.functional.samplers.websocket.WebSocketSampler
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/JMeter.plugins.functional.samplers.websocket.WebSocketSampler
line number : 29
version : 2.11 r1554548
2015/01/28 15:35:23 ERROR - jmeter.JMeter: Error in NonGUIDriver java.lang.NullPointerException
at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:92)
at org.apache.jmeter.JMeter.runNonGui(JMeter.java:754)
at org.apache.jmeter.JMeter.startNonGui(JMeter.java:732)
at org.apache.jmeter.JMeter.start(JMeter.java:390)
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:601)
at org.apache.jmeter.NewDriver.main(NewDriver.java:259)
The text was updated successfully, but these errors were encountered: