question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.toSorted()

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
arpanbuchcommented, Sep 26, 2018

It solved for me by adding below dependency

<dependency>
		<groupId>org.apache.httpcomponents</groupId>
		<artifactId>httpclient</artifactId>
		<version>4.5.5</version>
</dependency>
1reaction
FrEaKmAncommented, Nov 18, 2017

I had same problem with groovy version (automatically assigned by idea) 2.3.11. Upgrading to 2.4.11 solved the problem.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found