-
Notifications
You must be signed in to change notification settings - Fork 41.1k
"IllegalArgumentException: Bean factory must allow eager class loading" with 1.5.2.RELEASE when using JRebel #8488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry but that's not enough for us to figure out what went wrong. Can you please share a sample that we can run? |
Specifically are you calling |
I don't see anything special in my configuration, just the usual I use the following configuration annotations, spread over several config classes:
|
Something must be setting it to |
Not much, unfortunately. I can see that you've got the required breakpoint in place, but, judging by the stack of the suspended thread, it wasn't tripped. That's rather baffling as they field's value defaults to Can you please try debugging again with a breakpoint on the field itself. Eclipse should then suspend the thread whenever the field is accessed or modified. It's when it's modified that's of particular interest (although it would also be interesting to have confirmation that's its value is |
Hi all I have a similar situation in my project. It won't start anymore with spring boot 1.5.2. Nothing I'm aware of is explicitly setting The problem occurs when While doing it's work, The debugger does not even jump into You can check it out here: https://github.com/ursjoss/sipamato/tree/tb_spring_boot_1_5_2. Start the project with profile DB_JOOQ. HTH. Thanks and cheers, Urs |
@ursjoss Thanks very much. I've just tried your app and it started successfully for me using the @ursjoss and @yglodt What OS and JVM are you running on? I tried on OS X using Oracle JDK 8 (1.8.0_121-b13). |
@wilkinsona Thanks for investing time on this.
By the way: Followin your pm, I did another attempt of debugging. Even before, I had a breakpoint in the setter and getter for Later I'll give it a go to run the project on windows, to see the behavior there... |
@wilkinsona I can confirm the project starts without flaw on Windows: java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) How can we proceed? By the way: Sorry for not mentioning the snapshot dependency on wicket-bootstrap |
I run Fedora 25 with their packaged OpenJDK 64-Bit Server VM (build 25.121-b14, mixed mode) |
so looks like something openjdk/linux specific |
@yglodt Are you able to verify whether your project works on a non-Linux machine? I'm going to try out mine with oracle-jdk on linux to try narrowing the issue down... |
@ursjoss Yes I can do that, tomorrow. I have no Windows machine available here. |
We are using latest spring boot 2.x snapshot and it is throwing same error for me. It worked with earlier snapshot. Here is system info.
We haven't specified any customization of bean factory and not calling I tried to create a simple project with basic dependency but couldn't reproduce the issue. So I guess some dependency we have may be causing this issue. |
I installed oracle-jdk on my archlinux machine.
Switching back and forth between openjdk and oracle-jdk, I noticed the following:
My STS:
|
So it now looks like this isn't specific to Linux (@brsanthu has the problem on mac OS) or Open JDK. @ursjoss In light of your latest update, I've had another attempt at reproducing the problem on mac OS using the Oracle JDK and STS 3.8.3.RELEASE but without any joy. I've also tried on Fedora 25 running via @brsanthu and @yglodt How are you launching your apps when they fail? |
@wilkinsona good point:
Tested on linux using openjdk. |
@ursjoss Thanks. Running as a Spring Boot app sets a few system properties:
It also adds a program argument:
I would guess, although I can't explain why, that it's one or more of these that's causing the change in behaviour. Would you mind experimenting with running as a Java application using these system properties to see if you can narrow things down a bit further? /cc @kdvolder @martinlippert who work on STS |
I run it in Eclipse as Java application. Note that I use JRebel. I have not yet tried if it behaves different without JRebel. |
@wilkinsona I tried those parameters on the command line. All went fine. It then started to play with the parameters in the boot dashboard and found that it's actually JRebel. Removing the jrebel-agent both on linux and on windows resulted in successfully launching the application - and vice versa: adding jrebel-agent on windows and launching the app through the boot dashboard resulted in the same failure as on linux. I have opened a ticket with JRebel referring to this thread. Thanks a lot to all involved in nailing down this issue. |
Yes, removing the |
Thanks, everyone. @ursjoss Is the ticket that you opened against JRebel publicly accessible? I'd like to be able to follow that discussion as it might influence what we decide to do here. If it's going to take a while for the problem to be fixed, a note in the documentation may be in order. |
@wilkinsona I have opened the ticket via JRebel Eclipse plugin (which defaults to sending the relevant logs etc.). I (still) have the same question about gettting a ticket number and being able to track the status of the ticket. I have not heard from ZeroTurnAround since. I will ask them via twitter if I don't hear from them by tomorrow. |
Hi, i'm Risto from ZeroTurnaround support team. We have opened a ticked for this issue and are working on getting it fixed. Unfortunately there is no public jira available, but i will keep you informed about the progress. |
The issue should now be resolved in the latest nightly build. You can download the nightly from here. |
That was quick! Thanks very much, @Ristop. |
I can confirm the nightly build solves the issue in my case. Thanks @Ristop |
Can confirm that with new build it is working for Spring Boot 2.x.x snapshot version too. |
The same problem, waiting for jrebel release. |
I can confirm that the JRebel Agent 7.0.6-SNAPSHOT (201703081621) nightly release fixes the bug in IntelliJ. |
So do I, thanks a lot guys |
Thanks a lot everyone! |
I was having the same problem. Thanks~ |
1 similar comment
I was having the same problem. Thanks~ |
Thanks, this fixed it for me. |
7.0.6 has been released: https://zeroturnaround.com/software/jrebel/download/changelog/7-x/ |
A project of mine does not start with 1.5.2 anymore. With 1.5.1 it runs fine.
I start the application like this:
The exceptions thrown are here:
The text was updated successfully, but these errors were encountered: