Grails 1.0.3控制台报告'提前结束文件' [英] Grails 1.0.3 console reports 'premature end of file'

查看:166
本文介绍了Grails 1.0.3控制台报告'提前结束文件'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

浏览到使用Grails版本1.0.3构建的动态网页后,控制台日志会为每个页面请求显示以下错误:

  [致命错误]:-1:-1:文件过早结束。 

如何阻止每个请求出现此错误?


<解决方案

解决方案

Grails 1.0的解决方法.3是在你的项目中打开Config.groovy,并找到以下内容:

  grails.mime.types = [html:[ 'text / html','application / xhtml + xml'],
xml:['text / xml','application / xml'],...

上面第二行涉及到xml应该被移除。



这是一个GRAILS 1.0。 3个已解决的错误,请参阅 http://jira.codehaus.org/browse/GRAILS- 3088 了解详情。

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.

这篇关于Grails 1.0.3控制台报告'提前结束文件'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆