j2ee 应用中 jar 编码导致的错误 HTTP Status 500 - Internal Server Error
2014-11-14 22:52
766 查看
今天遇到一个 500 错误(java.lang.UnsupportedClassVersionError),属于来自服务器内部的错误。该 j2ee 程序在我的电脑上没问题,但在客户的服务器上却出现问题,而最近只升级过一个 jar 文件,而错误提示也与该文件有关,于是问题范围就缩小了。
分析发现客户服务器上的 jdk 是 jdk 1.7,而我的电脑上是 jdk 1.8,而新发布的 jar 是以 jdk 1.8 为编码,那么问题就在于此,于是重新以 jdk 1.7 为编码进行编译并部署。至此,问题解决。
当然,也可以升级客户的 jdk 版本至 1.8,也可以解决这个问题。
messageInternal Server Error
descriptionThe server encountered an internal error that prevented it from fulfilling this request.
exception
noteThe full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.1 logs.
Q群讨论:236201801
分析发现客户服务器上的 jdk 是 jdk 1.7,而我的电脑上是 jdk 1.8,而新发布的 jar 是以 jdk 1.8 为编码,那么问题就在于此,于是重新以 jdk 1.7 为编码进行编译并部署。至此,问题解决。
当然,也可以升级客户的 jdk 版本至 1.8,也可以解决这个问题。
HTTP Status 500 - Internal Server Error
type Exception reportmessageInternal Server Error
descriptionThe server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.UnsupportedClassVersionError: Class com.google.zxing.WriterException has unsupported major or minor version numbers, which are greater than those found in the Java Runtime Environment version 1.7.0_67
noteThe full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.1 logs.
GlassFish Server Open Source Edition 4.1
Q群讨论:236201801
相关文章推荐
- 搭建openstack时,出现Request returned failure status. HTTPInternalServerError (HTTP 500) 错误!
- HTTP Status 500 - description The server encountered an internal error () that prevented it from fulfilling this request.错误解决办法
- PHP HTTP 错误 500(Internal Server Error):服务器尝试执行请求时遇到了意外情况。
- .net问题:尝试打开web项目,web服务器报告以下错误:http/1.1 500 Internal server error,请问该怎么解决这个问题??
- 关于压测过程中服务器报26612: HTTP Status-Code=500 (Internal Server Error)
- Error -26612: HTTP Status-Code=500 (Internal Server Error)
- Error -26612: HTTP Status-Code=500 (Internal Server Error)
- http 500 Internal Server Error的错误 ajax请求SpringMVC后台中返回500 Internal Server Error
- HTTP 错误 500(Internal Server Error)
- HTTP Status 500 - Internal Server Error
- BUG:在安装 Visual Studio 6.0 Service Pack 6 后,尝试查看 ASP 页面时收到“HTTP 500 - Internal server error”(HTTP 500 - 内部服务器错误)错误消息
- 错误代码: 500 Internal Server Error。The request was rejected by the HTTP filter
- Error -26612: HTTP Status-Code=500 (Internal Server Error) ...
- http status 500 The server encountered an internal error that prevented it from....
- 解决IE打开页面后发生 HTTP 500 - Internal server error 错误
- 解决方法HTTP Status 500 - description The server encountered an internal error () that prevented it from fulfilling this request
- HTTP 错误 500.XX - Internal Server Error 解决办法
- 各种HTTP返回错误代码大全 HTTP 403 Forbidden / 404 Not Found / 500 Internal Server Error / 502 Bad Gateway / 50
- php进主页出现:HTTP 错误 500(Internal Server Error):服务器尝试执行请求时遇到了意外情况。
- 错误代码: 500 Internal Server Error。HTTP 消息包含不支持的头或不支持的头组合