Browsing to a dynamic web page built using Groovy on Grails version 1.0.3 the console log shows the following errors for each page request:
[Fatal Error] :-1:-1: Premature end of file.
How do I stop this error from appearing for each request?
Browsing to a dynamic web page built using Groovy on Grails version 1.0.3 the console log shows the following errors for each page request:
[Fatal Error] :-1:-1: Premature end of file.
How do I stop this error from appearing for each request?
This bug was already fixed: http://jira.codehaus.org/browse/GRAILS-3088
Kind Regards
The log entry occurs when http requests are made from Firefox 3 browsers.
The workaround on Grails 1.0.3 is to open Config.groovy in your project and find the following:
grails.mime.types = [ html: ['text/html','application/xhtml+xml'],
xml: ['text/xml', 'application/xml'], ...
The second line above, pertaining to xml should be removed.
This is a GRAILS 1.0.3 bug that has been resolved, see http://jira.codehaus.org/browse/GRAILS-3088 for full details.
Upgrading to a 1.0.4 snapshot is probably the best way to deal with this issue. Check out the instructions under "Grails Development Builds" at the Grails Download page.
It can also be ignored without too much difficulty.