-
Notifications
You must be signed in to change notification settings - Fork 64
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
Cannot invoke method makeServerURL() on null object after upgrading to Assetpipeline 2.7.4 #345
Comments
I dont know if this may be the same issue, but after upgrading my application to asset-pipeline >= 2.7.x (from 2.6.10) i get this stacktrace while opening one of my gsps:
And in the compiled gsp it is this code which does not run without the exception:
Another example would be this here:
Tried with Grails 2.5.0 and Grails 2.5.4 on Windows 7 and Java 7 and 8. |
try with 2.8.0 |
@davydotcom Already did, hence the '>=' in my description :-) so, with 2.8.0 the same exception :-( |
Same issue when upgrading to 2.8.0 |
I reverted to :asset-pipeline:2.1.5 as recommended by grails 2.4.5 release notes and it suddenly worked. @dtamm This might fix it for you. |
@rodriguezkatarina i switched back to 2.6.10, also works for me :) but i think using the latest plugins is always the best, so i will wait for 2.8.x to get the exception fixed. |
Should be released soon on a plane Sent from my iPhone
|
These weird issues might be caused by Grails 2.5.4. I don't see any other changes from 2.6.10 to 2.7.4 that should cause this. Grails was changed from 2.5.1 to 2.5.4 when moving from 2.6.10 to 2.7.0. I had odd problems in an app of mine when I upgraded from 2.5.3 to 2.5.4. Reverting fixed the issue in my, so you might want to try downgrading the Grails version for AP to 2.5.3. |
@davydotcom downgraded Grails to 2.5.3 in AP 2.9.0. @rodriguezkatarina & @dtamm: Please try it and let everyone know if it fixes your problems. |
@rgoldberg cant downgrade to 2.5.3, since our office policy says always to use the latest framework versions where possible, and since grails ist "the" framework behind our application i just cant :-( |
btw, @rgoldberg your pull request has not been merged but a new version was released? |
Yeah. @davydotcom downgraded Grails to 2.5.3 in a separate commit outside my PR. If 2.5.4 has bugs that aren't in 2.5.3, and those bugs cause problems, then the latest possible framework version is 2.5.3. I tried 2.5.4, and it would not work correctly, so I had to downgrade. |
I should mention I'm using 2.5.4 fine with asset pipeline so I can dig Sent from my iPhone
|
The problems that I had with 2.5.4 weren't with AP, they were with GORM validation, but they were similarly weird, and the coincidence of the AP problems occurring after the AP upgrade to 2.5.4 just made me think that maybe downgrading to 2.5.3 would help. Maybe downgrading the AP Grails version to 2.5.3 suffices, and you can still use 2.5.4 for your app that uses AP. Maybe only downgrading the app is required. Maybe downgrading doesn't help at all. (I'm not sure if "using 2.5.4" from @davydotcom means using AP referencing 2.5.4, a 2.5.4 app, or 2.5.4 for both. Depending on what he meant, certain possibilities I've mentioned above would be ruled out by his tests) I just figured if downgrading did fix things, it might save everyone a lot of debugging... @dtamm So, does AP 2.9.0 referencing 2.5.3 work fine in your 2.5.4 app? If so, then we probably have a fix. If not, if there's any way you could just try downgrading your app to 2.5.3, just to test, that would be very useful. If downgrading both to 2.5.3 works, you could try reverting to AP 2.8.0 (which references 2.5.4) running it with your 2.5.3 app, so we can determine if the issue is with the AP Grails version, the app Grails version, both, or neither. |
@rgoldberg nope, AP 2.9.0 doesn't work with my 2.5.4 application. i will check out if i can downgrade to 2.5.3 and tell you in the mid of the day! |
@dtamm Any luck running app in 2.5.3? |
Same here when using the following dependencies in Grails 3.x: asset-pipeline-core-2.14.3.jar It works with this dependencies: asset-pipeline-3.0.15.jar |
How to fix this? This used to work in lower version. I didn't modify anything in the code.
The text was updated successfully, but these errors were encountered: