groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.toSorted()
See original GitHub issueHi,
I am getting below error on running my application at runtime. I initially started with some groovy class not found for org.codehaus.groovy.runtime.typehandling.ShortTypeHandling
so added below maven dependency as well
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>3.0.5</version>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>json-schema-validator</artifactId>
<version>3.0.5</version>
<!-- <scope>test</scope> -->
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.11</version>
</dependency>
groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.toSorted() is applicable for argument types: (io.restassured.internal.RequestSpecificationImpl$_applyPathParamsAndSendRequest_closure32) values: [io.restassured.internal.RequestSpecificationImpl$_applyPathParamsAndSendRequest_closure32@64d0cbb1]
Possible solutions: toSet(), toString(), toString(), toString(), toString(), sort()
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1721)
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
No signature of method: java.util.ArrayList.get() is applicable ...
how to fix groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.get() is applicable for argument types: () values: [].
Read more >No signature of method: java.util.ArrayList.toSorted()
Caused by: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.toSorted() is applicable for argument types: ...
Read more >Getting No Signature method when passing array
No signature of method : ciautils.ciaUtilities.verifyNavMenu() is applicable for argument types: (java.util.ArrayList, [Ljava.lang.String;)
Read more >ERROR:groovy.lang.MissingMethodException: No signa...
Solved: I have groovy util class as below: package ... MissingMethodException: No signature of method: static com.hypers.test.apitest.util.
Read more >groovy.lang.MissingMethodException: No signature of method
validateTransition() is applicable for argument types: (com.atlassian.jira.user.DelegatingApplicationUser, Long, String...) values: [XX2249( ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It solved for me by adding below dependency
I had same problem with groovy version (automatically assigned by idea) 2.3.11. Upgrading to 2.4.11 solved the problem.