Java SSL Servlet实现问题:收到的记录超过了允许的最大长度

Java SSL Servlet实现问题:收到的记录超过了允许的最大长度,java,servlets,security,keystore,Java,Servlets,Security,Keystore,我在应用程序中使用SSL时遇到问题。我做了以下工作: 我在我的安全约束标签上添加了以下段落: <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> 我得到以下信息 Secure Connection Failed An error occurred during a connec

我在应用程序中使用SSL时遇到问题。我做了以下工作:

我在我的安全约束标签上添加了以下段落:

 <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
我得到以下信息

Secure Connection Failed
An error occurred during a connection to localhost:8443.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)
  The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
  Please contact the website owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.
有什么建议吗?

您必须设置


您必须设置


这还取决于您使用的浏览器。我自己在当地的环境中也有同样的问题。我在Firefox和Chrome上试过,也遇到过这个问题。但是,当我在谷歌上读了几篇文章后,尝试使用IE浏览器时,它没有任何问题


-谢谢

这还取决于您使用的浏览器。我自己在当地的环境中也有同样的问题。我在Firefox和Chrome上试过,也遇到过这个问题。但是,当我在谷歌上读了几篇文章后,尝试使用IE浏览器时,它没有任何问题

-谢谢

https://localhost:8443/Appname/page.jsp
Secure Connection Failed
An error occurred during a connection to localhost:8443.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)
  The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
  Please contact the website owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="c:/keystore.key"
keystorePass="mypassword"
SSLEnabled="true" />