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.

Spring Boot and Spring Data Rest - java.lang.IllegalAccessError

See original GitHub issue

Under 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:closed
  • Created 6 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
shenyu1997commented, Dec 6, 2018

I met this issue and resolve it by removing

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
        </dependency>
0reactions
wilkinsonacommented, Aug 1, 2017

Thanks for the analysis, @EugenMaysyuk. I’ll close this one as a duplicate of SPR-10206 which I’m now watching.

Read more comments on GitHub >

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

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