Skip to content
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

Grails 7: i18n file changes throws exception #13668

Open
arjangch opened this issue Sep 22, 2024 · 0 comments
Open

Grails 7: i18n file changes throws exception #13668

arjangch opened this issue Sep 22, 2024 · 0 comments

Comments

@arjangch
Copy link

Expected Behavior

In Grails5, i can hot change (while grails running) i18n properties files and it will take effect after grails re complies.

Actual Behaviour

Grails 7 throws exception.

2024-09-22T08:09:43.761-04:00 ERROR 3873 --- [       Thread-3] o.g.plugins.AbstractGrailsPluginManager  : Plugin [i18n:7.0.0-SNAPSHOT] could not reload changes to file [/.../grails-website-test/grails-app/i18n/messages.properties]: No such property: canonicalFile for class: java.lang.Boolean

groovy.lang.MissingPropertyException: No such property: canonicalFile for class: java.lang.Boolean
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:67)
        at org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures.unwrap(IndyGuardsFiltersAndSignatures.java:163)
        at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
        at org.grails.plugins.i18n.I18nGrailsPlugin.onChange(I18nGrailsPlugin.groovy:84)
        at org.grails.plugins.DefaultGrailsPlugin.notifyOfEvent(DefaultGrailsPlugin.java:747)
        at org.grails.plugins.AbstractGrailsPluginManager.informOfClassChange(AbstractGrailsPluginManager.java:528)
        at org.grails.plugins.AbstractGrailsPluginManager.informOfFileChange(AbstractGrailsPluginManager.java:471)
        at grails.boot.GrailsApp$3.onChange(GrailsApp.groovy:397)
        at org.grails.io.watch.AbstractDirectoryWatcher.fireOnChange(AbstractDirectoryWatcher.java:76)
        at org.grails.io.watch.WatchServiceDirectoryWatcher.run(WatchServiceDirectoryWatcher.java:116)
        at org.grails.io.watch.DirectoryWatcher.run(DirectoryWatcher.java:184)

Steps To Reproduce

1- start grails 7
2- change anything in i18n properties file

Environment Information

  • Mac OS
  • java=22.0.2-zulu
  • gradle=8.10
  • groovy=4.0.22

Example Application

No response

Version

grails=7.0.0-SNAPSHOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant