Josh Josh - 18 days ago 4x
Groovy Question

Grails 1.0.3 console reports 'premature end of file'

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 for full details.