-
Notifications
You must be signed in to change notification settings - Fork 515
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
Changes not applied with version 1.3.0 for Grails 4 & 5 #235
Comments
Test application. test-grails5.zip After startup by run-app with open http://localhost:8080/test/index and see OK Refresh page, see
But in browser the same responce Ok |
Sorry, we don't tried grails 5 yet. And in grails 4 everything works well. We use openjdk version "1.8.0-292". |
@Dirk-27 I have the same problem with grails 4. Probably I'm doing something wrong |
Yes: you don't use the jar I mentioned but added a dependency 'agent...'. Then you get the wrong springloaded version. I get your test-xxx running by
Download the file (exactly this one: springloaded-1.3.0.BUILD-20210404.024037-2.jar) and save it to (new folder) libs in your project before. |
Update: java 11 has been used. Works with grails 4 I have added agent to bootRun
But I'm getting error
|
Here your sources work on my computer. When a 'grails clean' didn't work for you my only idea is the different JDK you use. |
@Dirk-27 everithing works with grails 5 too. do I need the agent line in the configuration?
What differrence between released 1.3.0 and springloaded-1.3.0.BUILD-20210404.024037-2.jar ? After tersing I will ask grails team to update documentation. |
The both lines I changed (commented agent line and added in the jvmargs) was all have changed. And I don't know what the different in the jar is, but this is the last build and it works. (- I'm out of office for today) |
For grails 4 I'm using version 1.2.8 of spring-loaded. It works well, except reloading of methods with @transactional
grails/grails-core#12630 (comment)
But during upgrade to grails 5.2.6 for one of my applications I got a jvm crash during application startup with for some GORM classes
grails/grails-core#11649 (comment)
With spring-loaded 1.3.0 (and also with springloaded-1.3.0.BUILD-20210404.024037-2.jar provided by @Dirk-27 grails/grails-core#11649 (comment)) application starting up well, but changes in a code not applied during reload:
I see recompilation in the log, but behaviour of application not changed.
For example I have added to a controller action logs, but don't see it during action execution (throwing exception too)
I have seen same problems with grails 4 and spring-loaded 1.3.0 before. Also I have checked this new version of library with another three grails 5* applications and see a same problem. Working well, but no result =)
Java corretto-1.8.0_362
build.gradle
application.groovy
and repeat it in application.yml (just for test)
What I'm duing wrong??
springloaded-1.3.0.BUILD-20210404.024037-2.zip
The text was updated successfully, but these errors were encountered: