j2ee 应用中 jar 编码导致的错误 HTTP Status 500 - Internal Server Error
来源:互联网 发布:微商货源网源码 编辑:程序博客网 时间:2024/05/16 12:23
今天遇到一个 500 错误(java.lang.UnsupportedClassVersionError),属于来自服务器内部的错误。该 j2ee 程序在我的电脑上没问题,但在客户的服务器上却出现问题,而最近只升级过一个 jar 文件,而错误提示也与该文件有关,于是问题范围就缩小了。
分析发现客户服务器上的 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 report
messageInternal 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
0 0
- j2ee 应用中 jar 编码导致的错误 HTTP Status 500 - Internal Server Error
- HTTP Status 500 - Internal Server Error
- HTTP Status 500 – Internal Server Error 的解决办法:
- 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
- Status: 500 Internal Server Error
- 关于压测过程中服务器报26612: HTTP Status-Code=500 (Internal Server Error)
- 服务器错误:http 错误500.19 Internal Server Error 的解决办法
- 我的测试继续中。。。IIS中HTTP 错误 500.22 - Internal Server Error
- HTTP 错误 500.19 Internal Server Error的解决方法
- HTTP 错误 500.24 - Internal Server Error的解决方法
- HTTP 错误 500.24 - Internal Server Error的解决方法
- HTTP 错误 500.19 - Internal Server Error 的解决方法
- HTTP 错误 500.24 - Internal Server Error的解决方法
- HTTP 错误 500.19 - Internal Server Error问题的解决
- HTTP 错误 500.24 - Internal Server Error的解决方法
- 梵蒂冈和法人分萨芬我热情我热
- 第12周项目2刑警的射击成绩
- 活动房各怀鬼胎热特委托分或多发活动房
- 用Python获取本机网卡IP数据包
- hdu2097Sky数
- j2ee 应用中 jar 编码导致的错误 HTTP Status 500 - Internal Server Error
- 结构化将规范赫然特我让他广东省是固定
- leetcode Subsets
- CODEVS 1245 最小的N个和 堆+排序
- 字符排列问题
- hdu 1058 朴素算法和DP做法
- 厦门大学线下编程比赛第一题:求和
- Problem - 1006_Tick and Tick
- top.location.href 不兼容 火狐和谷歌浏览器。。