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,问题搞定。

相关文章:

  • 2021-04-12
  • 2022-01-21
  • 2021-05-18
  • 2021-08-16
  • 2021-10-27
  • 2022-02-23
猜你喜欢
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
相关资源
相似解决方案