java.lang.IllegalArgumentException: Invalid number of path parameters. Expected 1, was 0. Undefined path parameters are: "aaa":"L03T01US01sdf8XPG001","a":"555".

Hot problem!
This exception has a lot of traffic. You can help 11 users by writing a short tip.

Solutions on the web83

Solution icon of googlegroups
via Google Groups by Asta Leonavičienė, 8 months ago
Invalid number of path parameters. Expected 1, was 0. Undefined path parameters are: "aaa":"L03T01US01sdf8XPG001","a":"555".

Solution icon of github
Illegal number of path parameters. Expected 0, was 1.

Solution icon of googlegroups
Illegal number of path parameters. Expected 1, was 0.

Solution icon of stackoverflow
You specified too many path parameters (1).

Solution icon of github
Invalid path: expecting EOF, found ':' @ line 1, column 41. dXmlRoot'x:response'.'x:container'.x:item[0] ^ 1 error

Solution icon of github
The parameter "item" was used but not defined. Define parameters using the XmlPath.params(...) function

Solution icon of github
The parameter "Categories" was used but not defined. Define parameters using the JsonPath.params(...) function

Solution icon of github
The parameter "item" was used but not defined. Define parameters using the XmlPath.params(...) function

Solution icon of github
The parameter "item" was used but not defined. Define parameters using the XmlPath.params(...) function

Solution icon of github
The parameter "data" was used but not defined. Define parameters using the JsonPath.params(...) function

Stack trace

java.lang.IllegalArgumentException: Invalid number of path parameters. 
Expected 1, was 0. Undefined path parameters are: 
"aaa":"L03T01US01sdf8XPG001","a":"555".
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
	at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
	at io.restassured.internal.RequestSpecificationImpl.assertCorrectNumberOfPathParams(RequestSpecificationImpl.groovy:1336)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 month ago
Once, 6 months ago
3 times, 11 months ago
Once, 3 months ago
Once, 6 months ago
24 more bugmates