-
-
Notifications
You must be signed in to change notification settings - Fork 955
5.0.0.M1, 4.1.0.M3-4.1.0.M5 - Executable Jars BROKEN - Cannot get property 'config' on null object #11710
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
Updated https://github.com/codeconsole/grails4bugs to 5.0.0.M1, but can be replicated in 3 easy steps:
|
@puneetbehl any idea what the root cause is here or a temporary workaround? |
@puneetbehl any idea what broke this? |
I am a little busy with other items at the moment and did not get a chance to look into this. I will probably look into it once we done with updating all projects publish configurations to publish to Maven Central. And, also move existing artifacts from Bintray to the Grails JFrog artifactory. |
5.0.0M1. I can run happily using grailsw or gradlew (and variants, including gradle in IntelliJ) but running the artefact created via bootJar (or grailsw package) results in:
I THINK (no real proof other than stacktraces like above) that the issue is sitemesh not finding the designated layout (or erroring out when it does find the layout file?) Just trying to add a supporting data point in case it helps |
Yo people, I think... this is related to what I spent the whole day tearing my hair out about. My layouts/main.gsp is not getting expanded, but ONLY when running in docker and ONLY on grails 4.10.M3 - 4.1.0.M5, and I have seen this "Cannot get property 'config' on null object", though I can't link that directly to this issue. Why this would only happen in Docker, I don't know. But I've spent a lot of time going up and down through the versions, and 4.10.M3 - 4.1.0.M5 are very broken, and 4.10.M1 - 4.1.0.M2 seem ok. |
@xpusostomos yeah, I would definitely recommend staying away from 4.1.0.M3-4.1.0.M5. There appear to be some serious issues with those releases. |
Hi @puneetbehl any timeframe on fixing Grails 4.1.0.M3-5.0.0.M1? We are heavily dependent on the newer Spring Boot. The Spring Boot (2.1.x) in Grails 4.0.x is quite old (2018). |
I am planning to look into this next week, and will try to get this fixed with 5.0.0.RC1 |
@puneetbehl what’s the timeline for RC1? |
I've got to admit that I have been holding my breath for a new 5 release so long that I am going blue in the face! I guess that the COVID situation isn't helping things along (?), so some extra patience is necessary. Is there anything that I (or @codeconsole or....anyone else) can do to help speed things along? (NB: PLEASE don't think that I am attempting to "threaten you" or "pressure you" or any such thing...I'm NOT! Just wanting to see where things are at.) |
@transentia there have been a number of things that have hampered our progress on Grails 5. None of which were related to the remaining technical work (which at this point is primarily the resolution of this issue). I'd prefer not to enumerate things here, but returning to Grails 5 RC1 is our top priority after a patch release of Grails 3 that addresses the HTTPS Redirect Issue in the Grails Wrapper.
Finding, reporting, and providing details around this issue is already a massive help. Thank you so much for that. The next steps are identifying and applying fix for this issue, so any further details or fixes you are able to provide on that front are certainly welcome. And then, of course, once RC1 has been released verifying the candidate against your use cases is very helpful towards the Grails 5 GA release. |
Thanks for the response @JasonTypesCodes. It's is great to hear that Grails 5 is still going ahead. The world has been a weird/horrid place recently, so I'm not surprised that "there have been a number of things that have hampered our progress on Grails 5." I hope everybody in the community is safe and sound. |
Relates to grails/grails-gsp#97 |
Confirmed working in 5.0.0.M2 Thanks |
Looks good for me in 5.0.0.M2 as well. I am SO HAPPY! And Grateful! This will let me go back to my clients and start to talk about the future in a more positive way... I appreciate that times are not 'normal' and so say a big "Thank You" to all involved in getting this out. |
Well, this problem is not fully fixed. I am now having an issue with assets not being loaded from plugins when ran from a jar. https://github.com/codeconsole/grails4bugs Now demonstrates this issue. A sample plugin contains grails run-app results in the javascript being available, but building the executable jar results in the plugin's javascript returning a 404 even though the plugin is still built into the jar. |
I am concluding that this is a separate issue and this has been resolved. I created a separate ticket here #11999 for the new issue. |
Uh oh!
There was an error while loading. Please reload this page.
Everything worked fine up until 4.1.0.M3. Now running an executable jar results in a GrailsTagException: Cannot get property 'config' on null object
This is very easy to reproduce. Just create a new web app, enable build.gradle for executable jar creation, package and run.
An example app is provided here with exact steps of how it was created:
https://github.com/codeconsole/grails4bugs
You can reproduce the error as follows:
http://localhost:8080
Note: using `grails run-app' works. Only running the jar does not work. Executable jars broke starting in 4.1.0.M3
You can also demonstrate executable working with 4.1.0.M2:
http://localhost:8080
The text was updated successfully, but these errors were encountered: