Spring Boot and Spring Data Rest - java.lang.IllegalAccessError
See original GitHub issueUnder WildFly 10.1.0.Final I am getting:
java.lang.IllegalAccessError: class org.springframework.data.rest.webmvc.RepositoryEntityController cannot access its superclass org.springframework.data.rest.webmvc.AbstractRepositoryRestController
This issue started to happen when I added Spring Data Rest configuration with all the necessary dependencies into the project.
I noticed that issue cannot be reproduced when I comment<context:load-time-weaver />
tag inside the applicationContext.xml
.
This is a sample app that reproduces the problem: https://github.com/emaysyuk/spring-boot-data-rest
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
java.lang.IllegalAccessError when making Spring Data repo ...
This is caused by a bug in Spring Boot. There are a couple of workarounds: Mark any tests that use WebEnvironment.
Read more >IllegalAccessError in Java - Baeldung
An IllegalAccessError is thrown when an application attempts to access a field or invoke a method that is inaccessible.
Read more >SpringBoot and java.lang.IllegalAccessError: tried to access ...
I am habing cosntant errors in the log java.lang.IllegalAccessError: tried to access method org.jsoup.nodes.Node.(Ljava/lang/String;)V from class com.vaadin.
Read more >java.lang.IllegalAccessError while starting Spring application ...
Coding example for the question java.lang.IllegalAccessError while starting Spring application on Tomcat 8-Spring MVC.
Read more >RepositoryRestMvcConfiguration (Spring Data REST 4.0.0 API)
org.springframework.data.rest.webmvc.config. ... Main application configuration for Spring Data REST. ... Methods inherited from class java.lang.
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 Free
Top 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
I met this issue and resolve it by removing
Thanks for the analysis, @EugenMaysyuk. I’ll close this one as a duplicate of SPR-10206 which I’m now watching.