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.

AbstractMethodError: ResponseParserRegistrar.getProperty since RestAssured 4.3.0

See original GitHub issue

Problem with RestAssured 4.3.0.
OK with 4.2.0 and 4.1.1.

I get java.lang.AbstractMethodError: io.restassured.internal.ResponseParserRegistrar.getProperty(Ljava/lang/String;)Ljava/lang/Object; errors on every call to RestAssured.get(...), RestAssured.given(), etc:

java.lang.AbstractMethodError: io.restassured.internal.ResponseParserRegistrar.getProperty(Ljava/lang/String;)Ljava/lang/Object;
	at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:309)
	at io.restassured.internal.ResponseParserRegistrar.<init>(ResponseParserRegistrar.groovy:44)
	at io.restassured.RestAssured.createTestSpecification(RestAssured.java:1448)
	at io.restassured.RestAssured.given(RestAssured.java:653)
	at io.restassured.RestAssured.get(RestAssured.java:720)

Sample project: https://github.com/jonathanlermitage/spring-mvc-tiny-sample -> change rest-assured.version from 4.1.1 to 4.3.0 in pom.xml, then run mvn verify.
Tested with jdk8 and jdk11 on Windows 10 x64.

Edit 2020-04-22: my bad, I was still using Groovy 2 dependency (picked from Spring Boot bom). Forcing Groovy 3 fixed the issue for me. So, I think this issue is not related to RestAssured, I simply should have checked my dependencies tree, sorry.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
johanhalebycommented, Apr 2, 2020

I suspect that it’s due to the update of Groovy. Is the stacktrace the same for everyone?

java.lang.AbstractMethodError: io.restassured.internal.ResponseParserRegistrar.getProperty(Ljava/lang/String;)Ljava/lang/Object;
	at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:309)
	at io.restassured.internal.ResponseParserRegistrar.<init>(ResponseParserRegistrar.groovy:44)
	at io.restassured.RestAssured.createTestSpecification(RestAssured.java:1448)
	at io.restassured.RestAssured.given(RestAssured.java:653)
	at io.restassured.RestAssured.get(RestAssured.java:720)
3reactions
anki2189commented, Mar 15, 2020

@johanhaleby I am also experiencing same issue after upgrading version from 3.3.0 to 4.3.0 I think groovy version changes is causing this issue.

build failure : https://github.com/strongbox/strongbox/pull/1701

https://jenkins.carlspring.org/blue/organizations/jenkins/strongbox%2Fbuilds%2Fstrongbox/detail/PR-1701/1/pipeline/13

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting java.lang.AbstractMethodError when I test using REST ...
It looks like a bug in REST Assured 4.3.0, your code works with 4.2.0 version.
Read more >
Getting java.lang.AbstractMethodError when I test using REST ...
It looks like a bug in REST Assured 4.3.0, your code works with 4.2.0 version. I didn't find opened issue. https://github.com/rest-assured/ ...
Read more >
java lang noclassdeffounderror io/restassured restassured
restassured.internal.ResponseParserRegistrar does not define or inherit an implementation of the resolved method 'abstract java.lang.Object getProperty(java.
Read more >
ResponseParserRegistrar (REST Assured 3.0.3 API)
io.restassured.internal ... public class ResponseParserRegistrar extends Object implements ... Specified by: getProperty in interface groovy.lang.
Read more >
2020年11月_weixin_39946429的博客_CSDN博客
2021-01-12. r/ses_domain_mail_from improvements. 2021-01-12. AbstractMethodError: ResponseParserRegistrar.getProperty since RestAssured 4.3.0. 2021-01-12 ...
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