AbstractMethodError: ResponseParserRegistrar.getProperty since RestAssured 4.3.0
See original GitHub issueProblem 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:
- Created 4 years ago
- Reactions:8
- Comments:14 (2 by maintainers)
Top 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 >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
I suspect that it’s due to the update of Groovy. Is the stacktrace the same for everyone?
@johanhaleby I am also experiencing same issue after upgrading version from
3.3.0
to4.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