我刚刚升级到 Glassfish 3.1.2,我遇到了文件下载被截断的问题:
Glassfish 配置了一个 jk-listener,我在 Apache 后面使用 mod_proxy_ajp 运行它。
ProxyPass / ajp://www.mydomain.com:8009/
ProxyPassReverse / ajp://www.mydomain.com:8009/
我的应用程序即时生成一个 zip 文件,当我通过 ajp 代理下载时,该文件现在被截断为 256Kb。但是,如果我绕过 Apache 并直接使用 Glassfish http 端口,下载将完全完成(大约 700Kb)。
我在 Apache 日志中看到了这些错误:
ajp_check_msg_header() got bad signature 2c69
ajp_ilink_receive() received bad header
ajp_read_header: ajp_ilink_receive failed
(120007)APR does not understand this error code: proxy: dialog to xxx.xxx.xxx.xxx:8009 (www.mydomain.com) failed
有什么想法吗?