2016-10-17 5 views
0

私はそうのようなサービスクラスで生成されたApacheのPOIライブラリを使用してExcelファイルをダウンロードする非常に単純なコントローラのメソッドがあります。春:ApacheのPOIエクセルファイルのダウンロード「現在のポリシーのプロパティ」エラービルドログで

XSSFWorkbook workbook = new XSSFWorkbook(); 

// Excel sheet populated and added to workbook 

FileOutputStream out = new FileOutputStream(new File("file.xlsx")); 
workbook.write(out); 

out.close(); 

また、次のコントローラメソッドがダウンロードをトリガします。

@ResponseBody 
@RequestMapping(value = "/fileDownload") 
public String downloadMatchingExcel(HttpServletRequest request, HttpServletResponse response) throws IOException{ 

    response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); 
    response.setHeader("Content-Disposition", "attachment; filename = file.xlsx"); 
    response.setHeader("Content-Length", String.valueOf(file.length())); 

    FileInputStream is = new FileInputStream(new File("file.xlsx")); 

    IOUtils.copy(is, response.getOutputStream()); 

    response.flushBuffer(); 
    response.getOutputStream().close(); 

} 

ファイルは問題なく生成され、ダウンロードされます。しかし、ビルドログに次のエラーが表示されます。

[ERROR] Current policy properties: 
[ERROR]  mmc.sess_pe_act.block_unsigned: false 
[ERROR]  window.num_max: 5 
[ERROR]  jscan.sess_applet_act.sig_trusted: pass 
[ERROR]  jscan.sess_applet_act.block_all: false 
[ERROR]  file.destructive.state: disabled 
[ERROR]  window.num_limited: true 
[ERROR]  jscan.sess_applet_act.unsigned: instrument 
[ERROR]  mmc.sess_pe_act.action: validate 
[ERROR]  jscan.session.daemon_protocol: http 
[ERROR]  file.read.state: disabled 
[ERROR]  mmc.sess_pe_act.block_invalid: true 
[ERROR]  mmc.sess_pe_act.block_blacklisted: false 
[ERROR]  jscan.session.policyname: QXBwbGV0L0FjdGl2ZVggU2VjdXJpdHkgR2xvYmFsIFBvbGljeSA= 
[ERROR]  net.bind_enable: false 
[ERROR]  mmc.sess_cab_act.block_unsigned: false 
[ERROR]  file.nondestructive.state: disabled 
[ERROR]  jscan.session.origin_uri: http://repo.spring.io/libs-release/org/apache/poi/poi-ooxml/3.11/poi-ooxml-3.11.jar 
[ERROR]  mmc.sess_cab_act.action: validate 
[ERROR]  net.connect_other: false 
[ERROR]  jscan.session.user_ipaddr: 172.24.8.56 
[ERROR]  jscan.sess_applet_act.sig_invalid: block 
[ERROR]  thread.thread_num_max: 8 
[ERROR]  mmc.sess_cab_act.block_invalid: true 
[ERROR]  jscan.sess_applet_act.sig_blacklisted: block 
[ERROR]  net.connect_src: true 
[ERROR]  thread.thread_num_limited: true 
[ERROR]  jscan.sess_applet_act.stub_out_blocked_applet: true 
[ERROR]  mmc.sess_cab_act.block_blacklisted: true 
[ERROR]  jscan.session.user_name: MTcyLjI0LjguNTY= 
[ERROR]  thread.threadgroup_create: false 
[ERROR]  file.write.state: disabled 

この意味は?そしてそれは心配する何かですか?

答えて

0

thisthat のような、相対的な質問がたくさんあります。ダウンロードしたJARファイルを変更するファイアウォール/プロキシ/ウイルス対策が原因と思われます。