-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Caused by: com.jayway.jsonpath.PathNotFoundException: No results for path: $[0] #382
Comments
More INFO: It works when I downgrade to jmeter-maven-plugin v.2.9.0 . 3.0.0 also doesn't work. 2.3.0 worked. So, I have a workaround for now. NOTE: unfortunately, because I need to use 2.9.0, the |
Have you run The configuration stage is not implicit any more, when you run We need to put a bit more documentation around this and try and capture all of the edge cases, this FAQ entry is related. |
As you can see in my screenshot, I DID that, UNLESS you are saying I am required to put the Jmeter plugin within a "profile" section, which I didn't do (as seen in screenshot). I put my jmeter plugin outside of a profile, just in the default build section. Seems to me that it should work either way right? |
Right, I've had a look and refreshed my memory. You are hitting an edge case where we modified the code to try and catch the correct configuration for the majority of people. Depending upon how you call a plugin, maven will give you differing execution ID's. You can configure these in your POM by setting an explicit execution ID e.g.
You can also ignore them and we will set default for you (Which is
There is however a gotcha with this solution, if you try to execute an explicit plugin goal through the command line, maven will assign this goal an execution ID of There are a couple of ways to fix this:
We probably need to make this better. Currently we are always using either the default configuration value, or the value specified in Why didn't we modify That would break for people who want to use |
Things to do:
|
Thank you. I got it working. If the documentation hadn't mentioned usage like The problem was that my main requirement for using this plugin, was to be able to launch |
Hi @djangofan and @Ardesco I ran into the same issue, using 3.3.0 version of the jmeter-maven-plugin.
Is this the only way to go, to get it working when executed by Will the documentation be updated, regarding this mandatory "selectedConfiguration" item, than? |
|
Hi, thanx for this quick reply and yes it should - but it did not, that´s why I found this issue and the mentioned configuration option. |
It's working fine locally for me:
Using:
We also have an IT test using a basic config here: https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/tree/master/src/it/basic-run This also works as expected. |
Got it after cleaning my lenses:
|
Good to hear, I thought we may have some weird intermittent behaviour for a while. |
Documentation updated to explain this in more detail: We aren't going to parse the config.json and try and guess at a configuration you want to use as that's more likely to cause other issues. |
Problem:
When executing mvn jmeter:jmeter , I get the error:
Caused by: com.jayway.jsonpath.PathNotFoundException: No results for path: $[0]
I believe this might be a bug because of the nature of the error message being similar to a null pointer.
The text was updated successfully, but these errors were encountered: