Browsing to a dynamic web page built using 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?
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.