嘗試寫入.xlsx文件時,JVM崩潰。我正在使用POI(XSSF)。 在代碼中的錯誤位置點是寫method--> workBook.write(fileOutputStream);
寫入XLSX文件(POI)時發生JVM崩潰
在控制檯我得到..
A fatal error has been detected by the Java Runtime Environment:
SIGBUS (0x7) at pc=0xb68d77f3, pid=14653, tid=1849355120
JRE version: 7.0_04-b20
Java VM: Java HotSpot(TM) Server VM (23.0-b21 mixed mode linux-x86)
Problematic frame:
C [libzip.so+0x47f3] newEntry+0x73
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
If you would like to submit a bug report, please visit:
http://bugreport.sun.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
好像在POI庫中的錯誤,如果錯誤是準確的(使核心轉儲將是有益的)。爲什麼不直接向項目提交錯誤報告?他們會更好地瞭解如何進行調試。 – Voo 2012-07-05 12:28:33
您可以嘗試通過包管理器更新libzip。 – 2012-07-05 12:44:24
嘗試Java 7更新5並確保您的驅動器上有足夠的可用空間。 – 2012-07-05 12:52:31