【问题标题】:Firefox Tomcat7 Cookie IllegalArgumentExceptionFirefox Tomcat7 Cookie IllegalArgumentException
【发布时间】:2012-09-27 20:28:54
【问题描述】:

Tomcat 7.0.30 火狐 15.0.1 Eclipse 3.7 和 4.2

我最近安装了 Tomcat7.0.30,从那以后我遇到了各种 Firefox 问题。 (例如this one

现在我收到java.lang.IllegalArgumentException: Control character in cookie value or attribute. 异常。

我有一个纯 html 文件:

<html>
  <head><title>Test</title></head>
  <body>Test htm</body>
</html>

这是 Firebug 报告的内容:

"NetworkError: 500 Internal Server Error - http://localhost:8080/WSTest"

The character encoding of the plain text document was not declared.
The document will render with garbled text in some browser configurations
if the document contains characters from outside the US-ASCII range.
The character encoding of the file needs to be declared in the
transfer protocol or file needs to use a byte order mark as an encoding signature.

让我困扰的是,chrome 没有任何问题。页面就像我期望的那样打开...

我试图用谷歌搜索这个,我发现的唯一建议是添加这个:

org.apache.tomcat.util.http.ServerCookie.ALLOW_EQUALS_IN_VALUE=true
org.apache.tomcat.util.http.ServerCookie.ALLOW_HTTP_SEPARATORS_IN_V0=true

到 catalina.properties 文件,但这没有帮助。

我真的在这里发疯了。

【问题讨论】:

    标签: eclipse firefox cookies tomcat7


    【解决方案1】:

    显然问题出在我的 Firefox 安装上。在用尽所有选项并使用 Chrome、Safari、Opera 甚至 IE 进行测试后,一切正常,我决定卸载 Firefox,删除所有配置文件设置,然后重新安装。 新安装有效。

    附言提示:如果您要完全卸载 Firefox,请不要忘记备份您的书签和密码并保存您的附加组件列表;) 书签可以直接从 Firefox 备份 可以使用名为 Password Exporter 的附加组件存储密码 我用截图“保存”的附加组件:D

    【讨论】:

      猜你喜欢
      • 2010-10-21
      • 1970-01-01
      • 2012-04-29
      • 1970-01-01
      • 2021-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-10
      相关资源
      最近更新 更多