惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
GbyAI
GbyAI
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
Visual Studio Blog
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
B
Blog
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
雷峰网
雷峰网
爱范儿
爱范儿
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Microsoft Security Blog
Microsoft Security Blog
Jina AI
Jina AI
P
Proofpoint News Feed
A
About on SuperTechFans
I
InfoQ
F
Fortinet All Blogs
L
LangChain Blog
T
Tailwind CSS Blog

博客园 - 蓝色随想

萨缪尔·摩尔斯诞辰 [摩尔斯电码或称摩斯密码的创立者] some useful words [随笔]无题 [歌曲]蒲公英的约定 —— 周杰伦 [歌曲]会呼吸的痛 —— 梁静茹 [转]随便说说字符集和编码 - 蓝色随想 - 博客园 [转]MD5简介 论Javascript如何防止污染全局作用域 - 蓝色随想 - 博客园 Java资源包处理类ResourceBundle某些细节 - 蓝色随想 - 博客园 [转]标准代码页列表 [转][经典]What is the right thing to do? 生日快乐 [漫画]向左走 向右走 Table of ASCII Characters [原]IIS 和 Tomcat 整合步骤 [转]李商隐《嫦娥》赏析 《长大的故事》主题曲 Windows操作系统发展历史专题[转] 常用的英语经典语句
poi 3.2 SecurityException HPSFException signer informatio...
蓝色随想 · 2009-03-20 · via 博客园 - 蓝色随想

SecurityException: class "org.apache.poi.hpsf.HPSFException"'s signer information does not match signer information of other classes in the same package

运行以下代码:

try {
    FileInputStream fis 
= new FileInputStream("e:\\test.doc");
    WordExtractor wordExtractor 
= new WordExtractor(fis);
    System.out.println(
"Word文件的内容:");
    System.out.println(wordExtractor.stripFields(wordExtractor.getText()));
catch (FileNotFoundException e) {
    e.printStackTrace();
catch (IOException e) {
    e.printStackTrace();
}

报“SecurityException: class "org.apache.poi.hpsf.HPSFException"'s signer information does not match signer information of other classes in the same package”异常。

原因:

      WEB-INF/lib目录下有poi-2.5.jar和poi-3.2.jar冲突了。

解决办法:

       删掉poi-2.5.jar,问题搞定。